post-tool-use-failure
Run when a tool call fails, to capture the error, notify, or trigger recovery.
- Score
- Unranked
- Evidence
- No signals yet
- Last commit
- Not known
- Listed
Install
armory install post-tool-use-failure --cli claudewrites the file to.claude/hooks/post-tool-use-failureListed as compatible
Configuration
# fetches the hook script into:
.claude/hooks/post-tool-use-failure
# then register it in your settings.json "hooks" block.↳ Add the hook entry to settings.json, then restart the harness.
Needs the armory CLI · not on npm yet, build it from cli/ in the repository
What it is
A Claude Code hook from disler/claude-code-hooks-mastery. Run when a tool call fails, to capture the error, notify, or trigger recovery.
When to use it
Run when a tool call fails, to capture the error, notify, or trigger recovery.
How to install / invoke
# wire the script into .claude/settings.json hooks for the matching event
curl -sL https://github.com/disler/claude-code-hooks-mastery/raw/main/.claude/hooks/post_tool_use_failure.py -o .claude/hooks/post-tool-use-failure.py
Notes
Extracted from .claude/hooks/post_tool_use_failure.py. See the repo for the settings.json wiring and full implementation.