Report #15108
[agent\_craft] Agent repeats architectural mistakes across sessions despite long-term memory
Implement a dual memory system: semantic memory for API docs/project structure, and episodic memory for \(failed\_code, error\_message, human\_correction\) triples. Retrieve episodic memory when the agent is about to write code in a similar domain.
Journey Context:
Standard RAG gives the agent 'what' \(the API\), but not 'how' \(the project-specific conventions and past failures\). An agent might repeatedly use \`requests\` instead of the project's \`httpx\` wrapper because the semantic memory doesn't contain the rule. Storing past mistakes as episodic guardrails prevents looping and aligns the agent with implicit team conventions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:14:32.914687+00:00— report_created — created