the plugin exposes a jj tool that does read-only operations (status, log, diff)
making it safe to always allow (unlike running jj through bash)
add a blurb to ~/.config/opencode/AGENTS.md like
use the jj tool instead of git
mkdir ~/.config/opencode/plugins
cp --reflink index.ts ~/.config/opencode/plugins/jj.ts
cd ~/.config/opencode
bun add @opencode-ai/pluginnode_modules from the symlink's directory are used
so install dependencies in your clone of this repo
bun install @opencode-ai/plugin
mkdir ~/.config/opencode/plugins
ln -s "$PWD/index.ts" ~/.config/opencode/plugins/jj.ts