DecisionBench
gpu · checking jev · jev-latest baseline · anthropic.claude-haiku-4-5 laya · not loaded von · not loaded

← catalog / Harness Engineering / Model routing

Model router for an LLM harness

Decide which model tier and effort level each incoming prompt deserves, and whether the turn needs tools or a long context window.

RoutingClassificationScoringDetection
Why this shape suits a decision model. The router runs before every request, so it has to be far cheaper and faster than the model it is routing to. The thresholds are code, so a team can retune the cost-quality curve without touching the judgments. confidence-routing ↗
running…
Laya runs locally and its weights are not loaded yet. The first prediction would otherwise pay for reading them off disk, which is not inference and would not be a fair latency number.
Von runs locally and its weights are not loaded yet. The first prediction would otherwise pay for reading them off disk, which is not inference and would not be a fair latency number.

Input state

Questions

5 questions, declared once. Jev and Laya accept this shape directly; the Claude path renders it into a prompt and a JSON schema.

{
  "difficulty": {
    "type": "score",
    "instructions": "How hard is this request for a language model to get right?",
    "criteria": [
      "Trivial: a greeting, a lookup, or a one-line restatement",
      "Simple: a short factual answer or a small well-specified edit",
      "Moderate: multi-step reasoning or a change across a few files",
      "Hard: novel design, subtle debugging, or long-horizon planning"
    ]
  },
  "domain": {
    "type": "choice",
    "instructions": "What kind of request is this?",
    "criteria": {
      "code": "Writing, debugging, reviewing, or explaining code",
      "analysis": "Reasoning over data, documents, or trade-offs",
      "writing": "Drafting or editing prose",
      "extraction": "Pulling structured fields out of text",
      "chitchat": "Greetings, small talk, or meta questions about the assistant"
    }
  },
  "needs_tools": {
    "type": "noul",
    "instructions": "Would answering this well require calling tools or fetching outside information?",
    "criteria": {
      "true": "Asks for something to be run, executed, applied, deployed, or fetched, or needs file access, a search, or data not present in the conversation",
      "false": "Answerable in full from what is already in the conversation"
    }
  },
  "cost_of_error": {
    "type": "score",
    "instructions": "What happens if the answer is wrong?",
    "criteria": [
      "Nothing; the user notices and rephrases",
      "Wasted time, easily corrected",
      "Broken code or a bad decision that takes real work to undo",
      "Irreversible harm: data loss, money moved, or a published mistake"
    ]
  },
  "long_context": {
    "type": "noul",
    "instructions": "Does the request depend on a large amount of supplied material?",
    "criteria": {
      "true": "Refers to long documents, large files, or a long conversation history",
      "false": "Self-contained and short"
    }
  }
}

Equivalent Claude prompt

Derived from the questions above, so every backend is asked the same thing.