agent-teams
Orchestrating Claude Multi-Agent Teams via Filesystem Protocol
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: agent-teams. It is used for: Orchestrating Claude Multi-Agent Teams via Filesystem Protocol Full Skill content: https://321skill.com/skills/agent-teams-x-8/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This Skill addresses the pain point where multiple Claude CLI processes cannot efficiently collaborate. When developing large projects or handling multiple modules in parallel, a single Claude session is limited by serial execution, while team collaboration lacks a lightweight communication mechanism. Agent Teams enables each Claude agent to operate as an independent team member via a filesystem protocol, using JSON files to exchange messages, tasks, and states—eliminating the need for databases, daemons, or network layers, thereby significantly reducing the complexity of multi-agent collaboration.
Usage is straightforward: first, create a team configuration file (containing metadata such as name and member list) via the API or MCP. Then, use the standard claude command to specify identity parameters for each agent (e.g., --agent-id backend@my-team --team-name my-team). The system automatically launches independent Claude processes in tmux panes. Agents communicate via JSON files under ~/.claude/teams/<team-name>/, with fcntl locks ensuring concurrency safety. You can then orchestrate tasks using natural language instructions, such as “Have the backend agent implement a user login API while the frontend agent writes the corresponding React component.” Both agents will work in parallel and eventually exchange results via files.
It is well-suited for teams and individuals requiring parallel development, multi-agent code reviews, or large-scale refactoring—especially developers already using Claude CLI and familiar with tmux, as well as agent developers and project managers who need to coordinate multiple AI agents for complex projects (e.g., synchronous frontend/backend development, cross-module modifications). For teams already relying on Claude Code as their primary coding assistant, Agent Teams integrates naturally into existing workflows, upgrading solo efforts into coordinated cluster operations.
Recommended for use within tmux on Linux/macOS environments, ensuring the Claude CLI version supports parameters like --agent-id. This approach is primarily suitable for loosely coupled tasks—if tasks require tight sequential reasoning (e.g., recursive algorithms), the loose file-based communication between agents may introduce context-switching overhead. Additionally, filesystem I/O latency makes it unsuitable for high-frequency, real-time interaction scenarios, though it is fully adequate for most parallel development tasks.
Key Features
Unlike agent orchestration frameworks such as AutoGen and CrewAI, which rely on network protocols or databases, Agent Teams depends entirely on the filesystem and fcntl locks for communication—with zero additional dependencies (no databases, daemons, or network layers required). It manages process lifecycles via tmux panes, making it particularly suitable for lightweight, on-demand multi-agent temporary collaboration in local development environments.
Limitations
Requires tmux >= 2.0 and Claude CLI (with the `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` environment variable enabled); not supported natively on Windows. Inter-agent communication speed is limited by filesystem I/O, and single-file locking may become a bottleneck in high-concurrency scenarios.
FAQ
How do I launch multiple agents?
First, create a team configuration. Then, in tmux, launch each agent using parameters like `claude --agent-id <id> --team-name <name>`. They will automatically join the same team and communicate via the filesystem.
What is the maximum number of agents that can work simultaneously?
There is no theoretical hard limit, but it is constrained by system resources (CPU, memory, file handle count) and tmux pane management capabilities. It is recommended not to exceed 10 agents to ensure stability.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/agent-teams-x-8/raw/index.md to read the original Skill definition (Markdown format) for agent-teams, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agent-teams-x-8/raw/index.md