By 0x7067
Routing, rule checks and compaction for Claude Code, answered by TypeSafe's Jev System One model
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub 0x7067/claude-jevHands the small judgments in a session to TypeSafe's Jev, a System One model that returns typed answers instead of generating text: what kind of request each prompt is, which model tier a subagent needs, whether an edit breaks a rule already written in your CLAUDE.md or AGENTS.md, and which transcript blocks survive compaction. Kept blocks carry over verbatim — no LLM writes a summary.
Jev judgment hooks for AFK — automatic rule enforcement, prompt routing, and turn-level compliance. Hooks are fences the agent cannot skip; MCP tools are lenses the agent chooses to use.
Stop paying frontier-model prices for small judgments.
A coding agent makes dozens of quick calls every turn. What kind of prompt is this? Does it need tools? Does this edit break a rule in CLAUDE.md? Which turns still matter when the context fills up? This plugin sends those questions to TypeSafe's Jev. Jev is a System One model: it returns typed answers, not text, and it doesn't write code.
What you get:
Every hook fails open. An error, a missing key, or a timeout produces no output and never blocks a prompt. Compaction falls back to Claude Code's own summary.
claude plugin marketplace add 0x7067/claude-jev
claude plugin install claude-jev@claude-jev
Then set TYPESAFE_API_KEY or OPENROUTER_API_KEY. Without a key, the hooks switch off silently. The plugin needs only python3 and its standard library.
To turn on compaction and the /claude-jev settings pane, start Claude Code 2.1.278 or later with:
export CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1
The other hooks work without this flag.
pi install git:github.com/0x7067/claude-jev
Pi loads adapters/pi/jev.ts from the pi.extensions field in package.json. That file is the session_before_compact hook and the /jev command. Without TYPESAFE_API_KEY or OPENROUTER_API_KEY the hook returns nothing and Pi writes its own summary. The same two variables are read from the environment first, then from $PI_CODING_AGENT_DIR/.env (~/.pi/agent/.env). JEV_PROVIDER pins typesafe or openrouter. JEV_MODEL defaults to jev-latest.
The hook judges with selectBlocks in src/compact/strategy.ts. Pi-only pieces stay in the adapter: how a Pi message becomes a block, pairing a tool result to its call by toolCallId, relabeling bash output and earlier summaries, and the <read-files> and <modified-files> lists the summary shows the model. The kept blocks are fit to 14,000 characters. Paths from dropped or truncated calls may use 2,000 more. Pi's own read paths and <modified-files> sit outside that reservation. Claude's compaction budget is still one flat 16,000. 0x7067/pi-jev stays up; this repo does not replace that install yet.
TYPESAFE_API_KEY first.sk-or-, in either variable, sends every call to OpenRouter's System One API instead of api.typesafe.ai./claude-jev or /config. A pinned provider reads only its own variable.CLAUDE_CODE_ENABLE_FUNCTION_HOOKS is Claude Code's own switch for its experimental function hooks. It's off by default and undocumented. docs/claude-code-compaction-research.md records what was verified. Function-hook modules load only in a trusted workspace, and never for subagents.
Leave auto-compact on. It's the Auto-compact row in /config, stored as autoCompactEnabled in ~/.claude/settings.json. With the flag set, auto-compaction goes through Jev like /compact does. With auto-compact off, a session runs until it hits the context limit, and then you must run /compact yourself.
/claude-jev paneWith the flag set, /claude-jev opens a settings pane. Use it to:
scripts/stats.py report on router hints against what sessions did, rule calibration, and compactionWithout the flag, the four on/off rows are in /config.
The rule hook's comparators use ast-grep 0.45.3. If it isn't on your PATH, a detached process fetches the pinned release to ~/.claude/jev-bin the first time an edit needs it, and checks its sha256. Every hook works without it. To fetch it now, or to see which binary would run:
python3 scripts/comparators.py fetch
python3 scripts/comparators.py which
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.