A Claude Code plugin
A second opinion on what Claude Code is about to do.
jevhooks is for anyone who lets Claude Code run shell commands on their machine. Before a command runs it asks Jev, a small, fast model, what kind of act this is and how hard it would be to undo. A build just runs, and a command that deletes files or rewrites history stops and asks you first, with the reason.
Jev is TypeSafe AI's System One model. It writes no text: it is handed a situation and a question whose answers are already written down, and says how likely each answer is, in about a quarter of a second, for a few thousandths of a cent. jevhooks asks it at other moments too: when you send a prompt, and when the assistant decides it has finished.
Reading, building and editing run without asking you. A line above the prompt box says what Jev made of the last command, how long it took and what the session's questions have cost.
❯ add a --json flag to the export command ● Bash(cargo test) ⎿ test result: ok. 41 passed; 0 failed; 0 ignored ✻ Working… command: Jev: builds or tests (97%); undone by one command (0.9 of 3); allowed · 150 ms · $0.0002 this session [-] ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ⏸ manual mode on · esc to interrupt
A command that deletes, rewrites history, changes the machine, sends something elsewhere or runs code nobody has read stops and asks you, with Jev's reason shown. You decide.
❯ squash the last three commits and update the branch ● Bash(git push --force origin main) ⎿ Running… ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Bash command Force-push the squashed history to origin ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ git push --force origin main ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │ Hook PreToolUse:Bash requires confirmation for this command: │ Jev: discards or rewrites version-control state (93%); hard to undo (2.4 of 3) settings.json to update hooks Do you want to proceed? ❯ 1. Yes 2. No Esc to cancel · Tab to amend
Band:
command: Jev: discards or rewrites version-control state (93%); hard to undo (2.4 of 3) · 150 ms · $0.0002 this session
Every session on the machine shares one count of the memory already promised to commands. When five agents start five builds in the same second, two build now and three wait in a queue, where they used to get a dead machine.
❯ build the release binary so I can try it on the big file ● Bash(cargo build --release) ⎿ Running… ✻ Working… command: Jev: a very heavy command (2.6 of 3) with 1.0 GB of memory to spare · 150 ms · $0.0002 this session [-] ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ⏸ manual mode on · esc to interrupt
This one is off until you switch it on. Then Jev scores how much work each prompt takes, on four levels from a lookup to open-ended work. The turn goes to the cheapest of haiku, sonnet, opus and fable that is 75% likely to be enough.
❯ what branch am I on ✻ Working… prompt: Jev: a lookup (0.0 of 3); haiku · 150 ms · $0.0002 this session [-] ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ⏸ manual mode on · esc to interrupt
The turn's requests are sent with:
model: haiku, effort: medium
Each screen here is text, not a picture. The words jevhooks puts on it are the ones its tests hold it to, and the rest of the screen is Claude Code's own, as captured from Claude Code 2.1.293. The session shown is an example from one small made-up project: a prompt somebody might have typed, the call the assistant made, what it printed and what it said. Where a case holds for any prompt or any call, its screen shows one of them.
Jev being slow, absent, unsure or broken never blocks anything. Then whatever would have happened without the plugin happens.
Claude Code raises 33 kinds of event that a plugin can answer. Each is a hook point. jevhooks is built at 12 of them, with 42 jevhooks: a jevhook is one question Jev is asked at a hook point, with what is done about the answer. The map below is a session from its start to its end, with every hook point where it happens. Each box leads to that hook point's page.
- judged9 events. Built. Jev is asked, and the answer changes what happens.
- heard3 events. Built. The plugin listens, because it needs this to judge something else.
- nothing yet21 events. Not built, and nothing is planned.
The number on a box is how many jevhooks act there. 3 of the boxes are not among Claude Code's hook events: prompt.submit, session.compact, turn.step belong to the newer plugin interface the plugin is written against.
Each has a mode you set: off, shadow or on. Off, Jev is not asked. On, Jev is asked and its answer is acted on. In shadow, Jev is asked and nothing changes: a log on your machine records what would have been done beside what was done, so you can watch a jevhook before you trust it. A project can, in a file of its own, turn on a jevhook you keep in shadow while you work there. It can never loosen one you set, and never switch on one you have off.
Each jevhook has a page of its own. It names every hook point the jevhook acts at and works through examples: an answer Jev could give, a drawing of the rules that decided on it, and the screen you would see. All 38 jevhooks, by what each guards against.
- A secret getting out:
leaves,secret,secret-like,leaked - The assistant being talked into something:
argues,origin,injected,audit - Doing more than you asked:
act,undo,scope,calls - Going against what you said:
heed,forbidden,rules,kept,standing - Calling it done when it is not:
drift,failure,unverified,stopped-early - A prompt taken the wrong way:
attach-rule,note-first,record-correction,what-done-is,ask-first,load-skill - Spending more than the work needs:
fit,size,approve,pruned,mechanical,need,effort,trimmed - The machine overloaded, or the plugin not working:
self-test,memory,self
- A small piece of the plugin hears every event Claude Code raises. A command that plainly only reads goes no further: no question, no cost. (the hooks)
- Anything worth judging goes to the daemon, one background process for the whole machine, which keeps the connection to Jev open and your API key in one place. (the daemon)
- For a command, the daemon asks Jev three things in one request: which of eight kinds of act this is, how hard it would be to undo, and how much of the machine it takes. (the questions)
- Rules written in code, where a test can hold them still, turn the answers into allow, ask, wait or no opinion. Your own hooks still run, and the stricter answer wins.
The newest release, for Linux on x86_64 and arm64: the plugin with its daemon already built, so it needs no Rust. With mise, a tool that installs other tools:
mise use -g 'packslip:code.lmjtfy.fun/jevhooks[pubkey=RWSQGOqe4De6hoWtNNYrUlUv6xkOpv3x58u/0xdhvyn4p2xg9AIj5zYY,allow_unlogged=true,prerelease=true,minimum_release_age=0s]'claude --plugin-dir "$(mise where packslip:code.lmjtfy.fun/jevhooks)"The long word in the first line is the public half of the key every release is signed with. mise checks the download against it and refuses anything else. The line names no version, so it installs the newest release, and mise upgrade takes the next one. A release is named by its day (2026.10.13-0 is the first of that day), which is what the last two words are for: mise would otherwise pass over a version that ends in a number like that, and leave any release alone for its first day. Without mise, the same files and their SHA-256 digests are here: unpack one and give its folder to claude --plugin-dir.
To judge anything the daemon needs a TypeSafe key in TYPESAFE_API_KEY. Without one it runs, asks nothing, and changes nothing.
Not ready to install? With Claude Code installed, this only runs the plugin's tests against a stand-in for the daemon, to show it working. It installs nothing, and needs no Rust, no Jev key and no account.
git clone --recurse-submodules https://lmjtfy.fun/jevhooks.git
cd jevhooks
claude plugin test pluginThe whole repository is written as a guide in chapters: every folder says what it is and why.