A point of the newer plugin interface

prompt.submit

judged jevhooks, a plugin for Claude Code, can choose the model and the effort for each prompt you send.

Jev, a small, fast model, scores what the prompt takes, so “what branch am I on” can run on haiku at low effort. Both are off until you switch them on.

Claude Code's list of hook events does not have this one: it belongs to the newer plugin interface the plugin is written against.

Say something

The jevhooks that act here

  • Which model runs the turnprompt.submit/needstarts off

    With model choice switched on, Jev scores each prompt for what carrying it out takes, on four levels from a lookup to open-ended work, and the turn goes to the cheapest of haiku, sonnet, opus and fable that is 75% likely to be enough.

  • An effort for each promptprompt.submit/effortstarts off

    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.

Worked cases that begin here

Each is an answer Jev could give, and the screen you would see. The rules that decide it are drawn on the page of the jevhook that acts in it.

“what branch am I on” haiku

A lookup, and Jev is sure. The turn goes to the smallest model.

❯ 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

How the rules decided it, on the page of Which model runs the turn

any prompt, when Claude Code could not say how long the conversation is and the session is on “default” no change

Doubt keeps the session's own model. A conversation whose length is not known counts as too far along to hand to a smaller model. A session's first prompt is not that: its length is known, and is nothing. And “default” is none of the four sizes, so nobody can say whether a choice would be smaller than it. So nothing is chosen, and since all of that is known before anything is asked, Jev is not asked. The screen shows one prompt; the same holds for any other.

❯ add a --json flag to the export command

✻ Working…
prompt: the conversation is long, or its length is not known, and the session's model is not one of the four sizes:  [-]
a choice could not be compared with it, so the session's own stands and Jev is not asked · 150 ms · $0.0002 this
session

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

How the rules decided it, on the page of Which model runs the turn

a prompt Jev puts at 60% a lookup, 30% routine, 10% judgment sonnet

The likeliest answer is a lookup, and the smallest model would be too small four times in ten. The cheapest model that is 75% likely to be enough is the next one up.

❯ which tests cover the importer?

✻ Working…
prompt: Jev: routine work (0.5 of 3); sonnet · 150 ms · $0.0002 this session                                         [-]

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

The turn's requests are sent with:

model: sonnet, effort: medium

How the rules decided it, on the page of Which model runs the turn

“push this to main”, which Jev calls a lookup, and costly if wrong sonnet

One named step, so the smallest model would do. But a mistake here is not put right with one more turn, and work like that is not given to the cheapest model: it goes one up.

❯ push this to main

✻ Working…
prompt: Jev: a lookup (0.1 of 3), costly if wrong: not haiku; sonnet · 150 ms · $0.0002 this session                 [-]

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

The turn's requests are sent with:

model: sonnet, effort: medium

How the rules decided it, on the page of Which model runs the turn

a lookup, 40,000 tokens into a session on the second largest model no change

A smaller model would be enough. But it would have to read the whole conversation again at full price, where the session's own model reads it from its cache. So past 24,000 tokens a turn never goes to a smaller model than the session's. A session with nothing in it is already about 36,000 tokens after its first turn, so unless you raise the count, a turn goes smaller at a session's first prompt, when nothing is cached yet, or not at all. It can go larger at any time.

❯ what branch am I on

✻ Working…
prompt: Jev: a lookup (0.1 of 3), long: opus, not haiku; the session's own model stands · 150 ms · $0.0002 this      [-]
session

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

How the rules decided it, on the page of Which model runs the turn

“use fable for this”, or any prompt with a model's name in it no change

The prompt has a model's name in it. Whether it says to use that model or asks why it failed, you are talking about models yourself, so nothing is chosen for you: the session's own model stands and Jev is not asked.

❯ use the largest model for this

✻ Working…
prompt: the prompt names a model, so the session's own stands and Jev is not asked · 150 ms · $0.0002 this session   [-]

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

How the rules decided it, on the page of Which model runs the turn

any prompt, with model choice switched off no change

Which model you use is yours to hand over. Until you do, the session's own model stands and Jev is not asked. The screen shows one prompt; the same holds for any other.

❯ what branch am I on

✻ Working…

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ⏸ manual mode on · esc to interrupt

How the rules decided it, on the page of Which model runs the turn

“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.

❯ 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

How the rules decided it, on the page of An effort for each prompt

“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

How the rules decided it, on the page of An effort for each prompt

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

How the rules decided it, on the page of An effort for each prompt

What this site keeps about a visit, and how to refuse it, is said in one place: what is kept.