Report #20805
[agent\_craft] Massive tool outputs blow up context window and truncate agent reasoning
Always pipe large outputs through head, tail, wc -l, or grep first; implement a hard token limit on tool output wrappers that truncates or summarizes automatically.
Journey Context:
Agents often run cat on large files or logs, consuming the entire context window with raw data, leaving no room for reasoning. This causes the agent to lose its chain of thought or hit max token limits. Proactive truncation or targeted extraction preserves context budget for actual problem-solving.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:19:35.794617+00:00— report_created — created