What Jev is asked

Every jevhook

A jevhook is one separate thing Jev does at a hook point. There are 38, with 42 switches: two of them judge three kinds of end and have a switch at each.

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.

A secret getting out

  • Refuse a secret being sent outleavesstarts in shadow

    Jev is asked two questions about a command or other tool call before it runs: does it read a secret (a key file, a credentials store, the environment), and does it send data off the machine.

    At PreToolUse.

  • The plugin searches the new text of every Write, Edit and NotebookEdit call, on your machine, for keys in 29 known formats.

    At PreToolUse.

  • Catch a string that looks like a secretsecret-likestarts in shadow

    A string in new text looks random when it has 20 characters or more and at least 3.8 bits a character, a measure of randomness on which ordinary words score low; Jev is asked about five at most, and is shown only a string's first three characters, its length, its kinds of character and its line with the string masked.

    At PreToolUse.

  • The plugin searches everything a tool returns, on your machine, for keys in 29 known formats.

    At PostToolUse, PostToolUseFailure.

The assistant being talked into something

  • Ask when a call argues for itselfarguesstarts in shadow

    Jev is asked whether the call's own text argues for its approval: a comment or a string that speaks to whoever reviews it and says it is safe or already allowed.

    At PreToolUse.

  • Jev is asked whether the call carries out an instruction that came from something the assistant read (a web page, a tool's result) and not from you.

    At PreToolUse.

  • Text from outside the session (a fetched page, a search, another server's tool, the output of a command that fetches, a file outside the project) is cut into blocks, one for each paragraph (a paragraph over 1,200 characters is cut again at line ends), and Jev is asked of each of the first 24 blocks: does it speak to an assistant and tell it what to do.

    At PostToolUse, PostToolUseFailure.

  • The daemon reads the file (masked, and in a project with no link followed; a long one in up to five overlapping parts of 8,000 characters, and past those you are told how much was audited and that the rest was not) and Jev is asked four things of it: does it tell the assistant to fetch or reveal credentials, to send data somewhere outside, to override, deceive or keep things from you, or to run code nobody has read? One at 80% puts the file in doubt.

    At UserPromptSubmit, PreToolUse, InstructionsLoaded.

Doing more than you asked

Going against what you said

  • Jev is asked whether your prompt says what the assistant may not do (“never touch the migrations”) or lifts something you said before, and whether you mean this once or from now on.

    At UserPromptSubmit.

  • Refuse what you said not to doforbiddenstarts in shadow

    Jev is asked whether the call the assistant is about to make does something you told it not to do in this session.

    At PreToolUse.

  • Jev is asked one yes or no question for each of the project's rule files (.claude/rules): does this change break it? When Jev is at least 90% sure one rule is broken, the change is refused and the assistant is told that rule file's name and its heading.

    At PreToolUse.

  • You write the rules in plain words, one to a line and 12 at most, in turn-rules.md beside the config file and in a project's .claude/jevhooks-turn-rules.md.

    At SubagentStop, TaskCompleted, Stop.

  • Before Claude Code replaces a conversation with its summary, the plugin asks Jev about each of your latest prompts (twelve at most, and whatever the last compaction carried): does it still say how the assistant is to work, as something it must not do, something it must always do, or a standing go-ahead? A prompt Jev is 70% sure of is carried across in your own words: the writer of the summary is told to keep it, and the assistant reads it again when the session starts after the compaction.

    At SessionStart, session.compact.

Calling it done when it is not

  • Tell a turn it has lost its waydriftstarts in shadow

    Every 30 tool calls of a turn (a number you can set), Jev is shown what you asked for and the latest calls in brief (the tool and the start of what it was called with, never what it returned), and picks one of four: on track, stuck in a loop, going beyond what you asked, or working around something only you can settle.

    At PostToolUse.

  • Jev is asked which of six kinds of failure this is: a missing dependency, a passing fault (one that may clear on a second try), the machine's setup, a refusal of permission, the tool called wrongly, or a real defect in the work.

    At PostToolUseFailure.

  • It acts when three things hold: the last message says the work is done, files were changed this turn, and no test, build, lint or type-check has passed since the last change.

    At SubagentStop, TaskCompleted, Stop.

  • When a turn is about to end, Jev is asked which of five endings this is: finished, waiting on you, blocked, still running, or stopped early.

    At Stop.

A prompt taken the wrong way

Spending more than the work needs

  • Jev is asked whether the kind of agent the call names suits the task it is given.

    At PreToolUse.

  • Jev is asked which of four sizes of model the subagent's task takes: haiku, sonnet, opus or fable.

    At PreToolUse.

  • Answer permission prompts for youapprovestarts in shadow

    It approves a prompt only when Jev gives 15% at most that the call cannot be undone, under 50% that the call's own text argues for its approval, and one of two things more: Jev is 85% sure you already asked for exactly this, or 65% sure it is plainly ordinary work with that answer 30 points clear of its next answer.

    At PermissionRequest.

  • A tool output over 12,000 characters (a number you can set) is cut into blocks of about a paragraph, and Jev is asked of each one: does the assistant need this for what you asked? A block is left out when Jev says it is 10% likely or less to be needed, and a line is left in its place.

    At PostToolUse.

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

    At PostToolUse, turn.step.

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

    At prompt.submit, turn.step.

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

    At prompt.submit, turn.step.

  • Drop old results from a compactiontrimmedstarts in shadow

    Without this, whatever writes the summary reads every long listing and build log of the session.

    At session.compact.

The machine overloaded, or the plugin not working

On the page of each hook point and of each jevhook you can say something: which way you lean, and a few words if you like. Only the owner reads what you say, and nobody is shown a count. The site keeps a record of each visit: when, the address and the place it came from, and what kind of browser. Your browser can be given three random ids, each in a cookie. One makes what you say yours to change or take back. It is given when you first say something, and the site keeps only a scramble of it, a different one for each thing you speak of. One knows this browser again: it ties its visits and what it says here together. One only counts. It is used for totals and nothing else, the site keeps only a scramble of it and when it last came, and a browser that is known again has none. The last two are yours to refuse, with the buttons below, and saying something works the same without them. If you say yes to being known again, what you said here before is tied to this browser too.

This browser is known again by a cookie: its visits are counted, and what it says here is tied to it.