jev-pilot
Reviewed
at commit 5d27135
Sends data to TypeSafe (api.typesafe.ai), OpenRouter (openrouter.ai), Vercel AI Gateway (ai-gateway.vercel.sh), only for the backend whose key you set; your Codex or OpenCode CLI's provider, when it reviews
TypeSafe's Jev decides how Claude Code works on each prompt: the main conversation's reasoning effort (low to xhigh, raised to max mid-turn when tool calls…
0 upvotes
Log in to upvote or save- Made by
- Ahmed Akram
- Pinned commit
-
5d27135b34edf81b40c0bf1df01ae401f6b72ea7 - What we checked
-
Sets the reasoning effort of each turn (raising it when tool calls keep failing), picks each subagent's model, and adds one chosen skill's instructions to your prompt while hiding Claude Code's skill list. With a key, your prompt, recent messages, skill descriptions and subagent briefs go to TypeSafe, OpenRouter or Vercel; without one, Claude on your account decides. Keeps a per-turn record and draws a pilot above the prompt.
Review details
Static review of the source at the pinned commit; not run. One hooks module (jev-pilot.ts) registers three parts. The router hooks session.start, prompt.submit, turn.step (sets effort, and the model only when routeMainModel is on, off by default; raises effort at most once per turn after escalateAfterErrors failed or repeated tool calls), tool.call (observes results, counts failures, and appends a step-back note to the result when the same file is edited or the same command fails repeatedly; it never blocks or denies), turn.complete, session.end, session.compact, agent.spawn (changes a subagent's model unless the caller named one, appends a one-line check note to low-effort briefs) and skill.prompt for /jev-pilot:report. The skill part hooks prompt.attachment (answers the skill_listing attachment with null or a trimmed list), prompt.submit (attaches the chosen skill's SKILL.md, plus strategy, quality and design advice blocks, as context) and skill.prompt for /jev-pilot:setup. The pet part draws an AbovePrompt band (terminal only) with timers and registers /jev. Network: $.http.fetch POSTs to the selected backend's /v1/systemone or /evaluation-model endpoint (default hosts api.typesafe.ai, openrouter.ai/api, ai-gateway.vercel.sh/v4/ai; base URLs are configurable) only when its key is set, with a 1.5 s timeout and fail-open; the payload is the prompt, up to 4 recent messages capped at 2000 characters (text and tool names only, never tool input or output), counts-only signals, platform names derived from the project's top two levels of file names, every candidate skill's name, description and first 300 characters of its SKILL.md, and at agent.spawn the subagent's brief and description. Without a key it uses $.model.classify (tokens on your account). With custom models configured it sends a 1-token check to openrouter.ai/api/v1/messages and reads OpenRouter's public model list; the local router address comes from JEV_ROUTER_URL and is only health-checked. Processes: every session start runs codex login status, codex debug models, opencode --version and opencode auth list through $.process.run (15 s timeouts; only the logged-in line and provider names are kept). It registers subagent types with $.agent.register: reviewer agents (Haiku, Bash only) that run codex exec -s read-only or opencode run --agent plan on a brief written to a mktemp file in /tmp (left there with the review output), and in junior-lead mode a junior coder on an OpenRouter model with Read, Edit, Write, Grep, Glob and Bash; no permission mode is bypassed. Files: reads project and user .claude/skills and .claude/commands SKILL.md files, ~/.claude/skills/synced, ~/.claude/plugins/installed_plugins.json and ~/.claude/settings.json (report and setup only); writes ~/.claude/jev-pilot/models.json and picker.json (custom model ids and descriptions) at each session start. $.store holds switches, crew choices, tuning and a ledger of turn decisions (effort, tokens, outcome, never prompt text). Env read: HOME, JEV_ROUTER_URL, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, JEV_ANTHROPIC_UPSTREAM, ANTHROPIC_BASE_URL. With inject "content" (the default) a picked skill's instructions are attached even when skillOverrides hides it from the model, but skills with disable-model-invocation are skipped. The /jev-pilot:setup command (user-invoked, pre-approves Read, Write, Edit and one rm of its own backup) tells Claude to show the list and ask before writing a backup and setting skillOverrides to user-invocable-only for every user skill and disableBundledSkills to true in ~/.claude/settings.json; restore undoes it. /jev-pilot:report only offers a settings edit after a yes. Read in full: plugin.json, hooks.json, jev-pilot.ts, jev-model-router.ts, jev-skill-suggestion.ts, jev-pet.tsx, crew.ts, crew-run.ts, crew-state.ts, features.ts, context.ts, summary.ts, jev-call.ts, the request, endpoint and settings parts of both policy files (the truncated tail of model-router.policy.ts was read in the clone). Covered by targeted search: pet-art.ts, session-stats.ts, ledger.ts, tuning.ts and the decision-reading parts of the policy files, which are pure and make no calls. Not reviewed: the separate claude-jev launcher, router/jev-router.mjs and install.sh, which the plugin does not load, and the Codex and OpenCode CLIs.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): yes
- Sends data over the network: yes
- Stores data: yes
- Shows something on screen: yes
TypeSafe's Jev decides how Claude Code works on each prompt: the main conversation's reasoning effort (low to xhigh, raised to max mid-turn when tool calls keep failing), each subagent's model, whether to split the work across subagents, and the one skill the prompt needs. Brings in custom OpenRouter models (a junior coder reviewed by Opus, or cheap bulk work) and Codex or OpenCode as reviewers, in modes you choose, each health-checked. Reads the prompt with recent context, records every decision, and suggests its own tuning. Backends: OpenRouter, TypeSafe's API, the Vercel AI Gateway, or Claude Code's built-in classifier. Built on claude-code-templates' jev-model-router and jev-skill-suggestion.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/jev-pilot/)