-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Closed
Labels
api:bedrockIssue relates to AWS BedrockIssue relates to AWS Bedrockarea:modelarea:toolsbugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction steps
Description
Description
When using Claude Code with AWS Bedrock, the Task tool for spawning subagents ignores all model configuration and uses a hardcoded model ID that doesn't exist.
Environment
- AWS Bedrock
- Model configured in settings.json:
us.anthropic.claude-opus-4-5-20251101-v1:0
Expected Behavior
Task tool should use the model from:
- Explicit
modelparameter in Task tool call modelfield in agent frontmatter (e.g.,~/.claude/agents/my-agent.md)modelin~/.claude/settings.json
Actual Behavior
Task tool always uses .anthropic.claude-sonnet-4-5-20250929-v1:0 which:
- Is missing the
usprefix required for Bedrock - References a Sonnet version that doesn't exist
Error
API Error (.anthropic.claude-sonnet-4-5-20250929-v1:0): 400 The provided model identifier is invalid.
Reproduction Steps
- Configure Claude Code for AWS Bedrock with settings.json:
{
"model": "us.anthropic.claude-opus-4-5-20251101-v1:0",
"env": {
"CLAUDE_CODE_USE_BEDROCK": "1",
"AWS_REGION": "us-east-1"
}
}- Create a custom agent in
~/.claude/agents/test-agent.md:
---
name: test-agent
description: Test agent
tools: Bash
model: opus
---
Test prompt: $ARGUMENTS-
Try to spawn the agent or use Task tool directly with
model: "opus"parameter -
Observe error - Task tool ignores all model settings and uses broken hardcoded model
Workaround
Use MCP tools directly instead of spawning subagents. MCP tools run in the main conversation which respects the model setting.
Impact
All custom agents and Task tool subagents are completely broken when using Bedrock.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api:bedrockIssue relates to AWS BedrockIssue relates to AWS Bedrockarea:modelarea:toolsbugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction steps