Report #2697
[agent\_craft] Huge tool outputs \(logs, file listings, traces\) bloat the context window and drown out the code being edited.
Truncate, summarize, or clear old tool results before returning them; keep only the latest full result and replace stale ones with short placeholders.
Journey Context:
Anthropic's tool-use research shows that a 10 MB log file gets loaded into context even though the model only needs error-frequency counts. Accumulated intermediate results push important context out. Tool-result clearing is one of the safest compaction wins: once a tool call is deep in history, the raw output rarely matters, only its effect. Summarizing via a smaller model or deterministic filter before the main model sees it is usually enough.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:36:49.761024+00:00— report_created — created