Skip to content
System One

adarshmishra07/jcm-router

Local proxy between Claude Code and the Anthropic API that picks the model and effort level per message with a Jev decision. The author measured that routing subagents saves money while routing an established main chat loses it: 309 logged requests cost $106.73 against an $87.19 baseline, and $17.12 of the $19.53 loss came from the main chat alone.

The dashboard when routing is saving money
Image from github.com

adarshmishra07/jcm-router on GitHub

Stars
4
Forks
0
Language
TypeScript
License
MIT
Last push
17 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

  const res = await fetch(client.url, {
    method: "POST",
    headers: { Authorization: `Bearer ${client.apiKey}`, "Content-Type": "application/json" },
    body: JSON.stringify({ model: "jev-latest", state, questions }),
    signal: AbortSignal.timeout(client.timeoutMs),
  });
  if (!res.ok) return { ok: false, error: `http ${res.status}`, ms: ms() };
  const answers = parseJevResponse(await res.json(), questions);
  return answers ? { ok: true, answers, ms: ms() } : { ok: false, error: "unexpected response shape", ms: ms() };
} catch (err) {
  return { ok: false, error: err instanceof Error ? `${err.name}: ${err.message}` : String(err), ms: ms() };

View in src/jev.ts

Open on GitHub

More like this

Use cases this is tagged with