Optimize your agent

Pay less per token

Run side tasks on a smaller model

Searching, reading files and summarising rarely need a frontier model. Coding agents let a subagent run on a smaller, cheaper model and hand back only its conclusion, which keeps both the bill and the main context smaller.

Checked on the vendor's pages 30 Nov 2026

Where it fits

Building my own agent Fits

Route side tasks to a smaller model.

Using a coding agent Fits

model: haiku in a Claude Code subagent.

Using an enterprise assistant Not available

The vendor picks the model.

Using a workflow tool Partly

Pick the model per node.

The setting in each harness

Read on each vendor's own page, linked next to the setting.

HarnessSetting
Claude Code

Model: haiku in the subagent's file, or CLAUDE_CODE_SUBAGENT_MODEL=haiku for all

code.claude.com, read 30 Nov 2026
Codex

agents.default_subagent_model and agents.default_subagent_reasoning_effort in config.toml

learn.chatgpt.com, read 30 Nov 2026
OpenCode

A subagent with its own model

opencode.ai, read 30 Nov 2026