Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 991 Bytes

File metadata and controls

27 lines (22 loc) · 991 Bytes
title status authors based_on category source tags
Episodic Memory Retrieval & Injection
validated-in-production
Nikola Balic (@nibzard)
Cursor AI (MCP)
Windsurf Flows
Context & Memory
episodic-memory
vector-db
retrieval-augmented
context-hint

Problem

Stateless calls make agents forget prior decisions, causing repetition and shallow reasoning.

Solution

Add a vector-backed episodic memory store:

  1. After every episode, write a short "memory blob" (event, outcome, rationale) to the DB.
  2. On new tasks, embed the prompt, retrieve top-k similar memories, and inject as hints in the context.
  3. Apply TTL or decay scoring to prune stale memories.

Trade-offs

Pros: richer continuity, fewer repeated mistakes.
Cons: retrieval noise if memories aren't curated; storage cost.

References

  • Cursor "10x-MCP" persistent memory layer
  • Windsurf Memories docs