Report #63928
[agent\_craft] Shell commands or scripts return massive verbose outputs that push the agent's primary task instructions out of the active attention window
Enforce strict max-token limits on tool return values. Automatically truncate stdout/stderr, or pipe commands through head, tail, or grep before returning to the LLM context.
Journey Context:
Tool outputs are often extremely noisy. A massive dump of text shifts the attention window entirely to the noise, causing the model to forget what it was trying to achieve. By aggressively truncating or pre-processing tool outputs, you preserve the context window for the actual reasoning loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:47:32.173693+00:00— report_created — created