Evals and the readiness score
How Neurouter generates tasks from your spec, runs them in tool mode and code mode on your model keys, scores agent readiness from 0 to 100, and turns failures into fix suggestions.
An eval runs realistic tasks against your server with real models and checks what the agents actually did. The result is an agent-readiness score from 0 to 100.
Suites
| Suite | What it checks | Runs against |
|---|---|---|
| Agent usability | Generated tasks: single call, multi-step, ambiguous and impossible | mock by default, or dev/qa; never prod |
| Model regression | A frozen suite re-run on a new model or build, then compared | any allowed environment |
How tasks are generated
The generator reads the visible tools and sample data from the mock and asks a model for tasks in each category, each with a prompt, a rubric, assertions and reference calls. Every task is validated before it is kept: reference calls must succeed against a fresh mock, and impossible tasks must expect the agent to decline or report an unmet need. You can edit, disable and freeze tasks in the console; neurouter eval --save-suite <file> writes a suite as JSON for git and CI.
Checks
Assertions are deterministic where possible: called (with arguments), not_called, no_writes, max_calls, state (the mock's data afterwards), answer_contains, answer_matches, unmet_need_reported_or_declined, and framing (task framing, scored separately). Open-ended criteria use an LLM judge. Calls are read from Neurouter's own audit log, including calls inside scripts, so tool mode and code mode are checked the same way.
The score
Each (model, mode) cell gets a score from these components; weights renormalize when a component is missing.
| Component | Weight |
|---|---|
| Task success (single, multi-step, ambiguous) | 45% |
| Tool quality (spec lint) | 20% |
| Impossible-task handling | 10% |
Efficiency (agent calls vs reference calls; search_tools and ops calls are not counted) | 10% |
| Stability across repetitions | 10% |
| Task framing | 5% |
| API correctness (reserved; counted only when an API-correctness suite ran, which is not available yet) | 10% |
- Headline: the first model's best mode.
- Recommended mode: the mode with the higher score; within 3 points, tool mode unless code mode is at least 10 points better on multi-step tasks. It comes with a short explanation of the trade-off.
- Bands: 0–49 Not ready, 50–74 Needs work, 75–89 Ready, 90–100 Excellent.
- Preliminary: before any run, the spec-lint score is shown and marked preliminary.
- Tokens and latency are reported next to the score, not inside it.
Tool mode and code mode
Each task can run in both modes. Tool mode lists the tools directly; code mode offers search_tools and run_script. The matrix shows success, score, tokens and calls per cell, so you can see where code mode helps (usually multi-step tasks) and where it doesn't.
Fix suggestions
Failed attempts are grouped by cause (wrong tool, bad arguments, missing capability, over budget) and tool. For each group Neurouter proposes one overlay change: a clearer name or contrasting descriptions, argument descriptions and an example, unhiding a hidden tool, a composite tool sketch, or response shaping. When the toolset is too large and agents pick wrong tools, it proposes hiding everything by default and pinning the tools the tasks need. Then:
- Verify re-runs the affected tasks, plus a sample of passing tasks as a regression guard, with the change applied.
- Apply writes the change to the overlay draft; you publish it.
- Copy spec patch gives a JSON Patch for fixing the source spec instead.
Model keys and cost
Evals run on your own keys (bring your own key). OpenAI, Anthropic and Gemini models are supported: set OPENAI_API_KEY, ANTHROPIC_API_KEY and/or GEMINI_API_KEY, or store keys in Settings › Models. The model id picks the provider (gpt-* → OpenAI, claude-* → Anthropic, gemini-* → Gemini); the default is gpt-6-luna. Each run is tasks × models × modes × repetitions (3 by default), and the console estimates the number of model calls before you start. Attempts served by a fallback model are excluded from the requested model's score.
Next: run the same engine in CI with the CLI and GitHub Action.