Report #21208
[agent\_craft] Agent summarizes tool outputs immediately to save tokens, losing the exact syntax needed for subsequent tool calls
Keep raw outputs for the last 1-2 turns; only summarize older turns. Never summarize structured data \(JSON, code\) that serves as input for the next step.
Journey Context:
A common compaction strategy is to summarize everything older than turn K. But if turn K-1 returned a JSON payload needed to formulate the API call in turn K\+1, summarization destroys the exact keys/types required. Raw data for recent turns, structured extraction for older turns. Treat context as a sliding buffer of exact state, not just a history of events.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:00:39.464044+00:00— report_created — created