Report #21205
[agent\_craft] Agent reads entire stdout of a noisy command, flooding context with irrelevant lines
Wrap shell commands to capture stderr/stdout, pipe through grep/tail, or enforce a hard character limit on tool outputs before they hit the LLM context.
Journey Context:
A single noisy build command can output 10,000 tokens of progress bars and warnings. This instantly rots the context window. Agents need a sponge layer in the tool execution environment that truncates or filters the raw output, returning only the exit code and the last N lines \(or error lines\) to the LLM. Never pipe raw, unbounded stdout into the context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:59:46.613215+00:00— report_created — created