[BUG] Builtin Agents fail when using bedrock because they cannot be configured to use `model: inherit`
Environment
- Platform (select one):
- [ ] Anthropic API
- [x] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.77
- Operating System: macOS 15.6
- Terminal: VS Code
Bug Description
Builtin agents (like general-purpose) are hardcoded with specific model configurations and cannot be configured to use model: inherit. This prevents them from working with AWS Bedrock and other model providers that require the inherit setting.
Steps to Reproduce
- Configure Claude Code to use AWS Bedrock as the model provider
- Try to use a builtin agent like
general-purposewith the Task tool - The agent fails because it cannot inherit the global Bedrock model configuration
- Custom agents with
model: inheritin their markdown work correctly
Expected Behavior
Builtin agents should respect the global model configuration when using AWS Bedrock or other providers, either by:
- Automatically using
model: inheritby default - Allowing users to override builtin agent model settings via configuration
- Providing a global setting to make all agents use
model: inherit
Actual Behavior
Builtin agents fail to work with Bedrock because they use hardcoded model configurations instead of inheriting the global model settings. Users must recreate all builtin agents as custom agents with model: inherit.
Additional Context
This significantly impacts the Bedrock user experience and creates maintenance overhead. Users in enterprise environments who require specific model providers must:
- Manually recreate each builtin agent as a custom agent
- Maintain duplicate agent definitions
- Miss out on updates to builtin agents
- Spend considerable time on workarounds
Proposed Solutions:
- Global Override Setting: Add
agents.useInheritModel: trueto force all agents to usemodel: inherit - Builtin Agent Overrides: Allow per-agent model configuration overrides in settings
- Default to Inherit: Change builtin agents to use
model: inheritby default
Current Workaround: Create custom versions of all needed builtin agents with model: inherit in the markdown.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗