En

agent-teams

Coordinating Multi-Agent Claude Teams via Filesystem Protocol

开发流程 协调多智能体分配团队任务编排子代理 claude ★ 990 Updated 2026-08-02

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: Coordinating Multi-Agent Claude Teams via Filesystem Protocol
Full Skill content: https://321skill.com/skills/agent-teams-x-7/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 lack of coordination mechanisms when multiple Claude processes work in parallel. In practical development, when multiple Claude agents need to handle different modules simultaneously (e.g., frontend/backend parallel development, multi-party code review, large-scale refactoring), the absence of a unified communication and task distribution method can easily lead to conflicts or duplicated efforts. Agent Teams implements a lightweight, network‑free collaboration layer using a pure filesystem protocol (JSON files + fcntl locks). Each agent runs independently in a tmux pane, exchanging messages and tasks through shared file queues.

Usage is straightforward: create a team configuration file (containing member list and roles), then launch a separate claude process for each team member with their assigned identity. The system automatically generates inboxes and tasks directories under ~/.claude/teams/<team-name>/. Agents poll their own inbox files to retrieve tasks, with atomic writes and file locks ensuring concurrency safety. You can then assign tasks, synchronize progress, or aggregate results using natural‑language instructions, such as “Have the frontend agent complete the login page, the backend agent implement the API endpoints, then summarize.”

It is particularly suitable for teams or individuals requiring parallel multi‑agent collaboration, especially those already using the Claude CLI for large‑scale projects. Typical scenarios include: cross‑module parallel development, multi‑perspective code review, and coordinating changes across multiple subsystems during complex refactoring. For developers already working in a tmux environment, a collaboration network can be set up quickly with zero network dependencies.

We recommend using this tool consistently during phases with heavy parallel tasks to effectively reduce context‑switching overhead. Note that it is primarily designed for loosely‑coupled parallel tasks and is not suitable for scenarios requiring tight sequential reasoning (e.g., step‑by‑step debugging). It also depends on tmux and the Claude CLI, so ensure those are installed. Additionally, the filesystem‑lock mechanism may become a performance bottleneck under high‑frequency concurrency; we suggest limiting the number of agents per team to 10 or fewer.

Key Features

Unlike agent frameworks such as AutoGen or CrewAI, which rely on networks or databases, Agent Teams operates entirely on the filesystem (JSON + fcntl locks). It requires no daemons, databases, or network layers, has zero installation and runtime dependencies, and is especially well‑suited for local development environments without exposing any ports.

Limitations

Requires tmux and the Claude CLI; only supports Unix‑like systems. The filesystem‑lock mechanism may become a bottleneck under high concurrency; it is recommended to keep the number of agents per team under 10.

FAQ

Does it support cross‑machine collaboration?

No. Agent Teams relies on the local filesystem and is designed for tmux panes on the same machine. For cross‑machine collaboration, we recommend using a network‑based agent framework.

How can I view the agents’ communication logs?

All messages are stored under `~/.claude/teams/<team-name>/inboxes/`. Each agent’s inbox JSON file records all unread messages and can be viewed directly with `cat`.

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-7/raw/index.md to read the original Skill definition (Markdown format) for agent-teams, and install it according to the instructions.