jev-route
Route with TypeSafe Jev — map Choice plus confidence to act/confirm/human, or pick a coding-agent model tier. Use for confidence routing, model routing, cheap vs frontier, loop-jev, or when the user runs /jev-route or `npx jev route`.
- License 许可
- MIT
- 最近更新
- 2026-10-15
- Stars
- ★ 141
- Forks
- 30
01 前言 Front Matter
- name
- jev-route
- description
- Route with TypeSafe Jev — map Choice plus confidence to act/confirm/human, or pick a coding-agent model tier. Use for confidence routing, model routing, cheap vs frontier, loop-jev, or when the user runs /jev-route or `npx jev route`.
03 SKILL.md 正文
Jev routing
Jev returns a distribution. Code picks the lane. Fan-out extra questions in the same call (skills/jev-fanout/SKILL.md). Primitives and auth: skills/jev/SKILL.md.
1. Confidence-gated action
Choice is what. Confidence is whether to trust it.
Defaults in jev_lab/policy.py:
| Confidence | Lane |
|---|---|
| ≥ 0.8 | act |
| ≥ 0.5 | confirm |
| else | human |
Raise the bar for irreversible actions (unlock, spend, delete). Compose Noul urgency and Score frustration after the Choice, in code (ticket_policy). Do not reuse a Noul 0.7 threshold as Choice confidence.
examples/05_confidence_routing.py
2. Model-tier routing
Choice criteria = cheapest tier that can still do the job. Labels in packages/js/src/route.ts:
| Tier | When |
|---|---|
nano |
Typo, format, list, one-line edit |
fast |
L1 triage, classify, changelog |
balanced |
Focused patch, PR comment |
frontier |
Ambiguous multi-file, CI root-cause |
reasoning |
Verifier, security, maker/checker |
If confidence < 0.55 and the pick is not nano, this repo falls back to balanced — an uncertain call must not overspend or underpower.
Ask in the same request: difficulty (Score), needs_tools / needs_long_context / needs_maker_checker (Noul). Map the Choice label to a concrete model id in code; do not ask Jev to generate the id as text.
npx jev route --goal "CI has been red for 3 days" --level L2 --json
npx jev turn --goal "Draft daily triage" --level L1 --json
packages/js/src/route.ts · packages/js/src/turn.ts (route + input guard, one call)
04 同仓库更多 Skills
jev
Use TypeSafe Jev for typed judgments (Choice, Score, Noul) instead of asking a chat model to classify. Pair with a generative model for prose. Use when classifying, routing, scoring, guardrailing, or the user runs /jev.
jev-guardrail
Screen LLM input and output with TypeSafe Jev Noul hazard batteries plus a harm Score; policy in code returns pass, review, or block. Use for jailbreak, prompt injection, secret leak, denylist pressure, or when the user runs /jev-guardrail or `npx jev guard`.
jev-fanout
Ask every independent TypeSafe Jev question in one POST /v1/systemone (speculative fan-out). Use for parallel questions, smart-home or compound commands, one-call turn assessment, or when the user runs /jev-fanout. Do not fire one HTTP call per question.
jev
暂无简介
jev-route
暂无简介
jev-guardrail
暂无简介