10 Levels of Jev Lab
Thirty runnable examples that take Jev from one smart if statement to a coding agent that writes its own questions.
- Source repo
- disler/ten-levels-of-jev
- Stars
- ★ 278
- Last updated
- 2mo ago
- FARS reviewed
- Dec 01, 2026
- License
- MIT
- Primary language
- TypeScript
- FA score
- 64/100 · Some gaps
At a glance
- How it runs
- Works with
- Platform-specificClaude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Engineers adding semantic judgment (injection detection, urgency tiering) to plain code can copy the single-file implementations in level01/level02.
- Not a fit if
- Teams unwilling to install the pi coding agent for levels 6-10
- Teams expecting these gates to be a sole production security control
- Maintenance
- Commits in the last 6 monthslast commit 2026-09-27
- Source review
- 64/100 · Some gaps
What does this agent do, and when should you use it?
This is a teaching lab built around TypeSafe Jev: you send a state plus typed questions, and about 300 ms later get back typed answers with probabilities your code can branch on. The repository arranges thirty concrete use cases into ten levels. Levels 1-5 call Jev from plain TypeScript functions; levels 6-10 embed Jev inside the pi coding agent, first as hooks the agent never sees, then as tools it chooses to call, and finally as an ask_jev tool where the agent writes the question blocks itself. You run it through a Vue web lab on port 4399, a terminal runner (just jev1 through jev10), 201 offline tests against a deterministic mock, and 10 live tests. Core wire-contract and client code lives in apps/ten-levels/src/core, per-level decision code in src/levels/level01..level10, and pi extensions in apps/ten-levels/extensions. Live runs require an OpenRouter key and network access.
Every level funnels into jev.systemOne({ message }, { questions }) in src/core/client.ts, where the state can be a string, object, or array and each question is declared as noul (probability of yes), choice (up to 255 declared options, returning per-option probabilities and confidence), or score (a described 2-10 scale returning score, legend, probabilities, confidence). Levels 1-5 are single async files that keep questions and thresholds together, e.g. level04/confidence.ts treats anything below 0.5 as human-decides and above 0.9 as skip-confirmation; level05 routes work to a script, fast agent, reasoning agent, browser agent, or human in one cheap call. Levels 6-10 are pi extensions: jev-guard.ts hooks tool_call and tool_result to gate bash and screen injected content; jev-compact.ts asks four questions at turn_end and exposes compact_now plus a should_i_compact tool; ask-jev-file.ts ships ask_jev_file_bool/choice/score so code reads the file, sends it as content, and the agent only receives answers; ask-jev-files.ts expands globs, prunes, caps at 255, judges each file in parallel and then picks one with pick_first_file; ask-jev.ts accepts state, paths and a command, runs the command through the Level 6 bash gate first, and returns only answers. Extensions report each decision as JEV_EVENT lines on stderr, which the server folds into the web window, while agent-session.mjs spawns one real pi process per session in a git-initialized .sandboxes/<id>/ copy.
- Engineers adding semantic judgment (injection detection, urgency tiering) to plain code can copy the single-file implementations in level01/level02.
- Teams that want a semantic gate before an agent runs bash or writes files can port the jev-guard.ts tool_call/tool_result hooks.
- Agent developers whose context fills with large files can use ask_jev_file_bool-style tools; the README example judges 9,089 tokens for $0.00049 without loading them.
- Teams that need a near-free first pass over a large repository can use level09's glob expansion plus parallel judging, then open only the file pick_first_file returns.
- Teams that want the agent to validate its own assumptions (classify a test failure, score a diff's risk) can adopt the single ask_jev tool from level10.
- Anyone wiring Jev into Claude Code or another skill-aware agent can invoke .claude/skills/hyper-jev to generate the client, question design, and offline tests.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install -g @earendil-works/pi-coding-agent
- Environment variables
OPENROUTER_API_KEY- Config files
.env.sample.env- Runtime
- Node.js 24
How do you install or deploy this agent?
Prerequisites are Node 24, bun, just, pi 0.85.1+ for levels 6-10, and an OpenRouter key for live runs. The agentic path runs the /install slash command:
just installManual install:
cd apps/ten-levels/web && bun install && cd ../../..
cp .env.sample .env
npm install -g @earendil-works/pi-coding-agent
just testThen set OPENROUTER_API_KEY in .env or export it in your shell. Without a key, levels 1-5 still run on the offline mock; levels 6-10 need both pi and the key.
How do you use this agent?
Build the lab and open it in a browser:
just webThis serves http://127.0.0.1:4399. To run one level or one option in the terminal:
just jev1
just jev4 b
just demo
just demo-liveIn the web lab, levels 1-5 let you pick an input set and press Run live to see the exact request body, typed answers as probability bars, the response body, and a cost table across six chat models. Levels 6-10 open an agent window; pressing Go spawns a real pi session in a git copy of sandbox/, and Cmd+Enter runs the example or sends the prompt. Use just dev for Vite hot reload on 5173 (needs just web for the API), just test for the 201 offline tests, and just test-live for one live call per level.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- All thirty options across ten levels are runnable code, each one a single file with questions and thresholds kept together for review.
- It draws a clear division of labor: thresholds and counting stay in code, bounded judgments go to Jev, and open-ended work goes to an agent.
- 201 offline tests run against a deterministic mock, so contracts and decision logic can be verified without a key.
- Jev is genuinely embedded in pi's hook and tool layers, with JEV_EVENT reporting so every decision is observable.
- The bundled hyper-jev skill hands a tested client, cookbook, and starter templates to other skill-aware agents.
- Every live run depends on an OpenRouter key plus the TypeSafe Jev service, two external dependencies.
- Levels 6-10 are bound to the pi coding agent (0.85.1+); porting to another runtime means rewriting the extensions.
- The README states the offline mock models shape, not intelligence, deciding by word overlap so rubric wording matters more than live.
- The author labels the Level 6 gates a single signal rather than a sole control, and documents a live run where the agent wrote a blocked file via a bash heredoc.
- The agent can print environment variables and the OpenRouter key stays visible to it, so .sessions/ must be treated as sensitive.
How does this agent compare with similar options?
The README contrasts Jev with two common alternatives: regex or keyword checks that keep breaking, and full chat-model calls that cost far more and return prose that must be parsed. It also prices one million yes/no calls at roughly $3,500 on an expensive SOTA model, $525 on a workhorse model, and $16.80 on Jev.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| 10 Levels of Jev Lab This agent | 64 · Some gaps | Web appFree + model costs | ★ 278 | 2mo ago | TypeScript | Claude Code |
| Pi Jev Auto Mode | 73 · Some gaps | Agent plugin / skillFree + model costs | ★ 34 | 1mo ago | TypeScript | — |
| Pi Extensions | 77 · Good | CLIFree + model costs | ★ 818 | today | TypeScript | — |
| PI WEB | 77 · Some gaps | Self-hosted serviceFree + model costs | ★ 972 | today | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
least_privilege: SKILL.md requires keys server-side, no credential printing, no sensitive state to unapproved providers, and tests deny unstubbed fetch by default — moderate but no runtime permission model, deducted. user_confirmation: Level 4/6 confidence gating and human-confirm paths exist but are examples, not enforced mechanisms, deducted. data_flow_transparency: README and SKILL state state/questions go to TypeSafe/OpenRouter, fairly transparent, but no full data-flow diagram. sensitive_data_handling: credential handling and audit-record constraints present, but no redaction or retention detail. dependency_security: depends on Node/bun/just/pi/OpenRouter with no lockfile or vulnerability review shown; only pi 0.85.1+ mentioned, deducted. external_effects: Level 6/10 bash commands are gated, but examples can run destructive commands as controlled demos. rollback: no rollback or undo mechanism, only sandbox copies, deducted. source_attribution: LICENSE credits IndyDevDan/AgenticEngineer.com and README cites TypeSafe docs, but publisher identity is unverified.
README, SKILL.md and tests agree on provider selection, mock behavior and the 255 cap — 2. dependency_availability: multiple external tools and API keys required; offline only covers Levels 1-5, Levels 6-10 need pi and a key, deducted. failure_messages: tests show missing/blank keys fail closed with clear errors (No Jev credentials, Unknown JEV backend) — 2.
audience_and_scenarios: README targets agentic engineers with a ten-level progression and thirty use cases — 3. capability_boundaries: explicitly states Jev does bounded judgments, not arithmetic/dates/authorization, and security gates are one signal only — 3. trigger_precision: SKILL.md has description and argument-hint but broad trigger conditions, no precise rules, deducted. environment_fit: requires Node 24, bun, just, pi 0.85.1+ — narrow environment fit, deducted.
information_architecture: README is well structured (install, ladder, use cases, limits) but truncated; SKILL references cookbook files not shown in packet, deducted. install_notes: both agentic and manual install paths documented — 2. naming_stability: level01-level10 and ask_jev naming is consistent, but no versioned naming policy. examples_and_faq: thirty use cases and many sample outputs — 3. known_limitations: 'when not to use Jev' and security-gate caveats present, but the 'Where it can still fail' section is truncated, deducted. license: full MIT text — 3. versioning_changelog: no version number or changelog — 0. maintenance_responsibility: only LICENSE attribution, no maintainer contact or update path, publisher unverified, deducted.
output_usability: examples return typed answers and thresholds that map to code paths, but the full client source is not shown in the packet, deducted. marginal_value: ten-level progression and cost comparison are useful to agentic engineers, but core value depends on the external Jev service. cost_benefit: README gives cost comparison ($16.80 vs $3,500 per million calls) but as self-reported figures without independent verification, deducted.
claim_traceability: README cites TypeSafe docs and a video, but most performance/cost numbers lack per-claim sources, deducted. cross_source_corroboration: README, SKILL.md and tests corroborate provider selection and mock behavior — 2. fact_inference_separation: sample outputs and inferences are interleaved; 'live run' numbers are not clearly marked as example vs measured, deducted.
- Publisher identity is unverified; maintenance responsibility and update path are unclear — verify independently before use.
- Levels 6-10 require pi 0.85.1+ and an OpenRouter key; offline coverage is only Levels 1-5, narrowing environment fit.
- Cost and performance figures in README are self-reported and not independently verified; do not treat as procurement evidence.
- Examples include executable destructive bash commands (e.g. rm -rf); despite gating, run only in an isolated sandbox.
- No version number or changelog is present; track upstream changes if relying long-term.
FAQ
Can I run it without paying for a key?
How is this different from calling an LLM?
Is the Level 6 gate safe enough to be my only control?
Will it modify my repository?
Which agent runtimes are supported?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.