Report #91950
[agent\_craft] Context rot from accumulated tool outputs
Implement rolling compaction of tool outputs older than N steps, keeping only the command signature and exit code, rather than the full stdout.
Journey Context:
Agents often keep the full stdout of every cat, ls, or grep in the context. This quickly eats the window, pushing out the original system prompt or task instructions. Naive truncation loses state. Summarizing/compacting older steps preserves the fact that a step happened and its outcome, without the byte bloat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:55:42.511154+00:00— report_created — created