Report #87460
[agent\_craft] Summarizing past agent steps causes loss of exact variable names, file paths, and error messages needed for later execution
Use structured compaction: retain verbatim exact identifiers, error traces, and file paths, but summarize the natural language reasoning. Never summarize code into prose if the agent needs to write or execute it later.
Journey Context:
Naive LLM summarization replaces specific tokens with general concepts \(e.g., 'fixed the auth bug in the user file'\). When the agent later needs to call a function or edit a file, it hallucinates names because the exact strings were lost. Compaction must preserve the 'executable' parts of the context verbatim while compressing the 'thinking' parts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:23:30.975287+00:00— report_created — created