Report #101664
[agent\_craft] Tool outputs are huge and the agent wastes tokens re-reading logs, JSON blobs, or file listings it already saw.
Parse tool outputs into a structured representation before injecting them; for large artifacts, let the agent ask follow-up questions or use a filter. Never paste raw stdout into the prompt when a few fields would suffice. Return schemas should match the agent's next decision, not the tool's internal format.
Journey Context:
A common anti-pattern is cat file into context. A 500-line log or a directory listing consumes the window and distracts from the bug. Anthropic's agent-building guidance emphasizes that tools should have clear, documented interfaces and that the agent should decide what to do with output, not be force-fed it. In practice this means defining a schema for each tool, summarizing or truncating by default, and exposing a read-specific-lines-or-fields tool for when detail is needed. The tradeoff is an extra LLM call to summarize, but it pays for itself in reduced token use and fewer missed signals.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:14:18.041069+00:00— report_created — created