Coding agents

Model routing for coding agents: ranked on coding and tool-use benchmarks

A coding agent’s requests look alike: a long conversation, tools for files and a terminal, one more step to take. The AI Stupid Level Smart Router ranks those requests on its coding and tool-use boards, keeps an agent loop on the model that started it, and falls back when a provider fails. The suites behind the boards are the same tasks for every model, on a fixed schedule: coding every four hours, reasoning and tool use daily, with an hourly canary probe.

Get a free router key

1,000 routed requests a month free · your own provider keys · no card

2
boards behind agent work: Coding, every four hours, and Tool use, daily.
24h
each model’s own turn is kept for its agent loop.
32MB
request bodies, for whole conversations of code.

01

How does the router read a coding agent’s request?

By its tools. The rules run inside the request, with no extra model call.

The tools say it is a coding agent
With auto-task, or Match each request on, a request that offers at least two tools for files, code or a terminal is ranked on the Coding board. Tool names such as read_file, apply_diff, execute_command, bash, edit and grep count. A weather or email tool does not.
One board for the whole loop
When a request offers tools, the tool names alone decide the board, not the text of the message. An agent that sends the same tools on every step stays on one board.
Other tools rank on Tool use
A request whose tools are not for code, such as a calendar or a CRM, is ranked on the Tool use board. X-AISM-Request-Kind names the rule that matched. All six rules.

02

Which routing mode should a coding agent send?

The mode goes where the agent asks for a model name.

auto-coding
The Coding board: repository bug fixes graded by running the project’s own tests, every four hours. It is the mode the integration guides use. Best LLM for coding.
auto-tooling
The Tool use board: sandboxed agent tasks with real tools, daily. The guides suggest it for long agent sessions. Best AI model for agents.
auto-value-coding
Among the models within 5 points of the top coding score you can use, the most points per dollar of one coding run. LLM cost routing.
auto-task
Decided per request: an agent’s file and terminal tools rank it on Coding, any other tools on Tool use.

03

Which models do the agent modes pick right now?

The live router’s own picks for an example caller who holds a key for every provider. They follow the boards.

auto-coding and auto-tooling are the rows a coding agent uses. Each pick links to the model’s page, with its scores and history.
ModeRanks onSends the request to
auto-bestThe Combined board: coding 50%, reasoning 25%, tool use 25%.Claude Opus 5.5 · Anthropic
auto-codingThe Coding board: repository bug fixes graded by the project’s own tests.Claude Opus 5.5 · Anthropic
auto-reasoningThe Reasoning board: long, multi-turn working sessions.GPT-6.1 Sol · OpenAI
auto-toolingThe Tool use board: sandboxed agent tasks with real tools.Claude Sonnet 5.5 · Anthropic
auto-valueWithin 5 points of the best Combined score, the most points per dollar of a scored run.GLM-5.3 · Z.ai
auto-fastest-qualityWithin 5 points of the best Combined score, the lowest median response time, compared on at least 21 runs; response times within 10% of each other count as equal, and the higher score decides. When fewer than half of these models have 21 runs, they are ordered by score.Claude Sonnet 5.5 · Anthropic
auto-fastestThe lowest response time outright.Gemini 3.5 Flash Lite · Google
auto-cheapestThe lowest list price per token.GPT-6 Luna · OpenAI

As of 26 Nov 2026, 11:24 UTC · the router’s own picks for an example caller with keys for all 6 providers

04

What keeps an agent loop on one model?

An agent resends the whole conversation at every step. The router keeps what the provider needs to see again.

One model per conversation
By default the model that answered keeps the conversation while you can still use it. Tool calls and their results stay on the model that made them.
Its own turns are replayed
The router keeps each model’s own turn for 24 hours: Claude’s thinking blocks, OpenAI reasoning items, Gemini thought signatures. Your agent sends the conversation back in OpenAI’s shape, with the provider’s own tool call ids, and the provider sees its own turn again.
The prompt cache carries over
Staying on one model lets your provider serve the part of the conversation it has seen from its prompt cache. Claude caches when asked, so the router asks.
Moving is your choice
Model switching in Preferences can rank again at each new message, or at every request. On the quality modes a conversation then moves when another model leads by more than 2.58 standard errors and re-sending stays within your limit, $0.50 by default, and on scores at most once in 10 requests. Model switching in the docs.

05

What else does an agent need from the endpoint?

Streaming
Text arrives as the model writes it, and tool calls in one chunk each once the model has finished them. A provider that sends nothing for 120 seconds gives way to the next model.
Forced tool calls
tool_choice required, or a named function, works on every model: natively where the provider enforces it, otherwise asked for and checked. The answer is a tool call or a 502 tool_choice_not_honoured, not prose.
Reasoning effort
reasoning_effort takes none to max with any model. The router maps it to the nearest level the chosen model supports.
Fallbacks
Up to 5 on every routed request, and a model that fails 5 times in a row is skipped for 60 seconds. LLM fallback routing.

06

How does each coding agent connect?

Each guide has the exact settings to paste.

The OpenAI-compatible tools take the base URL https://aistupidlevel.info/v1, and the key is your aism_ router key.
ToolConnects throughModel to send
Cline, Kilo Code and Roo CodeThe OpenAI Compatible provider, with the base URL and your router key.auto-coding, or auto-tooling for long agent sessions.
AiderOPENAI_API_BASE and OPENAI_API_KEY in the shell.openai/auto-coding, as the --model flag.
OpenCodeA custom OpenAI-compatible provider in opencode.json, or one click with CC Switch.aistupidlevel/auto-coding, or auto-tooling for sessions that call many tools.
ContinueA model block in ~/.continue/config.yaml, with provider openai and apiBase.auto-coding, for the chat, edit and apply roles.
CursorOverride OpenAI Base URL in Cursor’s settings, used by chat and plan mode.auto-coding, as the custom model name.
Claude CodeANTHROPIC_BASE_URL, set to the site root, and ANTHROPIC_API_KEY: the native Anthropic Messages endpoint.The Claude model you choose in Claude Code, called with your own Anthropic key.

The routing modes belong to the OpenAI-compatible endpoint. Zed and more are on the integrations hub.

07

How do I check how an agent’s request was routed?

The request below offers two tools for files and code, so auto-task matches the tools_code rule and ranks it on Coding. The headers shown are those of an account on default settings.

cURLauto-task · a coding agent’s tools
curl -i https://aistupidlevel.info/v1/chat/completions \
  -H "Authorization: Bearer aism_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto-task",
    "messages": [{"role": "user", "content": "The date parser drops time zones. Find the bug and fix it."}],
    "tools": [
      {"type": "function", "function": {"name": "read_file", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}}}},
      {"type": "function", "function": {"name": "apply_diff", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "diff": {"type": "string"}}}}}
    ]
  }'

# Response headers
# X-AISM-Request-Kind: tools_code
# X-AISM-Benchmark: coding
# X-AISM-Strategy: best_coding
# X-AISM-Conversation: new
# X-AISM-Model: <the model that answered>
X-AISM-Request-Kind
tools_code: the request works on code through tools. X-AISM-Benchmark is then coding.
X-AISM-Conversation
new on the first request of a loop and stayed on the steps after it, under the default setting.
X-AISM-Model
The model that answered: the same one through the loop, for as long as it can serve the request. X-AISM-Reasoning says why.

Every header and parameter is in the router documentation, and what an AI router is covers the terms. Related guides:

08

Questions about routing for coding agents

What is model routing for coding agents?

It is choosing, per request, which model a coding agent’s call goes to, instead of fixing one model name in the agent’s settings. The AI Stupid Level Smart Router does it from its public boards. Send auto-coding, or auto-task and let the agent’s file and terminal tools say what it is, and the request is ranked on the Coding board, whose suite is the same repository bug fixes for every model, scheduled every four hours and graded by running the project’s own tests.

Does the model change in the middle of an agent loop?

Not by default. One model per conversation keeps the loop on the model that started it, so its reasoning and your provider’s prompt cache carry over. It moves when that model can no longer serve the request, for example when its provider is failing. Model switching in Preferences can allow moves on scores, within a cost limit you set.

Does Claude Code get a routed model?

Claude Code speaks Anthropic’s Messages API, and the router passes it through natively: the request goes to Anthropic, with your own Anthropic key, for the Claude model you chose in Claude Code. It gains one key for every tool, with the plan allowance, budgets and request log of every other endpoint. The routing modes live on the OpenAI-compatible endpoint, which Cline, Kilo Code, Roo Code, Aider, OpenCode, Continue and Cursor’s chat use. Claude Code with the Smart Router.

Which Cursor features use the router?

Chat and plan mode use the base URL you set under Override OpenAI Base URL. Composer, inline edit and autocomplete stay on Cursor’s own backend. Cursor with the Smart Router.

Put your coding agent on the Coding board

Free includes 1,000 routed requests a month on every provider and every mode, with your own provider keys and no card.

Get a free router key

1,000 routed requests a month free · your own provider keys · no card

See the boards it routes on

Coding, Reasoning, Tool use and Combined, over 24 hours, 7 days and 30 days.

Already have an account? Log in