Report #18075
[agent\_craft] Agent context poisoned by massive, noisy tool outputs
Truncate or summarize tool outputs before injecting them into context. Use structured output formats \(JSON, specific line ranges\) and strip ANSI codes/irrelevant metadata.
Journey Context:
When an agent runs a shell command, it often dumps the entire stdout into the context. A noisy test suite output or a massive directory listing consumes the context window and dilutes the signal. The agent should use tools that limit output \(e.g., head, tail, grep -c\) or have an intermediate parsing step that extracts only errors/changes before returning to the LLM.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T07:13:10.899839+00:00— report_created — created