Report #17351
[agent\_craft] Agent loses track of current task state after long conversation due to context rot
Implement a rolling compaction strategy that summarizes completed steps and preserves only the current objective, relevant variables, and available tools at the top of the context window.
Journey Context:
Agents often keep the full conversation history, leading to attention dilution where the model weighs early, irrelevant turns equally with recent instructions. Simply truncating history loses the thread. Rolling compaction \(summarizing past actions into a structured 'progress so far' block\) maintains the causal chain while freeing token budget for new reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:12:49.918146+00:00— report_created — created