Skip to content

Instantly share code, notes, and snippets.

@Talor-A
Last active June 9, 2026 22:51
Show Gist options
  • Select an option

  • Save Talor-A/f6dce96ed0bc763be73e4ee739d3a7bc to your computer and use it in GitHub Desktop.

Select an option

Save Talor-A/f6dce96ed0bc763be73e4ee739d3a7bc to your computer and use it in GitHub Desktop.
claude hook settings for jj
{
"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