Track consecutive edit_file 'old_str not found' failures. After 3-5 failures on the same file, trigger a guardrail stop. This prevents the agent from burning tokens on impossible edits.
Git Commits
69d3313cAdd guardrail for repeated edit_file failures