jev — a decision layer for Claude Code
Claude Code makes dozens of judgment calls in a coding session: which library, where the file
goes, how far the refactor reaches, whether to run the destructive command, what goes in the
plan. They happen silently, they are not recorded, and nothing about them is calibrated.
This plugin routes those decisions through Jev, TypeSafe's System
One model, which returns a typed answer with a probability distribution instead of prose. Code
owns the policy; the model supplies the judgment; every call lands in a ledger you can read.
JEV decide[validation-library] -> zod conf 0.79 - p 0.81 - margin 0.66 - stakes medium
ACTION proceed: act on this choice now; do not ask the user about it
probabilities: zod 0.81 | valibot 0.12 | hand_written_guards 0.04 | none_of_these 0.03
checks: breaks_public_api -> no (0.06) ok
How it works
Three layers, because no single one of them is enough:
| Layer | What it is | Why |
|---|
| Tools | an MCP server exposing decide and check, always loaded | the only way to give Claude a Jev capability it can call |
| Enforcement | hooks on ExitPlanMode, AskUserQuestion and the plugin's own tools | instructions are persuasion; hooks are the only deterministic lever, and they fire in plan mode and inside subagents |
| Knowledge | the jev-decisions skill | how to phrase a decision so the answer means something |
What the gates actually do:
- Plan approval (
ExitPlanMode) is refused until Jev has been consulted about the plan,
and the plan is then reviewed against what you actually asked for. Your approval dialog is
untouched — the gate never approves anything on your behalf.
- Questions to you (
AskUserQuestion) are intercepted. If Jev judges that your own words
already contain the answer — a separate "did they state this?" check, not just a confident
guess — Claude is told the answer and continues. Anything that genuinely needs your
preference reaches you untouched.
- Destructive Bash commands (
rm -rf, force-push, reset --hard, DROP/TRUNCATE,
terraform destroy, production deploys…) get the risky_command check before they run, with
a few read-only git facts attached (is the target gitignored, was the branch ever pushed). A
blocking finding refuses the command once, with the reason; ordinary commands never leave
your machine.
- Dependency installs (
npm install <pkg>, pip install, cargo add, go get…) are a
library choice, so one is refused until Jev has been consulted that turn. Restoring a
lockfile (npm install, pip install -r) is never gated.
- A command Jev already said to stop on. If Claude ran
check on a command, got
confirm, escalate_to_user or revise, and then runs it anyway, you get a permission
prompt with Jev's finding instead of the command running silently.
- Choices you delegated stay delegated. "You choose the framework" is read as exactly that:
Jev picks and flags it rather than handing the question back to you (except at high stakes).
- Entering plan mode mid-turn injects the plan-mode instructions immediately, instead of
waiting for the plan gate to refuse.
- Strict mode adds a triage before the turn's first edit and an end-of-turn backstop. Off
by default.
Every gate is bounded: at most two refusals per plan text, one per question set, one per
Bash command, one dependency refusal per turn. A gate can never
deadlock a session, and if Jev is unreachable everything falls through with a note that the
decision was unverified.
Install
You need a TypeSafe API key: https://console.typesafe.ai/keys.
Inside Claude Code:
/plugin marketplace add Panebianco00/jev-claude
/plugin install jev@jev-claude
When the plugin is enabled, Claude Code asks for the API key (stored in your system keychain)
and the enforcement level. Restart Claude Code to load it.
Or from a shell, in one go:
claude plugin marketplace add Panebianco00/jev-claude
claude plugin install jev@jev-claude --config api_key=YOUR_KEY
Change either setting later with /plugin configure jev@jev-claude. Exporting TYPESAFE_API_KEY
works too, and takes precedence. Nothing is built or downloaded at install: the bundles in
dist/ are committed. Node 20 or later must be on your PATH.
To update, run /plugin marketplace update jev-claude. Auto-update is off by default for
third-party marketplaces; you can switch it on in /plugin → Marketplaces.
Then /jev:status to confirm. Without a key the plugin still loads and every decision returns
proceed_unverified, so nothing breaks — it just does not decide anything.
/jev:log and /jev:status shell out, and a plugin cannot ship permission rules, so add these
to ~/.claude/settings.json once to stop being asked:
{ "permissions": { "allow": ["Bash(jev-log:*)", "Bash(jev-doctor:*)"] } }