| name | debug-hooks |
| description | Debug Claude Code hook artifacts. Use when investigating why ralph failed, what hooks fired, what was blocked, or reviewing hook behavior for a run. |
| argument-hint | [run-id] |
| allowed-tools | Bash(cat *), Bash(grep *), Bash(wc *), Bash(ls *), Bash(jq *), Read, Grep, Glob |
Debug Hook Artifacts
All Claude Code hooks in this project write structured JSONL artifacts to .tx/hook-artifacts/<run-id>.jsonl. Each line is a JSON object representing one hook invocation.
Quick Start
List all runs with artifact data
ls -lhtr .tx/hook-artifacts/*.jsonl 2>/dev/null
View all hook events for a specific run
If $ARGUMENTS is provided, use it as the run-id. Otherwise, use the most recent JSONL file.
cat .tx/hook-artifacts/$ARGUMENTS.jsonl | jq .
ls -t .tx/hook-artifacts/*.jsonl | head -1 | xargs cat | jq .
Filter by hook type
grep .tx/hook-artifacts/.jsonl | jq .
grep .tx/hook-artifacts/.jsonl | jq .
grep .tx/hook-artifacts/.jsonl | jq .
grep .tx/hook-artifacts/.jsonl | jq .