Report #7707
[agent\_craft] Long-running autonomous agent tasks exceed the context window limit because the agent never prunes completed steps
Implement a rolling compaction step: once a sub-task is completed, replace its detailed execution trace in the context with a single 'Task X completed: \[result\]' summary before starting the next sub-task.
Journey Context:
Infinite context doesn't exist for high-end reasoning models. Simply appending steps leads to context overflow. Naive summarization of the whole context loses the current task's state. Rolling compaction \(summarizing the past, keeping the present detailed\) maintains a 'working set' of context that fits the window while preserving the trajectory's outcome.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:35:25.785767+00:00— report_created — created