# SubAgent Task tool ignores model-specific subagent\_type routing — all subagents inherit parent model instead of using their designated models (opus/codex)

**URL:** <https://forum.cursor.com/t/subagent-task-tool-ignores-model-specific-subagent-type-routing-all-subagents-inherit-parent-model-instead-of-using-their-designated-models-opus-codex/151917>\
**Category:** Bug Reports\
**Tags:** openai, subagents, plan-mode, anthropic\
**Created:** [February 15, 2026, 10:34am UTC](https://forum.cursor.com/t/subagent-task-tool-ignores-model-specific-subagent-type-routing-all-subagents-inherit-parent-model-instead-of-using-their-designated-models-opus-codex/151917 "2026-02-15T10:34:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [February 15, 2026, 10:56am UTC](https://forum.cursor.com/t/subagent-task-tool-ignores-model-specific-subagent-type-routing-all-subagents-inherit-parent-model-instead-of-using-their-designated-models-opus-codex/151917/3 "2026-02-15T10:56:06Z")

</div>

Hey, thanks for the detailed report.

The `subagent_type` parameter in the Task tool is just a name or identifier. It doesn’t control which model gets run. Adding “opus” or “codex” to the name doesn’t enable automatic model routing.

To assign a specific model to a subagent, set the `model` field in the subagent’s YAML frontmatter. Create `.cursor/agents/planner-opus.md`:

```markdown
---
name: planner-opus
description: Task planning using Opus.
model: claude-4.6-opus-high-thinking
---

Your prompt here...

```

Valid values for `model`:

- `inherit` uses the parent agent’s model
- `fast` uses a faster, cheaper model
- A specific model name, like `claude-4.6-opus-high-thinking` or `gpt-5.2-codex`

Docs: [Subagents | Cursor Docs](https://cursor.com/docs/context/subagents)

I also noticed related feature request here: [Feature Request: Recursive Subagents, CLI Support, and Flexible Model Selection for Task Tool](https://forum.cursor.com/t/feature-request-recursive-subagents-cli-support-and-flexible-model-selection-for-task-tool/151857). The team is aware of the request to set models dynamically at call time. There’s no ETA yet, but reports like this help with prioritization.

Let me know if setting the model via frontmatter works for your workflow.

---

_[View the full topic](https://forum.cursor.com/t/subagent-task-tool-ignores-model-specific-subagent-type-routing-all-subagents-inherit-parent-model-instead-of-using-their-designated-models-opus-codex/151917)._
