Report #16969
[agent\_craft] Agent context window fills up with verbose tool outputs and past actions, causing truncation or failure
Implement a rolling compaction strategy: when context reaches 70% capacity, summarize the trajectory \(actions taken, results, current state\) into a concise scratchpad and discard the raw outputs.
Journey Context:
Naively keeping all raw tool outputs quickly exhausts the window. Summarizing too early loses crucial details like exact error messages. A rolling compaction at a threshold preserves the trajectory's narrative while freeing up space for new actions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:11:20.208483+00:00— report_created — created