A jevhook
Lower the effort once the rest is mechanical
You ask Claude to “rename Client to HttpClient everywhere”. Once it has worked out how, what is left is the same edit in file after file, and that does not need hard thinking. Part way through a long turn, Jev is asked whether the rest is mechanical, and if it is sure, the rest of the turn runs at low effort. A wrong yes means the end of a turn thinks less than it should, so it is yours to switch on.
It is off until you switch it on. It acts at PostToolUse, 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.
- Every 30 tool calls in a turn, Jev is shown what you asked for and the latest calls in brief, and is asked whether what is left is mechanical: carrying out, step after step, what has already been worked out.
- When Jev is 80% sure that it is, the rest of the turn runs at low effort.
- A turn is lowered once.
- 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.PostToolUse] mechanical = "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, that the rest of the turn would have been lowered.
2 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 effort.
thirty calls into “rename Client to HttpClient everywhere” low
Thirty tool calls into the turn, Jev is shown what you asked for and the latest calls in brief. It is 93% sure that what is left is mechanical, the same edit in file after file. That is over 80%, so the rest of the turn runs at low effort.
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.
❯ rename Client to HttpClient everywhere ● Update(src/http.rs) ⎿ Updated src/http.rs with 6 additions and 6 removals ✻ Working… ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ⏸ manual mode on · esc to interrupt
The rest of the turn's requests are sent with:
model: the-session-model, effort: low
the same turn, sixty calls in nothing more to do
A turn is lowered once. jevhooks already knows this turn was lowered, so no rule can hold and Jev is not asked again.
❯ rename Client to HttpClient everywhere ● Update(src/http.rs) ⎿ Updated src/http.rs with 6 additions and 6 removals ✻ 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.