claude-code - 💡(How to fix) Fix [BUG] Agent Teams unavailable in Claude Code on the web despite CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#56449Fetched 2026-05-06 06:27:45
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

When running a cloud session in Claude Code on the web with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 set in committed project-level .claude/settings.json, the team tools (TeamCreate, SendMessage, spawnTeam, TeammateTool) are not injected. Asking the agent to create a team produces the standard "Agent Teams feature is not available on this plan" message. Task tools (TaskCreate, TaskUpdate, etc.) work correctly in the same session, indicating the env var is being read but team-tool gating has additional non-honored conditions in the cloud runtime.

Root Cause

When running a cloud session in Claude Code on the web with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 set in committed project-level .claude/settings.json, the team tools (TeamCreate, SendMessage, spawnTeam, TeammateTool) are not injected. Asking the agent to create a team produces the standard "Agent Teams feature is not available on this plan" message. Task tools (TaskCreate, TaskUpdate, etc.) work correctly in the same session, indicating the env var is being read but team-tool gating has additional non-honored conditions in the cloud runtime.

Code Example

{
     "env": {
       "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
       "CLAUDE_CODE_ENABLE_TASKS": "1"
     }
   }
RAW_BUFFERClick to expand / collapse

Summary

When running a cloud session in Claude Code on the web with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 set in committed project-level .claude/settings.json, the team tools (TeamCreate, SendMessage, spawnTeam, TeammateTool) are not injected. Asking the agent to create a team produces the standard "Agent Teams feature is not available on this plan" message. Task tools (TaskCreate, TaskUpdate, etc.) work correctly in the same session, indicating the env var is being read but team-tool gating has additional non-honored conditions in the cloud runtime.

Repro

  1. On the default branch of a repo, add to .claude/settings.json:
    {
      "env": {
        "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
        "CLAUDE_CODE_ENABLE_TASKS": "1"
      }
    }
  2. Commit and push.
  3. Start a fresh Claude Code on the web session against that branch.
  4. In the session, confirm the env var is present in the runtime shell (e.g., echo $CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS1). Verified set.
  5. Observe available tools:
    • Task tools (TaskCreate, TaskUpdate, TaskList, TaskGet) are available.
    • Team tools (TeamCreate, SendMessage, spawnTeam, TeammateTool) are not available.
  6. Asking the agent to create a team returns "Agent Teams feature is not available on this plan."

Expected

With CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 correctly plumbed through to the cloud runtime, team tools should be injected — matching CLI behavior. At minimum, if there is a cloud-specific incompatibility, the user-facing message should be accurate ("not supported in cloud sessions") rather than "not available on this plan."

Environment

  • Claude Code on the web (cloud session, default branch)
  • Env var confirmed set in cloud runtime
  • Same flag works correctly on local CLI

Related

  • #23420 — misleading "not available on this plan" gate; root-cause discussion shows several telemetry/Bedrock flags silently disable team tools. None of those flags are set in this case (cloud uses Anthropic API, not Bedrock; env var is confirmed live).
  • #23874 — decompiled-binary analysis showing TTY-based gating (process.stdout.isTTY) for both task and team tools in non-CLI hosts. Tasks now work in cloud, suggesting that gate has been lifted for tasks but not for teams.
  • #28048 — same symptom in the VS Code extension (closed as dup of #23874).

Notes

The agent-teams docs cover display modes (in-process / tmux / iTerm2) but do not document cloud as supported or unsupported. Either supporting team tools in cloud sessions, or explicitly documenting cloud as unsupported with an accurate user-facing message, would resolve the confusion.

extent analysis

TL;DR

The issue can be addressed by either supporting team tools in cloud sessions or explicitly documenting cloud as unsupported with an accurate user-facing message.

Guidance

  • Verify that the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS env var is correctly set in the cloud runtime, as it seems to be read but not honored for team tools.
  • Investigate the possibility of additional gating conditions for team tools in the cloud runtime, as suggested by the fact that task tools work correctly.
  • Check the related issues (#23420, #23874, #28048) for potential clues on how to lift the gating for team tools in cloud sessions.
  • Consider updating the agent-teams documentation to explicitly state whether cloud sessions are supported or not, to avoid confusion.

Example

No code snippet is provided as the issue seems to be related to configuration and gating conditions rather than code.

Notes

The issue is specific to cloud sessions and the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS env var, and may require changes to the cloud runtime or documentation to resolve.

Recommendation

Apply a workaround by explicitly documenting cloud as unsupported for team tools with an accurate user-facing message, until the underlying issue can be resolved. This will help avoid confusion and provide a clear understanding of the current limitations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Agent Teams unavailable in Claude Code on the web despite CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 [1 comments, 2 participants]