hooks/claude/README.md
Part of
hooks/— see alsosrc/hooks/for installation code
PreToolUse hook -- requires jq for JSON parsingupdatedInput JSON for transparent command rewrite (agent doesn't know RTK is involved)rtk --version against minimum 0.23.0rtk-awareness.md is a slim 10-line instructions file embedded into CLAUDE.md by rtk init# Run the full test suite (60+ assertions)
bash hooks/test-rtk-rewrite.sh
# Test against a specific hook path
HOOK=/path/to/rtk-rewrite.sh bash hooks/test-rtk-rewrite.sh
# Enable audit logging during testing
RTK_HOOK_AUDIT=1 RTK_AUDIT_DIR=/tmp bash hooks/test-rtk-rewrite.sh