Skip to content

v1.4.0

Latest

Choose a tag to compare

@summerliuuu summerliuuu released this 07 May 10:01

Consecutive failure detection

The post_tool_failure.sh hook now tracks recent failures and warns the AI when the same tool fails 2+ times within 5 minutes, with a suggested alternative:

  • Grep/Glob → find + grep -r via Bash
  • Read → ls to verify path first
  • Browser MCP tools → alternative browser tool or curl

This directly addresses the #1 error pattern from the first evolution report: ripgrep binary failures caused 77 redundant Grep/Glob calls because the AI had no signal to stop retrying.

Migration from v1.3.0

Just copy the updated script:

cp hooks/post_tool_failure.sh ~/.claude/hooks/
chmod +x ~/.claude/hooks/post_tool_failure.sh

Full changelog: CHANGELOG.md