[BUG] Main-context Agent cannot spawn teammates.

Resolved 💬 3 comments Opened Feb 9, 2026 by Reithan Closed Feb 12, 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?

Running claude code with claude --agent <agent name> using an agent with all tools available (either implicitly with tools: null or explicitly by listing every tool, can access TeamCreate, but not Task, and is unable to spawn teammates into a created team.

What Should Happen?

Based on the docs, a main-context agent should be able to spawn teammates, and agent-based teammates should also be able to spawn regular sub-agents. But right now agent-based team leads don't see to have access to the proper tools to do this.

Error Messages/Logs

Steps to Reproduce

Define a simple agent file, launch as main context with claude --agent <agent name>, try to get claude to use a team. Ask claude what tools it sees, or if it has access to Task, TaskOutput, or TaskStop.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.37

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Running in VSCode terminal as git bash.

View original on GitHub ↗

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