
jevc
Turn the rules your agent keeps ignoring into gates you can test.
Your CLAUDE.md says NEVER commit unless the user explicitly asks, and the agent commits
anyway — because a markdown rule is a suggestion the model re-reads fresh every turn.
jevc compiles a rule like that into a Jev program: a few narrow typed questions
answered by TypeSafe's System One model (jev-1.13.0 — non-generative, returns
probabilities, never text), plus a reducer that computes the verdict in ordinary code. The
rule stops being prose the model weighs and becomes an invariant you can read, diff and
unit-test.
It is for anyone shipping a gate an LLM currently judges — a Claude Code PreToolUse hook,
a tool-call guard, a model router, an output verifier — who needs that decision to be
reproducible and reviewable.
Related, by the same author: if the decision is one label from a fixed list that your LLM already makes
at volume (routing, triage, moderation), NoGPU measures for free, on your own past
decisions, how many of them a small CPU model can take alone.
Start here
npm install -g jev-compiler # the package is jev-compiler; the command it installs is jevc
jevc check # replays the recorded corpus, offline
jevc scan . # what this project could enforce
From source instead: git clone https://github.com/doronp/jevc && cd jevc && npm install && npm run build,
then npx jevc … from the checkout. Node >= 22 to run the test suite.
$ npx jevc check
58 fixtures, 58 passing, 0 failing
No API key, no network — not for the tests, the examples, or anything in this README
except jevc check --live.
As a Claude Code plugin: /plugin marketplace add doronp/jevc, then
/plugin install jevc@jevc. It adds one skill, /jevc:jevc, which runs the scan, lift and
compile below for you and asks before it installs a gate
(docs/wiring.md).
Your rules are already in the repo
Point jevc scan at a project. It finds the instruction files agent harnesses actually
read — CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules,
.github/copilot-instructions.md, .claude/skills/**, .claude/agents/** — and sorts
what it finds into what can be enforced and what cannot:
$ npx jevc scan examples/sample-project
examples/sample-project
CLAUDE.md 13 rules 7 decidable 4 procedure 2 generation
AGENTS.md 7 rules 5 decidable 2 procedure 0 generation
.claude/skills/release/SKILL.md 12 rules 4 decidable 6 procedure 2 generation
32 rules across 3 files. 16 look decidable — those are the ones that can become typed Jev questions.
Start with CLAUDE.md, which has the most:
7 NEVER commit unless the user explicitly asks. Produce the message; let the human ru…
8 Never delete tracked files. If something looks unused, say so and stop.
9 Do not push to `main`. Open a branch and a PR.
10 Ask before adding a dependency. We audit the lockfile by hand every release.
11 Migrations under `db/migrations/` are append-only once merged. Write a new one inst…
… and 2 more
Next:
jevc compile examples/sample-project/CLAUDE.md --lift
Hand the request it prints to the agent you already have open. No second API key.
...
The ... is one elided paragraph: scan's own note that this classification is a text
heuristic and the list is worth reading rather than the counts
(why that is fine here).
A prompt braids three different things together, and only one of them compiles:
| Part | Example | Compiles? |
|---|
| Decision | "is this command dangerous?", "which team owns this?" | yes |
| Generation | "write a summary", "explain your reasoning" | never — Jev emits no text |
| Procedure | "read the file before editing it" | no — that is control flow; it belongs in code |
No tool can turn a whole prompt into an equivalent Jev program.
jevc separates them, and every compilation emits all three parts: the decision set, the
residual prompt for whatever genuinely still needs a generative model, and the wiring
that evaluates the first and calls the LLM only for the second. A compilation that produces
no decisions is a valid answer — that prompt had no System One content, and jevc says so
instead of inventing questions.
jevc compile <file> --lift prints a lowering request for the agent you already have open
(Claude Code, Codex, Cursor), which returns candidate decisions as JSON. No second API key,
no second bill. JSON Schema is still a first-class input — it is just no longer the front
door, because your existing files are.
Before and after, for one rule