Report #26274
[agent\_craft] Agent hits context limit and simply truncates or deletes the oldest messages
Use a 'compaction' step that runs a secondary LLM call to summarize the conversation history into a condensed scratchpad format, rather than naive truncation.
Journey Context:
Truncation loses state. If you delete the message where a variable was defined, the agent forgets it. Compaction \(summarizing the past into a running state\) preserves the derived knowledge \(e.g., 'file X has been modified to do Y'\) without keeping the raw tokens. This is the core mechanism of systems like MemGPT.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:30:06.079169+00:00— report_created — created