plugins/claude-code-expert/skills-old/agent-teams/SKILL.md
# Agent Teams > Orchestrate teams of Claude Code sessions working together with shared tasks, inter-agent messaging, and centralized management. > Experimental feature — requires `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` environment variable. > Requires Claude Code v2.1.32+. ## Overview Agent teams let you coordinate multiple Claude Code instances working together. One session acts as the **team lead**, coordinating work, assigning tasks, and synthesizing results. Teammates work independently, e
npx skillsauth add markus41/claude plugins/claude-code-expert/skills-old/agent-teamsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrate teams of Claude Code sessions working together with shared tasks, inter-agent messaging, and centralized management. Experimental feature — requires
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSenvironment variable. Requires Claude Code v2.1.32+.
Agent teams let you coordinate multiple Claude Code instances working together. One session acts as the team lead, coordinating work, assigning tasks, and synthesizing results. Teammates work independently, each in its own context window, and communicate directly with each other.
Unlike subagents (which run within a single session and only report back), you can interact with individual teammates directly without going through the lead.
Best use cases:
When NOT to use: Sequential tasks, same-file edits, or work with many dependencies → use single session or subagents.
| | Subagents | Agent Teams | |:-----------------|:----------|:------------| | Context | Own window; results return to caller | Own window; fully independent | | Communication | Report back to main agent only | Message each other directly | | Coordination | Main agent manages all work | Shared task list with self-coordination | | Best for | Focused tasks where only result matters | Complex work requiring discussion | | Token cost | Lower: results summarized back | Higher: each is a separate Claude instance |
// settings.json
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}
Describe the task and team structure in natural language:
I'm designing a CLI tool that helps developers track TODO comments.
Create an agent team: one on UX, one on technical architecture, one as devil's advocate.
Claude creates the team, spawns teammates, coordinates work, and cleans up when finished.
| Mode | Description | Setup |
|------|-------------|-------|
| In-process | All teammates in main terminal. Shift+Down to cycle. | Works anywhere |
| Split panes | Each teammate gets own pane. Click to interact. | Requires tmux or iTerm2 |
| Auto (default) | Split panes if in tmux, in-process otherwise | — |
Configure in settings.json:
{ "teammateMode": "in-process" }
Or per-session:
claude --teammate-mode in-process
Create a team with 4 teammates to refactor these modules in parallel.
Use Sonnet for each teammate.
Spawn an architect teammate to refactor the auth module.
Require plan approval before they make any changes.
Teammate works in read-only plan mode until lead approves. Lead reviews and approves/rejects autonomously — influence with criteria like "only approve plans that include test coverage."
Shift+Down to cycle, type to message. Enter to view session, Esc to interrupt. Ctrl+T for task list.Shared task list coordinates work. Tasks have states: pending → in progress → completed. Tasks support dependencies.
Task claiming uses file locking to prevent race conditions.
Ask the researcher teammate to shut down
Then clean up:
Clean up the team
Always use the lead to clean up (not teammates).
| Hook | When it runs | Exit code 2 behavior |
|------|-------------|---------------------|
| TeammateIdle | Teammate about to go idle | Send feedback, keep working |
| TaskCreated | Task being created | Prevent creation with feedback |
| TaskCompleted | Task being marked complete | Prevent completion with feedback |
| Component | Role | |:----------|:-----| | Team lead | Main session that creates team, spawns teammates, coordinates | | Teammates | Separate Claude Code instances working on assigned tasks | | Task list | Shared work items that teammates claim and complete | | Mailbox | Messaging system for inter-agent communication |
Storage:
~/.claude/teams/{team-name}/config.json~/.claude/tasks/{team-name}/Teammates inherit lead's permission settings. Can change individual modes after spawning.
Each teammate gets its own git worktree (isolated branch). On completion, changes merge back. If conflicts occur:
Create a team to implement user authentication:
- Backend teammate: API routes, middleware, JWT handling
- Frontend teammate: login form, token storage, protected routes
- Test teammate: integration tests for the full auth flow
Create a review team for PR #456:
- Security reviewer: check for vulnerabilities
- Performance reviewer: identify bottlenecks
- Architecture reviewer: evaluate design decisions
Have them discuss findings and produce a unified review.
The /api/orders endpoint is returning 500 errors intermittently.
Create a debugging team:
- One teammate investigates the database layer
- One teammate traces the request handling pipeline
- One teammate analyzes recent deployments and config changes
development
Enhanced plan-authoring skill with Pre-Writing context gathering, task metadata, non-TDD templates, Red Flags, telemetry, and an automated plan linter. Use when you have a spec or requirements for a multi-step task, before touching code.
tools
Documentation intelligence engine with graph-based API docs, algorithm library, and drift detection
tools
Ultraplan cloud planning — kick off a plan in the cloud from your terminal, review and revise in the browser, then execute remotely or send back to CLI
tools
--- name: mcp description: Configure MCP servers for Claude Code — stdio vs HTTP, authentication, Tools/Resources/Prompts distinction, channels (CI webhook, mobile relay, Discord bridge, fakechat), and cost of always-loaded tools. Use this skill whenever adding an MCP server, debugging connection issues, choosing between MCP Tools vs Prompts vs Resources, installing channel servers, or managing .mcp.json. Triggers on: "MCP server", "mcp config", "add Obsidian MCP", "install context7", "channels"