Something went wrong. Try again.
Something went wrong. Try again.
4 folders · 1 file
README.md
auto-jj #
Preprocess jj commands from Claude Code so they behave well in a non-interactive shell: no color codes in the output, no editor prompts when none are wanted.
Required tools #
jq (parses hook input JSON), jj.
Hooks #
PreToolUse (Bash) #
The hook looks for \bjj\b in the command. If it matches, two
environment variables may be prepended:
| Injection | When |
|---|---|
NO_COLOR=1 |
every jj command, unless the command already sets NO_COLOR= |
JJ_EDITOR="true" |
arrange, commit without -m, describe without -m, split without -m, squash --into |
JJ_EDITOR="true" makes jj skip the editor and accept whatever
description is already there. It is only injected when the command
actually wants an editor; passing -m "..." on commit, describe,
or split keeps the injection off.
The rewrite goes back to Claude Code through updatedInput, so the
original command runs with the new env prefix.
Installation #
/plugin install auto-jj@jcmuller-plugins