# 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.

Last checked: 30 Nov 2026, against the vendor's own pages.

Family: Pay less per token.

## 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
- [Claude Code](https://usefewertokens.com/harnesses/claude-code/): model: haiku in the subagent's file, or CLAUDE_CODE_SUBAGENT_MODEL=haiku for all ([source](https://code.claude.com/docs/en/env-vars), read 30 Nov 2026)
- [Codex](https://usefewertokens.com/harnesses/codex/): agents.default_subagent_model and agents.default_subagent_reasoning_effort in config.toml ([source](https://learn.chatgpt.com/docs/config-file/config-reference), read 30 Nov 2026)
- [OpenCode](https://usefewertokens.com/harnesses/opencode/): A subagent with its own model ([source](https://opencode.ai/docs/agents/), read 30 Nov 2026)

## Read more
- [Custom subagents in Claude Code](https://code.claude.com/docs/en/sub-agents)
