A jevhook
An effort for each prompt
Claude Code sets effort (how hard the model thinks) once for a whole session, so “what branch am I on” is thought about as hard as “find why the importer sometimes loses rows”. Switch this on and each prompt you send gets its own: low for the first, xhigh for the second. The line jevhooks shows above your prompt says which it chose. A turn at too low an effort is a turn you ask again, so this does nothing until you switch it on.
It is off until you switch it on. It acts at prompt.submit, turn.step.
Jev is the small, fast model jevhooks asks. It writes nothing: it is handed a question whose answers are already written down, and says how likely each one is, in about a quarter of a second. jevhooks is a plugin for Claude Code that asks it at the moments Claude Code lets a plugin step in, and a jevhook is one such question with what is done about the answer.
- When you send a prompt, Jev scores how much there is to work out, on four levels from nothing to hard reasoning, and the turn runs at the lowest effort (low, medium, high or xhigh) that is 75% likely to be enough.
- It never picks max: that level has no ceiling on what a turn costs, so only you choose it.
- Off until you switch it on, and a project cannot.
Say something
A jevhook is off, in shadow or on. To change this one, put this in ~/.config/jevhooks/config.toml:
[jevhooks.prompt.submit] effort = "on"
In shadow Jev is asked and nothing is changed. The log (jevhooks recent, or /jev in a session) then says what would have been done: for this one, which effort the turn would have been given.
3 worked cases, each an answer Jev could give, the rules that decide on it, and the screen you would see. The ones you would meet most come first, and the 1 at the edges last: a switch that is off, a cap that is spent, an answer Jev is not sure of.
The rules these cases run through
5 rules set how hard a turn thinks, at two moments, from 6 things known, 2 of them Jev's answers. At a prompt, Jev says how much there is to work out, on 4 levels, and the turn gets the lowest effort that is 75% likely to be enough (low, medium, high, xhigh). Part way through a turn, at the look taken every thirty tool calls, Jev says whether what is left is mechanical, and at 80% the rest of the turn runs at low, once. The rest are the two switches, which moment it is, and whether the turn was lowered already. When no rule decides, the effort stays as it is. Both are off unless you switch them on, and a project cannot.
The same rules serve mechanical.
“what branch am I on” low
Nothing to work out, and Jev is sure. Every request of this turn is sent at low effort, whatever the session is set to.
How to read a drawing
Jev answers with numbers. What happens next is decided by a few rules, in order: of the rules that hold, the first decides. They are compiled into one small network, and these pictures are drawn from that network, not beside it, so they cannot show a rule the plugin does not have.
Read one left to right: what can be known, the tests on it, where a rule's tests meet, and the rules. Black is what a rule that holds stands on, and dashed is a test that failed. A pink rule holds; more than one can, and the numbered ones are those that decided, in order. The framed facts are Jev's, and are asked for together, in one request.
❯ what branch am I on ✻ Working… prompt: Jev: nothing to work out (0.0 of 3); low · 150 ms · $0.0002 this session [-] ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ⏸ manual mode on · esc to interrupt
The turn's requests are sent with:
model: the-session-model, effort: low
“find why the importer sometimes loses rows” xhigh
A fault with no error and no known cause. Jev answers 70% hard reasoning, 30% real reasoning. High would be enough only three times in ten, short of the 75% it needs, so the turn runs at xhigh, the highest of the four. It never goes to max: a level with no ceiling on what a turn costs is yours to choose.
❯ find why the importer sometimes loses rows ✻ Working… prompt: Jev: hard reasoning (2.7 of 3); xhigh · 150 ms · $0.0002 this session [-] ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ⏸ manual mode on · esc to interrupt
The turn's requests are sent with:
model: the-session-model, effort: xhigh
any prompt, before you switch this on nothing more to do
This jevhook and its companion, which lowers the effort part way through a turn, are both off until you turn them on: how hard your model thinks is yours to hand over. With both off no rule applies, so Jev is not asked and the session's own effort stays. The screen shows one of them; the same holds for any other.
❯ find why the importer sometimes loses rows ✻ Working… ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ⏸ manual mode on · esc to interrupt
What this site keeps about a visit, and how to refuse it, is said in one place: what is kept.