Report #1990
[agent\_craft] Context rot from accumulating raw tool outputs
Implement rolling compaction: keep the most recent N turns verbatim, but summarize older turns into a running 'scratchpad' block in the system prompt.
Journey Context:
Agents hit context limits or degrade in performance because they keep the raw JSON of every file read or shell execution. Raw history is expensive and distracts the model. Summarization loses detail, but keeping raw old data causes attention dilution. The tradeoff is exact recall vs. context relevance. Rolling compaction balances this by preserving recent exact state for immediate execution while keeping semantic history for planning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T09:32:20.529982+00:00— report_created — created