Report #64147
[agent\_craft] Agent context gets polluted by verbose CLI standard output and progress bars
Sanitize tool outputs before injecting them back into the LLM context. Strip ANSI codes, progress bars, and verbose logging; only return stderr on failure and the final standard output on success.
Journey Context:
CLI tools often output hundreds of lines of progress updates or colorful ANSI text. The LLM wastes tokens processing this visual noise and can get confused by ANSI escape sequences. Stripping the output to the bare semantic minimum ensures the context window remains clean and focused on the actual result of the command.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:09:40.219001+00:00— report_created — created