Skip to content

Jev directory

Bicameral

A hybrid coding harness for Pi where any LLM writes the code while Jev returns typed probabilities that deterministic policy code turns into allow, confirm, block, warn, or steer.
Stars
8
Language
TypeScript
License
MIT
Reading time
4 min
Published by
Community
Author
AbdelStark
Last verified
Sep 2026

About this project

A hybrid coding harness for Pi. System 2 (any LLM Pi runs) writes the code. System 1 (TypeSafe Jev, trained with Reinforcement Learning for Calibrated Decisions / RLCD) returns typed probabilities. Deterministic policy code turns those scores into allow / confirm / block / warn / steer. System 1 scores only. It never generates text. Isolation is still the job of containers. This is not a sandbox. Architecture · Reflexes · HUD · Install · Policy · Library · Data flow · Fail-safe · Status.

Quoted from the project's README. Read the full README.

Highlights

  • Gate scores exfiltration and secret access on tool calls, Honest Finish scores weakened tests on edits, and Stuck Detector watches for repeats at turn end.
  • Speculative prefetch starts the Gate judgment while the LLM is still streaming the tool call, under a 900 ms deadline.
  • Hints and follow-up turns are templates filled with scores and pre-signals, not text written by a model.
  • State is redacted before it reaches Jev: raw file contents, unredacted secrets, full transcripts, policy files, and other API keys are not sent.
  • bicameral.decision audit entries do not enter the LLM context, and /why prints the recorded scores, policy rule, and latency with no model-written explanation.

Quickstart

bash
pnpm install
pi install "$(pwd)/packages/pi-bicameral"
cp examples/bicameral.yaml ~/.pi/agent/bicameral.yaml

Watch out

MIT-licensed. The packages are not on the public npm registry yet and the GitHub remote is private until launch; running it needs Node 20+, pnpm, and Pi 0.85.1, and it is explicitly not a sandbox.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: Vercel's fx safety reviewer, measured at 18× faster

Reddit: Early experiments wiring Jev into Pi as a safety layer and model router.

X: Decision outputs in Grep

Hacker News: jevmem keeps Claude Code project memory by asking Jev which turns are worth saving.

avinashjetwani61 pointsJevmem – automatic project memory for Claude Code, built on JevRead the thread on Hacker News

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai