01 / What you get 20 features
what you get
Normal mode keeps speed features and output checks, with GitHub reminders to the agent. Blocking command, write, exfiltration and done-check gates require opt-in lockdown mode.
Trim long output
Cuts long output to what you asked about and names the lines it left out. A 20,000-character log came back as 4,600.
trimContext
Skill picker
Drops the skill list from every prompt and loads only the one you need.
trimContext · Claude Code
Stuck check
Same failure three times? The agent is told to try something else.
nudges
browse
Jev drives a headless browser, click by click. A flight search took 10 s.
browse · off by default
Router
Picks effort and the model for each request. Sent the flight search to Haiku.
routing
Auto-compact
New task and a full context? It compacts and keeps your new request.
autoCompact
Fast compaction
Jev keeps the messages that still matter, word for word. 60 messages in 336 ms, every constraint kept.
autoCompact · Claude Code, pi
Bash gate
In lockdown, blocks commands that can't be undone or send your keys out. Normal edits and pushes go through. Say yes and it runs.
lockdown
Write gate
In lockdown, blocks writes outside the repo or with keys in them. Every worktree counts as the repo.
lockdown
Exfil gate
In lockdown, blocks web and MCP calls that send your files or keys out. Every gate also checks your policies.
lockdown
Injection screen
Flags orders slipped in where they don't belong, like a README or an error. A prompt you're debugging isn't flagged.
injectionScreen
Done-check
In lockdown, an unverified done claim gets pushed back once.
lockdown
Subagent checks
A vague subagent brief goes back once. A subagent's "done" is checked against what it actually ran.
nudges · Claude Code
Writing rules
Your final reply is checked against the writing rules in CLAUDE.md and AGENTS.md, and rewritten once if it breaks one.
nudges · Claude Code
Secret masking
Keys, tokens, URL credentials, emails, and your home folder become markers before anything goes to Jev.
always on
find_code
Finds code by what it does, even when it's named something else. Returns the file and line, or no match.
jevTools
ask_jev
Lets the model ask Jev about files without reading them. Give it a folder and it asks every file, returning the yes ones.
jevTools
GitHub reminders
Before a GitHub change, workflow run or push, the agent checks the target and intent, then repeats the call to proceed. No Jev key needed.
githubReminders
/omj
This session's calls, cost, and blocks. Also /omj stats, /omj off, and /omj on.
slash command · enabled
02 / How it decides One tool call
how it decides
Every tool call gets one quick check. Normal mode reminds the agent before GitHub changes. Blocking gates require lockdown: true, off by default.
01 Lockdown judgment ~200 ms
02 The output comes back
ohmyjev blocked this: irreversible (0.95): nothing would restore what this removes or overwrites.
Do not try to work around it with another command, another tool, a different path, or an encoding that does the same thing. Tell the user what was blocked and why, and ask whether to run it anyway. If they say yes, run exactly this again: their reply then lets it through.Normal mode, the default
Blocking gates are inactive. GitHub changes pause once with an agent-visible reminder. After checking intent, the agent repeats the same call to proceed. Set githubReminders off to disable it.
Jev can be wrong, so keep your deny rules in settings.json.
03 / Install 4 steps
install it
You need a TypeSafe or OpenRouter key. These steps are for Claude Code. For the others see By host.
STEP 1
Check your version
You need 2.1.287 or later.
claude --version
STEP 2
Install the plugin
Answer y and pick a scope. Hooks start right away.
/plugin install ohmyjev --marketplace Novacon/ohmyjevSTEP 3
Add your key
- The settings screen during install (kept in secure storage)
TYPESAFE_API_KEYOPENROUTER_API_KEY, as~typesafe/jev-latest
export TYPESAFE_API_KEY=ts_...
STEP 4
Check it works
Run /omj. The last line shows where your key came from.
key: env TYPESAFE_API_KEY · typesafe · jev-1.13.0jev ⚠ no key
Set TYPESAFE_API_KEY in the shell that starts Claude Code.
jev ⚠ down
Jev failed or was slow in the last 5 minutes. Calls go through until it's back.
Reminder or denial?
A GitHub reminder lets the agent check and retry. For a lockdown denial, tune that gate or set /omj config lockdown off.
Nothing happens
Run claude --debug to see which hook failed.
04 / In use /omj · ask_jev · statusline · policies
in use
Most of the time you won't notice it. Here's what you'll see when you do.
/omj
this session · stats opens the dashboard · on, offjev ✓23 ⛔1 ↑opus/high calls 23 · errors 0 · cost $0.000966 · p50 310ms denies: Bash 1 Bash: irreversible (0.95): nothing would restore what this removes or overwrites key: env TYPESAFE_API_KEY · typesafe · jev-1.13.0
ask_jev
repo files only · 8000 chars each · 80000 total{ "question": "Which of these files handles session login?",
"type": "choice",
"options": ["src/auth.ts", "src/session.ts", "src/routes.ts"],
"files": ["src/auth.ts", "src/session.ts", "src/routes.ts"] }Transcript & status
built in, no setup ↗[ohmyjev] jev: tier fast (0.41) · effort 0.4 (0.38) · risky 0.01 · 210ms [ohmyjev] main loop kept opus/medium, wanted opus/low (confidence 0.38) jev ✓23 ⛔1 ↑opus/high 🗜2
Your own rules
lockdown policies · separated by ;never touch the prod cluster; no deploys on Friday; don't edit migrations that already ran
05 / Settings /omj config
tune it
/omj config lists the settings, and /omj config <name> <value> changes one for the session. Each turns a whole feature on or off.
| Setting | Default | What it changes |
|---|---|---|
enabled | on | The whole thing. /omj on and off for one session. |
apiKey | empty | Your TypeSafe key. Empty uses $TYPESAFE_API_KEY, then $OPENROUTER_API_KEY. |
lockdown | off | Blocks irreversible commands, writes outside the repo or holding credentials, data leaving, and an unverified "done". |
shadow | off | Runs lockdown's checks and blocks nothing; /omj lists what it would have blocked. Try this first. |
allowPaths | ~/.claude;$TMPDIR;/tmp | In lockdown, places outside the repo it can write to. |
policies | empty | Your own rules for lockdown, separated by ;. |
injectionScreen | on | Flags tool output, and Reads from outside the repo, that give the model orders. |
githubReminders | on | Asks the agent to review a push or gh change once. |
nudges | on | One-time notes on broken writing rules, vague subagent briefs, and repeated failures. |
trimContext | on | Cuts long shell output; loads only the skill you need. |
autoCompact | on | Compacts fast after a task switch. |
routing | effort | off, effort, or model (also the main model; drops the prompt cache). |
jevTools | on | The ask_jev and find_code tools. |
browse | off | Adds the browse tool. Needs uv and Chrome. |
statusLine | on | Status under the prompt, and a dim line per decision. |
Privacy
Each check sends Jev only what it needs. What each sends.
Update (then restart) or remove
claude plugin update ohmyjev@ohmyjev claude plugin uninstall ohmyjev@ohmyjev
Develop
The decision logic in hooks/policy.ts is pure and table-tested.
06 / By host Claude Code · Codex · omp · pi
by host
Same checks everywhere. Codex can't add tools, and pi and omp never ask permission.
| Claude Code | Codex | omp | pi | |
|---|---|---|---|---|
| Bash gate | Bash | Bash | bash, eval, GitHub pushes | bash, powershell |
| Write gate | Write, Edit, NotebookEdit | apply_patch | write, edit, ast_edit | write, edit |
| Trim, stuck check, done-check | yes | yes | yes | yes |
| Fast compaction | yes | no | no: omp can only add to the summary | yes |
| Skill picker, subagent checks, writing rules | yes | no | no | no |
| Secret masking | yes | yes | yes | yes |
| Router | yes | no: hooks can't set it | yes | yes |
/omj, ask_jev, find_code, browse | yes | no: hooks can't add tools | yes | yes |
| Install | /plugin install ohmyjev --marketplace Novacon/ohmyjev | codex plugin marketplace add Novacon/ohmyjev, then codex plugin add ohmyjev@ohmyjev and /hooks | omp plugin install ohmyjev | pi install npm:ohmyjev |
07 / Privacy what each check sends
privacy
Each check sends Jev only what it needs, with secrets masked first. No key, nothing goes. Logs stay in ~/.ohmyjev.
| Check | What it sends |
|---|---|
| Bash gate | The command (up to 16,000 characters), the working directory, the call's description, your latest message (1,500) and, right after a block, the blocked call. Plain reads send nothing. |
| Write gate | The path and the new content (16,000). In lockdown, writes outside the repo are denied by code before anything is sent. |
| Exfil gate | The tool's name and input (4,000). |
| Injection screen | The tool's output (6,000). |
| Trim | Your latest message and the long output, in parts of about 1,500 characters, up to 24. |
| Stuck check | Your latest message and the last six failed calls: input and the end of each output. |
| Skill picker | Each prompt with every skill's name and one-line description. |
| Done-check | The request, five earlier ones, this turn's tool calls with the end of each output, and the agent's last message. |
| Fast compaction | Recent messages in groups of 10, each cut to 1,200 characters. |
| Writing rules | Each final reply (6,000). The rules come from your instruction files once, pulled out by Haiku inside Claude Code. |
| Router | The request (1,500). |
ask_jev, find_code | The question and repo files. Never files outside the repo. |
browse | The goal and URL to the exfil gate; then each step, the page's controls and visible text to Jev. |
08 / Measurements small samples, stated as such
the numbers
Real runs on an M-series Mac, October 2026. Small samples, including the weaker results.
| Google Flights, Claude Code end to end | Runs | Median | Cost per run |
|---|---|---|---|
| As shipped: Opus 5.5 at xhigh, Playwright | 108 · 339 · 31 s | 108 s | $0.23–0.42 |
| Router picks Haiku, Playwright | 44 · 69 · 39 s | 44 s | ~$0.01 |
| Haiku by hand, for reference | 31 · 77 · 27 s | 31 s | ~$0.01 |
Router and browse | 18.2 · 16.4 · 18.9 s | 18 s | ~$0.002 |
browse called directly | 10.5 · 7.4 · 9.9 s | 10 s | ~$0.001 |
| Check | Result |
|---|---|
| Jev cost and speed | 3,877 real calls over 90 sessions: $0.13 in all, median 163 ms, 95th percentile 239 ms. |
| Plain reads | 31% of 4,888 real commands skip Jev. |
| Trim | A 20,471-character test log to 4,582, the failure kept, in 281 ms. |
| Safety gates | 28 of 28, three runs. Was 24 of 28 before the fixes. Still 28 of 28 with secret masking on. |
| Fast compaction | 60 messages in 336 ms. All 5 planted items kept (3 constraints, a failing test, an open question), none of the 51 lines of routine output. |
| Stuck check | 0.96 on three repeats of one failing build; 0.15 on three unrelated failures. |
| Injection screen | 11 of 11: 5 planted attacks flagged at 0.94 or more, and none of 6 prompts, transcripts, and request bodies an agent prints while debugging. The old wording flagged all 6. |
| Skill picker | 4 of 4 on 8 real skills, including none for a test fix. |
| Router on coding tasks | 10 of 10 pass either way. About 15% faster with it on. |
