Feature Request: Allow model selection for built-in agents (currently appears to use Sonnet)
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 11 comments · opened Aug 5, 2025 · closed Jan 5, 2026
Built-in agents currently seem to use Sonnet regardless of the selected model in the main session.
Since sub agents already support model: inherit, it would be great if:
- Built-in agents could also use
model: inheritto match the main session's model - Or add a setting to configure which model built-in agents should use
This would help maintain consistency when using models like Opus throughout the workflow.
<img width="518" height="279" alt="Image" src="https://github.com/user-attachments/assets/9c6728b9-0544-412b-8e09-b23291c9d7be" />
11 Comments
Found 3 possible duplicate issues:
If your issue is a duplicate, please close it and 👍 the existing issue instead.
🤖 Generated with Claude Code
Would greatly appreciate it if this could be prioritized. Especially with bedrock, if you're not permissioned for the default model for the built in subagents, the tool is just unusable. It should be default; inherit IMO
for now you can create a custom agent with
name: general-purpose, it will override the default oneupd: just drop this to
~/.claude/agents:<details>
</details>
<img width="1134" height="220" alt="Image" src="https://github.com/user-attachments/assets/e498c88e-b836-42df-8474-c011f5e58695" />
Hi, to override the default settings, I followed your instructions to create a custom agent.
However, I encountered the issue. Could you please tell me if I made a mistake in the configuration?
P.S.: The path
~/.claude/agentsdoes not exist on my system.It seems that there is no default agents folder. Do I need to create it manually?
Thanks!
Overriding the default agent is indeed a workaround. As you mentioned "for now", it's not ideal since it cannot follow Claude Code's defaults.
I think it would be better to allow overriding only the model setting.
@PerceptivePenguin idk what platform you're on, but you could create an agent with a different name and then manually edit the name in the file
+1
A default generic purpose agent MUST inherit the base model, anything else makes the subagent task unuseable in environments where claude was run against a custom model.
https://docs.anthropic.com/en/docs/claude-code/model-config
Apparently this is controllable by 4 env vars:
ANTHROPIC_DEFAULT_OPUS_MODEL | The model to use for opus, or for opusplan when Plan Mode is active.
ANTHROPIC_DEFAULT_SONNET_MODEL | The model to use for sonnet, or for opusplan when Plan Mode is not active.
ANTHROPIC_DEFAULT_HAIKU_MODEL | The model to use for haiku, or background functionality
CLAUDE_CODE_SUBAGENT_MODEL | The model to use for subagents
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.