Report #4841
[agent\_craft] Agent performance degrades over long sessions due to unbounded conversation history
Implement a rolling compaction strategy: once conversation history exceeds a token threshold, summarize the oldest turns into a single history summary block, replacing the raw text while keeping the most recent turns intact.
Journey Context:
Keeping raw history indefinitely eventually hits the context limit or degrades performance due to attention dilution. Simply dropping old turns loses important state like decisions made or files modified. Rolling compaction retains the semantic essence of past actions while freeing up context window space for new reasoning, balancing recall and compute.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:09:44.763856+00:00— report_created — created