[BUG] Spawned team agents fail with "model identifier is invalid" on Bedrock due to model ID normalization

Resolved 💬 3 comments Opened Feb 7, 2026 by pradhikshaam Closed Feb 10, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using Claude Code with AWS Bedrock and agent teams (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1), spawned team agents receive an invalid model identifier. The team lead
correctly uses the full Bedrock model ID from settings, but spawned teammates get a truncated/normalized version that is not a valid Bedrock model ID.

Error

API Error (claude-opus-4-6): 400 The provided model identifier is invalid.

Configuration

~/.claude/settings.json:
{
"env": {
"CLAUDE_CODE_USE_BEDROCK": "1",
"AWS_REGION": "us-west-2",
"ANTHROPIC_MODEL": "global.anthropic.claude-opus-4-6-v1",
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
},
"model": "global.anthropic.claude-opus-4-6-v1"
}

Observed behavior

The team config file (~/.claude/teams/<team-name>/config.json) shows:

  • Team lead: "model": "global.anthropic.claude-opus-4-6-v1" (correct)
  • Spawned teammates: "model": "claude-opus-4-6" (invalid)

What Should Happen?

Expected behavior

Spawned team agents should inherit the full model ID (global.anthropic.claude-opus-4-6-v1) from the parent session / global settings, without normalization.

Error Messages/Logs

API Error (claude-opus-4-6): 400 The provided model identifier is invalid.

Steps to Reproduce

  1. Start a Claude Code session and create a team of agents

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

v2.1.34

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗