You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Output filtering causes AI agents (Claude Code) to burn extra tokens on retry loops #831
Output filtering is too aggressive, causing AI agents (e.g., Claude Code) to miss error signals and enter retry loops that waste tokens; fix PRs already merged/in-progress, and a new opt-out PR #1848 is open.
Triaged automatically by wshm · This is an automated analysis, not a human review.
@pszymkowiak What is the time line for getting this work in? We are trying to get it moved off our board, and promote more usage of this tool at our company
Related: #1848 adds a skill file that teaches agents about the RTK_DISABLED=1 env prefix, so they can self-bypass rtk when compressed output causes retry loops — rather than repeating the same command with minor variations until a human intervenes.
The failure mode here sounds less like "filtering is expensive" and more like "the system keeps paying to rediscover the same state."
If output filtering can cause another full retry, I would want one cheap fingerprint before the next attempt starts: same tool path, same target, same normalized failure, same output class. If that fingerprint matches the recent history, the default should be stop or downgrade, not try again at full price.
A lot of agent cost bugs are really admission bugs. The expensive part is not the first bad turn. It's that the next nearly-identical turn was allowed in at all.
Activity
pszymkowiak commentedon Mar 26, 2026
🔍 Automated Triage
bugmediumSummary
Output filtering is too aggressive, causing AI agents (e.g., Claude Code) to miss error signals and enter retry loops that waste tokens; fix PRs already merged/in-progress, and a new opt-out PR #1848 is open.
Triaged automatically by wshm · This is an automated analysis, not a human review.
BadassBison commentedon Mar 30, 2026
@pszymkowiak - This work is still open. Is there anything else needed to get this in?
BadassBison commentedon Apr 2, 2026
@pszymkowiak What is the time line for getting this work in? We are trying to get it moved off our board, and promote more usage of this tool at our company
bb1 commentedon May 12, 2026
Related: #1848 adds a skill file that teaches agents about the
RTK_DISABLED=1env prefix, so they can self-bypass rtk when compressed output causes retry loops — rather than repeating the same command with minor variations until a human intervenes.Keesan12 commentedon Jun 4, 2026
The failure mode here sounds less like "filtering is expensive" and more like "the system keeps paying to rediscover the same state."
If output filtering can cause another full retry, I would want one cheap fingerprint before the next attempt starts: same tool path, same target, same normalized failure, same output class. If that fingerprint matches the recent history, the default should be stop or downgrade, not try again at full price.
A lot of agent cost bugs are really admission bugs. The expensive part is not the first bad turn. It's that the next nearly-identical turn was allowed in at all.