Report #53189
[agent\_craft] Conversation compaction drops exact variable names or error strings needed for debugging
Use extractive summarization \(keeping exact quotes\) for the most recent N turns, and abstractive summarization only for older history. Maintain a structured scratchpad of key facts alongside the narrative summary.
Journey Context:
When context grows too large, agents summarize to save tokens. However, standard abstractive summarization hallucinates or generalizes critical debugging artifacts \(e.g., summarizing \`Error: ECONNREFUSED on port 8080\` as 'a connection error'\). When the agent tries to fix the code later, it lacks the exact string to search for. A hybrid approach preserves the exact strings in a structured format while summarizing the narrative.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:46:35.413239+00:00— report_created — created