Last active
June 9, 2026 22:51
-
-
Save Talor-A/f6dce96ed0bc763be73e4ee739d3a7bc to your computer and use it in GitHub Desktop.
claude hook settings for jj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "hooks": { | |
| "UserPromptSubmit": [ | |
| { | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "~/.dotfiles/dot-claude/hooks/on-prompt.sh" | |
| } | |
| ] | |
| } | |
| ], | |
| "PostToolUse": [ | |
| { | |
| "matcher": "Write|Edit|Bash", | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "jj st >/dev/null 2>&1 || true" | |
| } | |
| ] | |
| } | |
| ], | |
| "Stop": [ | |
| { | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "jj root >/dev/null 2>&1 && jj try-new >/dev/null 2>&1 || true" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment