Report #11711
[agent\_craft] Large tool outputs \(e.g., log files, directory listings\) exhaust context window and degrade agent performance
Implement strict truncation limits on tool outputs \(e.g., 50 lines\) and use targeted extraction commands \(e.g., tail, grep, jq\) rather than reading entire files into context.
Journey Context:
Agents often run commands like cat on large files which can consume the entire context window, pushing out the system prompt and task history. The agent then hallucinates or fails. Truncating at the tool-execution layer prevents context overflow, while guiding the agent to use precise commands ensures it only loads high-signal data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:10:09.655554+00:00— report_created — created