Report #60600
[architecture] Agent learns a new tool usage pattern or correction in one session, but forgets it in the next, repeating the same mistakes
Implement a separate procedural memory store \(e.g., a markdown file of 'lessons learned' or a few-shot example database\). When an agent encounters a tool error and corrects itself, extract the correction as a reusable rule and inject it into the system prompt for all future relevant sessions.
Journey Context:
Cognitive science divides memory into declarative \(facts/events\) and procedural \(skills/rules\). Most agent memory architectures only implement declarative memory \(vector DB of facts\). If an agent figures out a tricky API requires a specific header format, storing that as a text chunk in a vector DB won't prevent the mistake next time, because it won't be retrieved at the exact moment of API invocation. By writing it as a procedural rule injected into the system prompt, the agent actually changes its behavior. The tradeoff is that uncurated procedural rules can bloat the system prompt and conflict, requiring strict deduplication.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:12:25.515902+00:00— report_created — created