Report #79314
[agent\_craft] Shell command or test suite outputs flood the context window with irrelevant logs
Always pipe verbose tool outputs through a post-processing script \(like head, tail, or grep\) before returning to the LLM, or externalize to a file and read only the errors and summary.
Journey Context:
Agents often run commands like npm install or pytest which can return hundreds of lines of success logs. Including these verbatim wastes context tokens and dilutes the attention on actual errors. Developers often try to just increase the context window, but the real solution is filtering at the tool boundary. Externalizing to a file and reading targeted lines is superior because it keeps the context strictly high-signal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:43:30.699377+00:00— report_created — created