Case study · located work
system-one-router
A published npm extension (v0.4.5) for the Pi coding agent that adds a per-turn model router; its README states it is based on and retains attribution to an existing router, yeliu84/pi-model-router.
Observednpm publisher (unverified identity)
- Problem
- A published npm extension (v0.4.5) for the Pi coding agent that adds a per-turn model router; its README states it is based on and retains attribution to an existing router, yeliu84/pi-model-router.
- Jev’s role
- An optional LLM-intent-classifier mode calls TypeSafe's System One API (model jev-latest) to categorize task intent, overriding the package's own keyword/heuristic router when configured.
- Architecture
- User turn → optional Jev classifier call or local heuristics → high/medium/low tier → mapped to a configured concrete model per tier.
- Why it matters
- Jev is one swappable classifier backend behind a router that works without it (heuristics are the default) — a lower-commitment integration pattern than jev-router's Jev-only design.
Code boundary
Jev answers the bounded questions described above. Thresholds, retries, side effects, and anything that must be reproducible stay in the surrounding application code. The research record does not capture this project’s exact question set or threshold values; read the linked source before copying the architecture.
Sources
Limitations
- A located repository or demonstration does not establish production reliability or independent validation.
Reusable pattern and related records
- Cascade router PlausibleA cheap decision chooses whether to use rules, a small model, a premium model, a specialist, or a human.
- Agent Model Router Authored HypothesisA drop-in router that selects model, reasoning effort, and fallback policy per step.
- Cheap decision calls could make tens or hundreds of semantic judgments per event economical. SpeculativeThe product design follows from published pricing and parallel question primitives, not independent production evidence.
- Decision sidecar PlausibleA typed judgment service sits beside ordinary code; code owns effects and safety boundaries.