ohmyjev

the reference

ohmyjev asks Jev about every step your agent takes. Each check takes about 160 ms and costs about $0.00003. Demos are on the home page, the details are here.

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.

Faster

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

Faster

Skill picker

Drops the skill list from every prompt and loads only the one you need.

trimContext · Claude Code

Faster

Stuck check

Same failure three times? The agent is told to try something else.

nudges

Faster

browse

Jev drives a headless browser, click by click. A flight search took 10 s.

browse · off by default

Faster

Router

Picks effort and the model for each request. Sent the flight search to Haiku.

routing

Faster

Auto-compact

New task and a full context? It compacts and keeps your new request.

autoCompact

Faster

Fast compaction

Jev keeps the messages that still matter, word for word. 60 messages in 336 ms, every constraint kept.

autoCompact · Claude Code, pi

Safer

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

Safer

Write gate

In lockdown, blocks writes outside the repo or with keys in them. Every worktree counts as the repo.

lockdown

Safer

Exfil gate

In lockdown, blocks web and MCP calls that send your files or keys out. Every gate also checks your policies.

lockdown

Safer

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

Safer

Done-check

In lockdown, an unverified done claim gets pushed back once.

lockdown

Safer

Subagent checks

A vague subagent brief goes back once. A subagent's "done" is checked against what it actually ran.

nudges · Claude Code

Safer

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

Safer

Secret masking

Keys, tokens, URL credentials, emails, and your home folder become markers before anything goes to Jev.

always on

Faster

find_code

Finds code by what it does, even when it's named something else. Returns the file and line, or no match.

jevTools

Tool

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

Default

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

Tool

/omj

This session's calls, cost, and blocks. Also /omj stats, /omj off, and /omj on.

slash command · enabled

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.

InClaude calls a tool

01 Lockdown judgment ~200 ms

Clearly risky, lockdown enabledDenied, with the reason
Clearly safeRuns, no permission prompt
UnsureNormal permission flow, then the tool runs
Jev down, slow, or no keyNormal permission flow, then the tool runs

02 The output comes back

Long, mostly unrelatedCut to the parts the request needs
The same failure, a third timeAgent told to change approach
Has instructions aimed at the modelModel gets a "treat as data" note
None of theseOutput as is
what claude sees on a lockdown deny
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.

~200msa typical Jev answer
1.5sslower than this, it fails open
0prompts added
<1¢per Jev call

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.

shell
claude --version

STEP 2

Install the plugin

Answer y and pick a scope. Hooks start right away.

claude code
/plugin install ohmyjev --marketplace Novacon/ohmyjev

STEP 3

Add your key

  1. The settings screen during install (kept in secure storage)
  2. TYPESAFE_API_KEY
  3. OPENROUTER_API_KEY, as ~typesafe/jev-latest
~/.zshrc
export TYPESAFE_API_KEY=ts_...

STEP 4

Check it works

Run /omj. The last line shows where your key came from.

/omj, last line
key: env TYPESAFE_API_KEY · typesafe · jev-1.13.0

jev ⚠ 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.

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, off
/omj
jev ✓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
ask_jev input
{ "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
transcript, then the status under the prompt
[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 ;
policies
never touch the prod cluster; no deploys on Friday; don't edit migrations that already ran

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.

SettingDefaultWhat it changes
enabledonThe whole thing. /omj on and off for one session.
apiKeyemptyYour TypeSafe key. Empty uses $TYPESAFE_API_KEY, then $OPENROUTER_API_KEY.
lockdownoffBlocks irreversible commands, writes outside the repo or holding credentials, data leaving, and an unverified "done".
shadowoffRuns lockdown's checks and blocks nothing; /omj lists what it would have blocked. Try this first.
allowPaths~/.claude;$TMPDIR;/tmpIn lockdown, places outside the repo it can write to.
policiesemptyYour own rules for lockdown, separated by ;.
injectionScreenonFlags tool output, and Reads from outside the repo, that give the model orders.
githubRemindersonAsks the agent to review a push or gh change once.
nudgesonOne-time notes on broken writing rules, vague subagent briefs, and repeated failures.
trimContextonCuts long shell output; loads only the skill you need.
autoCompactonCompacts fast after a task switch.
routingeffortoff, effort, or model (also the main model; drops the prompt cache).
jevToolsonThe ask_jev and find_code tools.
browseoffAdds the browse tool. Needs uv and Chrome.
statusLineonStatus 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.

by host

Same checks everywhere. Codex can't add tools, and pi and omp never ask permission.

Claude CodeCodexomppi
Bash gateBashBashbash, eval, GitHub pushesbash, powershell
Write gateWrite, Edit, NotebookEditapply_patchwrite, edit, ast_editwrite, edit
Trim, stuck check, done-checkyesyesyesyes
Fast compactionyesnono: omp can only add to the summaryyes
Skill picker, subagent checks, writing rulesyesnonono
Secret maskingyesyesyesyes
Routeryesno: hooks can't set ityesyes
/omj, ask_jev, find_code, browseyesno: hooks can't add toolsyesyes
Install/plugin install ohmyjev --marketplace Novacon/ohmyjevcodex plugin marketplace add Novacon/ohmyjev, then codex plugin add ohmyjev@ohmyjev and /hooksomp plugin install ohmyjevpi install npm:ohmyjev

privacy

Each check sends Jev only what it needs, with secrets masked first. No key, nothing goes. Logs stay in ~/.ohmyjev.

CheckWhat it sends
Bash gateThe 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 gateThe path and the new content (16,000). In lockdown, writes outside the repo are denied by code before anything is sent.
Exfil gateThe tool's name and input (4,000).
Injection screenThe tool's output (6,000).
TrimYour latest message and the long output, in parts of about 1,500 characters, up to 24.
Stuck checkYour latest message and the last six failed calls: input and the end of each output.
Skill pickerEach prompt with every skill's name and one-line description.
Done-checkThe request, five earlier ones, this turn's tool calls with the end of each output, and the agent's last message.
Fast compactionRecent messages in groups of 10, each cut to 1,200 characters.
Writing rulesEach final reply (6,000). The rules come from your instruction files once, pulled out by Haiku inside Claude Code.
RouterThe request (1,500).
ask_jev, find_codeThe question and repo files. Never files outside the repo.
browseThe goal and URL to the exfil gate; then each step, the page's controls and visible text to Jev.

the numbers

Real runs on an M-series Mac, October 2026. Small samples, including the weaker results.

Google Flights, Claude Code end to endRunsMedianCost per run
As shipped: Opus 5.5 at xhigh, Playwright108 · 339 · 31 s108 s$0.23–0.42
Router picks Haiku, Playwright44 · 69 · 39 s44 s~$0.01
Haiku by hand, for reference31 · 77 · 27 s31 s~$0.01
Router and browse18.2 · 16.4 · 18.9 s18 s~$0.002
browse called directly10.5 · 7.4 · 9.9 s10 s~$0.001
CheckResult
Jev cost and speed3,877 real calls over 90 sessions: $0.13 in all, median 163 ms, 95th percentile 239 ms.
Plain reads31% of 4,888 real commands skip Jev.
TrimA 20,471-character test log to 4,582, the failure kept, in 281 ms.
Safety gates28 of 28, three runs. Was 24 of 28 before the fixes. Still 28 of 28 with secret masking on.
Fast compaction60 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 check0.96 on three repeats of one failing build; 0.15 on three unrelated failures.
Injection screen11 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 picker4 of 4 on 8 real skills, including none for a test fix.
Router on coding tasks10 of 10 pass either way. About 15% faster with it on.
Top