Report #11717
[agent\_craft] Naive summarization of conversation history causes loss of critical details like variable names, error messages, or exact paths
Use compaction \(dropping verbose tool outputs and intermediate reasoning\) for older turns, while only summarizing the semantic intent. Preserve exact string literals and paths in a structured scratchpad rather than relying on the LLM to recall them from a summary.
Journey Context:
When context grows too large, agents often summarize the whole history. LLMs are bad at summarizing exact syntax \(they paraphrase\). Paraphrasing a file path like ./src/utils/helpers.ts into 'the utilities file' causes the agent to fail on subsequent tool calls. Compaction removes the fluff \(large outputs\) but keeps the exact literals, whereas summarization is only safe for high-level goals.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:10:10.634918+00:00— report_created — created