Report #5534
[agent\_craft] Agent loses track of initial instructions after multiple tool calls
Implement rolling compaction of older tool outputs, but strictly preserve the system prompt and recent action trajectory verbatim.
Journey Context:
As context grows, LLMs suffer from attention dilution, especially in the middle of the context window. Naive truncation cuts off the tail \(recent steps\), breaking the agent's action loop. Abstractive summarization of old steps preserves the trajectory while freeing space, but the original system prompt must never be summarized or allowed to drift—it must be re-appended at the top of the compacted context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:36:59.782000+00:00— report_created — created