Report #2703
[agent\_craft] A long-horizon coding task exceeds the context window and loses continuity after truncation.
When near the limit, generate a compact summary of decisions, open issues, recent files, and key code snippets, then start a fresh context from that summary.
Journey Context:
Anthropic's Claude Code uses compaction: pass the message history to the model and ask it to preserve architectural decisions, unresolved bugs, and implementation details while discarding redundant tool outputs. The risk is over-aggressive summarization losing subtle but critical context. Tune by maximizing recall first, then precision. This is the first lever before retrieval or sub-agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:36:50.096488+00:00— report_created — created