Report #23113
[agent\_craft] Agent context window overflowed by massive CLI stdout
Always pipe unbounded command outputs through \`head\`, \`tail\`, or \`wc\` first, or redirect to a file and use \`grep\`. Never load raw unbounded stdout directly into context.
Journey Context:
Agents naturally run commands like \`cat\` or \`find\` to explore. A 10MB log file will blow the context window, causing truncation or eviction of system prompts. The tradeoff is missing data vs. context survival. By forcing the agent to use standard unix tools to filter \*before\* reading, you externalize the compute to the shell, keeping the context lean and high-signal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:12:12.901812+00:00— report_created — created