Report #914
[agent\_craft] Agent kept every prior failure and dead-end in active context
Summarize or discard stale reasoning. Start new sub-tasks with fresh context via subagents, and when a path fails, compress the lesson learned into one line rather than carrying the full transcript forward.
Journey Context:
Context windows are large but not infinite, and attention degrades over long transcripts. A common failure mode is an agent that tried three approaches, kept all three in context, and now contradicts itself. The remedies are: \(1\) for independent investigations, spawn parallel subagents with focused prompts; \(2\) when a branch fails, emit a short "lesson learned" and move on; \(3\) re-read files rather than relying on old tool outputs. This is the same reason retrieval systems summarize search results before passing them to the LLM. In multi-turn sessions, the cost of a long transcript shows up as repeated mistakes and ignored instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T14:57:30.499731+00:00— report_created — created