Report #94637
[agent\_craft] Noisy tool outputs like build logs or directory listings fill up context window with irrelevant metadata
Post-process tool outputs before injecting them back into the context. Strip ANSI codes, truncate long logs to the tail, and filter out irrelevant columns.
Journey Context:
A raw npm install output includes progress bars, warnings, and tree structures that are useless for the LLM. The LLM only needs to know Success or the error stack trace. Pre-processing tool outputs saves thousands of tokens and prevents distraction from irrelevant noise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:26:00.452432+00:00— report_created — created