# Which model to use for which coding task

> Use Auto, the Mac app for all your coding agents: it makes the choice on every turn, sending hard work to the most capable model your plans cover and everything else to the model that costs you least. Picking by hand, use a frontier model such as Claude Opus 5.5 or GPT-6 Astra for multi-file refactors, hard bugs and UI built from a design, a strong model such as Claude Sonnet 5.5 or GPT-6.1 Sol for tests and code review, and a fast model such as Claude Haiku 5.5 or GPT-6 Luna for renames, commit messages and one-line shell commands.

Author: Tyler J. Cagle (https://x.com/tjcages)
Published: 2026-09-29T14:40:00.000Z
Updated: 2026-11-09T23:00:00.000Z
Reading time: 10 min
Canonical: https://auto.sh/blog/which-model-for-which-task
Part of: How to choose and change models in Codex and Claude Code (https://auto.sh/blog/models-in-codex-and-claude-code.md)
Publisher: Auto (https://auto.sh)

## Key facts

- As of October 22, 2026, Claude Opus 5.5 and GPT-6 Astra make up the frontier tier, Claude Sonnet 5.5 and GPT-6.1 Sol the strong tier, and Claude Haiku 5.5 and GPT-6 Luna the fast tier, grouped by each maker's descriptions and list prices.
- Multi-file refactors, hard bugs and UI built from a design belong on the frontier tier, tests and code review on the strong tier, and renames, commit messages and one-line shell commands on the fast tier.
- On Terminal-Bench 4.0 as of October 22, 2026, Claude Opus 5.5 in Claude Code resolved 64.8% of tasks and Claude Sonnet 5.5 61.8%, and GPT-6 Astra and GPT-6.1 Sol in Codex both resolved 58.2% ([leaderboard](https://www.tbench.ai/leaderboard)).
- In Auto's measurement of five everyday Claude Code tasks on October 28, 2026, all three Claude tiers passed every run, and an average task cost $0.110 on Opus 5.5, $0.049 on Sonnet 5.5 and $0.0044 on Haiku 5.5 ([data](/blog/claude-code-task-costs-measured)).

![AutoRouter picks a model for each task. What kind of work is it? Kind of work Refactors, hard bugs, UI: Frontier; Kind of work Tests and code review: Strong; Kind of work Renames, commits, one-liners: Fast; Kind of work Mixed work: Auto: a model per task. Source: Anthropic and OpenAI docs and coding benchmarks, October 22, 2026, and Auto.](https://auto.sh/blog/images/which-model-for-which-task/1-start-tier.png)

Use [Auto](https://autorouter.com/), the Mac app for all your coding agents: it [makes the choice on every turn](/individuals#product) inside the model picker you already use, sending hard work to the most capable model your plans cover and everything else to the model that costs you least. To pick by hand, match the model to how hard the task is. Anthropic and OpenAI each sell a frontier, a strong and a fast model. Read against their own guidance as of October 22, 2026, multi-file refactors, hard failures and UI built from a design belong on the frontier tier, tests and code review on the strong tier, and renames, commit messages and one-line shell commands on the fast tier. On shorter prompts the fast tier costs a fortieth of [Claude Opus 5.5](https://platform.claude.com/docs/en/about-claude/pricing) per token and a hundredth of [GPT-6 Astra](https://developers.openai.com/api/docs/pricing).

## Which models are frontier, strong and fast?

Claude Opus 5.5 and GPT-6 Astra are the frontier tier, Claude Sonnet 5.5 and GPT-6.1 Sol the strong tier, and Claude Haiku 5.5 and GPT-6 Luna the fast tier. The grouping is this post's, built from each maker's descriptions and list prices on October 22, 2026. Two models released on November 9, 2026 sit at either end: [Claude Fable 5.2 vs Opus 5.5: which to use for coding](/blog/claude-fable-5-2-vs-opus-5-5) covers the model above the frontier tier, and [Muse Ember vs Claude Haiku 5.5: Meta's low-cost model for coding](/blog/muse-ember-vs-claude-haiku-5-5) covers a new one priced like the fast tier. [Gemini 4 Carbon vs Gemini 4 Argon: which to use for coding](/blog/gemini-4-carbon-vs-argon) covers Google's strongest model, generally available since November 10, 2026. [Gemini 4 Hydrogen vs Gemini 4 Argon: which to use for coding](/blog/gemini-4-hydrogen-vs-argon) covers Google's fast, lower-cost model for everyday coding, released November 12, 2026. [Gemini 4 Neon for coding: price, benchmarks and how to use it](/blog/gemini-4-neon) covers the Gemini 4 model between Hydrogen and Carbon, released November 18, 2026. [Claude Opus 5.5 vs Sonnet 5.5: which to use for coding](/blog/claude-opus-5-5-vs-sonnet-5-5) goes deeper on the two Claude models most coding runs on.

| Tier     | Anthropic                                        | OpenAI      | Input / output per million tokens (October 22, 2026)                                                                                                                                                               |
| -------- | ------------------------------------------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Frontier | Claude Opus 5.5 (Claude Fable 5.2 sits above it) | GPT-6 Astra | [$4 / $20](https://platform.claude.com/docs/en/about-claude/pricing) for Opus 5.5; $8 / $40 for Fable 5.2 (released November 9, 2026); $10 / $50 for [GPT-6 Astra](https://developers.openai.com/api/docs/pricing) |
| Strong   | Claude Sonnet 5.5                                | GPT-6.1 Sol | $2 / $10 for both                                                                                                                                                                                                  |
| Fast     | Claude Haiku 5.5                                 | GPT-6 Luna  | $0.10 / $0.50 for both, on Haiku 5.5 prompts up to 100,000 tokens and Luna inputs up to 272,000 tokens                                                                                                             |

## What do Anthropic and OpenAI recommend for coding?

Both makers say to start with the top model when you are unsure, then move work down a tier once a cheaper model holds up on it. Anthropic's [models overview](https://platform.claude.com/docs/en/models/overview) starts most workloads on Claude Opus 5.5, and OpenAI's [API models page](https://developers.openai.com/api/docs/models) starts on GPT-6 Astra. Their more specific guidance, as of October 22, 2026:

- Anthropic's November 9, 2026 guide [Which Claude model should you build with?](https://claude.dev/blog/which-claude-model-should-you-build-with/) starts most work on Opus 5.5 at its default `medium` effort. It moves well-scoped bug fixes and work against a spec down to Sonnet 5.5, classification, extraction and side-task subagents down to Haiku 5.5, and keeps Fable 5.2 for major refactors, migrations and long unattended runs where Opus 5.5 at `high` falls short. It says to adjust effort before changing models.
- Anthropic's [selection matrix](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model) lists large-scale refactoring under Opus 5.5, code generation under Sonnet 5.5 and subagent tasks under Haiku 5.5.
- Claude Code's [cost guide](https://code.claude.com/docs/en/costs) says Sonnet handles most coding tasks well, reserves Opus for complex architectural decisions and multi-step reasoning, and gives simple subagent tasks `model: haiku`.
- Anthropic's [guide to model and effort in Claude Code](https://claude.com/blog/claude-model-and-effort-level-in-claude-code) (July 7, 2026) gives subtle bugs and architecture decisions to a larger model, and mechanical, precisely described edits to a smaller one.
- OpenAI's [Codex models page](https://learn.chatgpt.com/docs/models) points complex coding to GPT-6.1 Sol, keeps Astra for the hardest end-to-end work, and suggests Light reasoning effort for quick, well-scoped tasks.
- OpenAI's [model selection guide](https://developers.openai.com/api/docs/guides/model-selection) pairs Luna at Low effort with small edits, and says to keep the lightest setting that meets your quality bar.

## Which tier fits each kind of coding work?

Work that spans files, hides its cause or starts from an image belongs on the frontier tier, and work you could describe in one sentence belongs on the fast tier. Each row is guidance drawn from the sources above and the benchmarks below, so test it against your own repository.

| Kind of work                   | Start with                                                      | Why (guidance)                                                                                                                                                                                                                                                                 |
| ------------------------------ | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Multi-file refactor            | Frontier                                                        | Anthropic [lists large-scale refactoring](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model) under Opus 5.5. [SWE-Bench Pro](https://labs.scale.com/leaderboard/swe_bench_pro_public) reports resolve rates falling as changes grow in lines and files. |
| Debugging a hard failure       | Frontier                                                        | Anthropic gives [subtle bugs](https://claude.com/blog/claude-model-and-effort-level-in-claude-code) to a larger model, and Claude Code names [root-cause investigations](https://code.claude.com/docs/en/model-config) as work for its top model.                              |
| UI from a design or screenshot | Frontier                                                        | Anthropic lists [vision-heavy workflows](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model) under Opus 5.5, which [reads screenshots more precisely](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5) than Opus 5.               |
| Writing tests                  | Strong                                                          | Code generation with a clear target, which Anthropic [lists under Sonnet 5.5](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model). Move up when a test exposes a failure nobody can explain.                                                             |
| Code review                    | Strong; frontier for large or risky diffs                       | OpenAI describes [GPT-6.1 Sol](https://learn.chatgpt.com/docs/models) as near-Astra performance at a lower cost. Anthropic cites [code review gains](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5) for Opus 5.5.                                     |
| Renames                        | Fast                                                            | A mechanical, precisely described edit, which Anthropic [gives to a smaller model](https://claude.com/blog/claude-model-and-effort-level-in-claude-code). Renames across a public API are strong-tier work.                                                                    |
| Commit messages                | Fast                                                            | A summary of a diff already in context. OpenAI lists summarization among [Luna's uses](https://learn.chatgpt.com/docs/models).                                                                                                                                                 |
| Docs                           | Fast for docstrings and changelogs; strong for design docs      | OpenAI suggests Luna for [structured summaries](https://learn.chatgpt.com/docs/models); Anthropic lists content creation [under Sonnet 5.5](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model).                                                         |
| Shell commands                 | Fast for one-liners; strong or frontier for long terminal tasks | Codex suggests Light effort for [quick, well-scoped tasks](https://learn.chatgpt.com/docs/models). On [Terminal-Bench 4.0](https://www.tbench.ai/leaderboard) at max effort, GPT-6 Luna resolved 16.4% of tasks and GPT-6 Astra 58.2% (October 22, 2026).                      |

Or skip the choice and let [Auto](https://autorouter.com/) pick a model for each task.

## What do coding benchmarks say about the tiers?

On [Terminal-Bench 4.0](https://www.tbench.ai/leaderboard), a public leaderboard of long terminal tasks that lists the current models, the strong tier scores close to the frontier tier and the fast tier scores far below both. As of October 22, 2026, Claude Opus 5.5 in Claude Code at max effort resolved 64.8% of tasks (plus or minus 3.1 points at 95% confidence) and Claude Sonnet 5.5 resolved 61.8%. In Codex at max effort, GPT-6 Astra and GPT-6.1 Sol both resolved 58.2%. Claude Haiku 5.5 has no entry.

The same board shows that a lower price per token doesn't always mean a cheaper task. Sonnet 5.5's run used 19.4 billion tokens at a listed cost of $7,334, against 8.0 billion tokens and $4,719 for Opus 5.5. GPT-6.1 Sol matched GPT-6 Astra's score for $634 against $3,267. Read any leaderboard with these caveats:

![Cheaper per token isn't always cheaper per task. Claude Sonnet 5.5 (19.4 billion tokens), $7,334; Claude Opus 5.5 (8.0 billion tokens), $4,719; GPT-6 Astra, $3,267; GPT-6.1 Sol, $634. Source: Terminal-Bench 4.0 leaderboard, listed cost of each model's run, October 22, 2026.](https://auto.sh/blog/images/which-model-for-which-task/2-task-cost.png)

- Each entry is one model in one agent at one effort level. GPT-6 Astra in Codex scores 58.2% at max effort and 50.6% at low effort on the same board.
- OpenAI [stopped reporting SWE-bench Verified](https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/) on February 23, 2026, citing flawed tests and training-data contamination, and recommended SWE-bench Pro.
- Leaderboards lag releases. As of October 22, 2026, Scale's [SWE-Bench Pro public leaderboard](https://labs.scale.com/leaderboard/swe_bench_pro_public) lists no Claude 5.5 or GPT-6 entry.
- Auto publishes no benchmarks of its own routing; for a team, it builds a [free benchmark from the team's own work](/).

## How do you choose the model yourself in Claude Code and Codex?

Switch with `/model` in either app, and set separate models for planning or reviews. In Claude Code, the [`opusplan` alias](https://code.claude.com/docs/en/model-config) uses Opus in plan mode and Sonnet for execution. The [guide to choosing a model in Claude Code](/blog/claude-code-model-settings) covers session, settings-file and subagent choices. In Codex, [`review_model`](https://learn.chatgpt.com/docs/config-file/config-reference) in `~/.codex/config.toml` sets the model `/review` uses:

```toml
model = "gpt-6-astra"
review_model = "gpt-6.1-sol"
```

Switching mid-conversation has a cost. On the Claude API, Claude Opus 5.5's reasoning carries over only to Claude Fable 5.1, Fable 5.2, Mythos 5.1 and Mythos 5.2, so after any other switch [the later turns run without it](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5). For subagents, one-off commands and profiles that move quick work to a small model, see [how to send quick coding tasks to a cheaper model](/blog/quick-tasks-on-cheaper-models). [How to choose and change models in Codex and Claude Code](/blog/models-in-codex-and-claude-code) covers every setting in both apps. If you are choosing between the agents too, [compare Codex and Claude Code side by side](/blog/codex-vs-claude-code).

## How does Auto choose a model for each task?

AutoRouter works out how hard each turn is and only considers models that clear the quality bar for it. Hard work goes to the most capable model your plans cover, and everything else goes to the model that costs you least, which is often your plan or a low-cost open model. Unclear work is never treated as a quick task. [How AutoRouter picks a model](/blog/how-autorouter-picks-a-model) covers the full order. The landing page's examples line up with the table above; they are illustrations, and real routes follow your plans and rules:

- A change across six files goes to Claude Opus 5.5 on the Claude plan.
- A test that only fails on CI is hard, so it goes to GPT-6 Astra on the ChatGPT plan.
- A commit message is quick work, so a low-cost open model writes it and the plan isn't touched.
- A rule sends UI work to Claude Opus 5.5.

You can write rules in plain English, such as "Use Claude Opus 5.5 for UI work." or "Prefer GPT-6.1 Sol for code reviews." Your rules come before Auto's recommended ones. Every turn shows its model, what it cost and why. In Codex, OpenAI models run on the ChatGPT plan; in Claude Code, Claude models run on the Claude plan. Pick AutoRouter from the model menu in Codex, or with `/model` in Claude Code, and choose a specific model in the picker whenever you want it. Auto wrote this post.

## Questions

### Is Claude Opus 5.5 worth it over Claude Sonnet 5.5 for coding?

Claude Opus 5.5 is worth it for multi-file, ambiguous or long-running work, and Claude Code's docs say Sonnet handles most other coding well. Opus 5.5 costs twice as much per token as of October 22, 2026, yet its Terminal-Bench 4.0 run at max effort used fewer tokens than Sonnet 5.5's and cost less in total. Test both on a task you repeat often.

### When is a cheaper model good enough for coding?

A cheaper model is good enough when you could describe the edit in one sentence and check the result at a glance: a rename, a commit message, a one-line command or a docstring. Claude Code's docs describe the `haiku` alias as the model for simple tasks, and OpenAI pairs GPT-6 Luna at Low effort with small edits.

### Should I raise the effort or switch to a bigger model?

Raise the effort when the model skipped a file, didn't run the tests or didn't check its work. Switch to a bigger model when it had all the context and still got it wrong. That is the test in Anthropic's July 7, 2026 guide to model and effort in Claude Code. Anthropic's guide [Which Claude model should you build with?](https://claude.dev/blog/which-claude-model-should-you-build-with/) (November 9, 2026) puts the steps in order: have the model check its own work with a test or build, raise effort one level, then move up a model at a lower effort. On a SWE-bench Pro subset it reports that running Opus 5.5 at `low` and re-running only the failures at `high` passed about 97% of tasks at about $0.17 each, against 95.3% at $0.29 each with every task at `high`.

### Does sending easy tasks to a smaller model hurt quality?

It can when a task is harder than it looks, which is why both makers suggest testing on your own work before moving it down a tier. Auto never treats unclear work as a quick task, and you can rate a pick that falls short. [Does model routing hurt quality?](/blog/does-model-routing-hurt-quality) has more.

## Sources

- [Models overview](https://platform.claude.com/docs/en/models/overview), Claude Platform docs, Anthropic
- [Choosing the right model](https://platform.claude.com/docs/en/about-claude/models/choosing-a-model), Claude Platform docs, Anthropic
- [Pricing](https://platform.claude.com/docs/en/about-claude/pricing), Claude Platform docs, Anthropic
- [What's new in Claude Opus 5.5](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5), Claude Platform docs, Anthropic
- [Manage costs effectively](https://code.claude.com/docs/en/costs), Claude Code docs, Anthropic
- [Model configuration](https://code.claude.com/docs/en/model-config), Claude Code docs, Anthropic
- [Choosing a Claude model and effort level in Claude Code](https://claude.com/blog/claude-model-and-effort-level-in-claude-code), Anthropic, July 7, 2026
- [Models](https://learn.chatgpt.com/docs/models), Codex docs, OpenAI
- [Configuration reference](https://learn.chatgpt.com/docs/config-file/config-reference), Codex docs, OpenAI
- [Models](https://developers.openai.com/api/docs/models), OpenAI API docs
- [Model selection](https://developers.openai.com/api/docs/guides/model-selection), OpenAI API docs
- [API pricing](https://developers.openai.com/api/docs/pricing), OpenAI
- [Why we no longer evaluate SWE-bench Verified](https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/), OpenAI, February 23, 2026
- [Terminal-Bench 4.0 leaderboard](https://www.tbench.ai/leaderboard), Terminal-Bench
- [SWE-Bench Pro public leaderboard](https://labs.scale.com/leaderboard/swe_bench_pro_public), Scale AI
- [Which Claude model should you build with?](https://claude.dev/blog/which-claude-model-should-you-build-with/), Claude blog, Anthropic, November 9, 2026

## Read next

- [How to choose and change models in Codex and Claude Code](https://auto.sh/blog/models-in-codex-and-claude-code.md): To give each task the right model, use Auto, the Mac app for all your coding agents: it adds models from every leading provider to the picker you already use (Claude Code, Codex, Cursor, etc.) and can pick one for each turn. To choose yourself, give hard, multi-file work a frontier model such as Claude Opus 5.5 or GPT-6.2 Astra and quick edits a fast one such as Claude Haiku 5.5 or GPT-6 Luna. Switch with /model in either app, a launch flag for one session, or a settings file for every session.
- [How to use Claude in Codex and GPT in Claude Code](https://auto.sh/blog/claude-in-codex-and-gpt-in-claude-code.md): Use Auto, the Mac app for all your coding agents: connect the AI subscriptions you already pay for, and your Claude plan runs inside Codex and your ChatGPT plan inside Claude Code, with no keys or config. The Free plan connects two subscriptions for $0 a month. Natively, Claude in Codex takes a Responses-compatible gateway such as OpenRouter in `config.toml`, and GPT in Claude Code takes a gateway such as a LiteLLM proxy behind `ANTHROPIC_BASE_URL`; both bill per token on a key.
- [How to use MiniMax in Claude Code and Codex](https://auto.sh/blog/minimax-in-claude-code-and-codex.md): Use Auto, the Mac app for all your coding agents: it puts MiniMax M3.1 Flash in each one's model picker (Claude Code, Codex, Cursor, etc.) with no MiniMax key or config. Natively, set Claude Code's `ANTHROPIC_BASE_URL` to `https://api.minimax.io/anthropic` with your M Plan key and `MiniMax-M3.1-Flash[1m]` model variables in `~/.claude/settings.json`, and add `https://api.minimax.io/v1` as a provider in Codex's `config.toml`.

Tags: [Models](https://auto.sh/blog/tags/models.md), [Guides](https://auto.sh/blog/tags/guides.md), [Model routing](https://auto.sh/blog/tags/model-routing.md)

Drafted with AI from the sources linked above, then checked and edited by the Auto team.

Auto is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://auto.sh/setup.md) and [pricing](https://auto.sh/pricing).
