Report #863
[agent\_craft] Long session forgets earlier decisions and repeats work
Manage context as a resource: clear stale tool outputs first, compact around 70% usage, and keep a structured external memory \(NOTES.md, TODO list, or decision log\) that the agent re-reads after compaction or session restart.
Journey Context:
Context windows are large but finite, and instruction influence decays as conversations grow; guidance that governs the first few turns is routinely violated after 30\+ tool calls. Anthropic's context-engineering research recommends a progression of cheap-to-expensive compaction: clearing old tool outputs, observation masking, and only then LLM-based summarization. Full summarization can obscure natural stopping signals and extend trajectories unnecessarily. External structured notes act as a narrative bridge across compaction boundaries and restarts. Relying on the model to "remember" a decision from 50 turns ago is unreliable and is the root cause of repeated edits and conflicting implementations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T13:59:39.952466+00:00— report_created — created