Agent skill

Agent Teams

by athola in athola/claude-night-market

Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

MITAuto-check passedAgent Workflows

Install Agent Teams

skills CLI
$ npx skills add athola/claude-night-market --skill agent-teams -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market agent-teams --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/conjure/skills/agent-teams .claude/skills/agent-teams && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-teams
GitHub stars
341
Token cost
~2.5k tokens
SKILL.md length
914 words
Files
8 (incl. references)
Skills in repo
154
Repo updated
First seen
Licence
MIT

At a glance

Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

  • Works in 4 steps: Create a Team → Spawn Teammates → Create Tasks with Dependencies → …
  • Orchestrating parallel agents with task dependencies
  • SKILL.md covers Overview, When To Use, When NOT To Use and Prerequisites, plus 11 more sections
  • Calls claude, brew and apt

What it does

Agent Teams is an agent skill from athola/claude-night-market. Coordinates Claude agent teams via filesystem protocol. Use when orchestrating parallel agents with task dependencies. Do not use for single-agent tasks.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `modules/crew-roles.md`, `modules/health-monitoring.md` and `modules/messaging-protocol.md`).

It sits in Agent Workflows, covering Subagents. It works with tmux. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Orchestrating parallel agents with task dependencies
  • Single-agent tasks

Example prompts

  • “Use the agent-teams skill to coordinate Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market”
  • “/agent-teams”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Create a Team
  2. Spawn Teammates
  3. Create Tasks with Dependencies
  4. Coordinate via Messages

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • claude
    • brew
    • apt

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Teams loads about 2.5k tokens when it runs, and up to ~4.2k if it reads all its reference files. Until then it costs about 41 tokens; SKILL.md has 914 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 914 words, ~2,468 tokens.

Download SKILL.mdSave it as .claude/skills/agent-teams/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
agent-teams
description
Coordinates Claude agent teams via filesystem protocol. Use when orchestrating parallel agents with task dependencies. Do not use for single-agent tasks.
alwaysApply
false
category
delegation-framework
tags
agent-teams, multi-agent, coordination, tmux, task-management, messaging
dependencies
delegation-core, leyline:damage-control, leyline:risk-classification
usage_patterns
team-orchestration, parallel-implementation, multi-agent-review, task-dependency-management
complexity
advanced
model_hint
deep
estimated_tokens
450
progressive_loading
true
modules
modules/team-management.md, modules/messaging-protocol.md, modules/task-coordination.md, modules/spawning-patterns.md, modules/crew-roles.md…

Agent Teams Coordination

Overview

Claude Code Agent Teams enables multiple Claude CLI processes to collaborate on shared work through a filesystem-based coordination protocol. Each teammate runs as an independent claude process in a tmux pane, communicating via JSON files guarded by fcntl locks, with no database, daemon, or network layer.

This skill provides the patterns for orchestrating agent teams effectively.

When To Use

  • Parallel implementation across multiple files or modules
  • Multi-agent code review (one agent reviews, another implements fixes)
  • Large refactoring requiring coordinated changes across subsystems
  • Tasks with natural parallelism that benefit from concurrent agents

When NOT To Use

  • Single-file changes or small tasks (overhead exceeds benefit)
  • Tasks requiring tight sequential reasoning (agents coordinate loosely)
  • When claude CLI is not available or tmux is not installed

Prerequisites

bash
# Verify Claude Code CLI
claude --version

# Verify tmux (required for split-pane mode)
tmux -V

# Enable experimental feature (set by spawner automatically)
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1

Protocol Architecture

~/.claude/
  teams/<team-name>/
    config.json            # Team metadata + member roster
    inboxes/
      <agent-name>.json    # Per-agent message queue
      .lock                # fcntl exclusive lock
  tasks/<team-name>/
    1.json ... N.json      # Auto-incrementing task files
    .lock                  # fcntl exclusive lock

Design principles:

  • Filesystem is the database: JSON files, atomic writes via tempfile + os.replace
  • fcntl locking: Prevents concurrent read/write corruption on inboxes and tasks
  • Numbered tasks: Auto-incrementing IDs with sequential file naming
  • Loose coupling: Agents poll their own inbox; no push notifications

Quick Start

1. Create a Team
bash
# Programmatic team setup (via MCP or direct API)
# Team config written to ~/.claude/teams/<team-name>/config.json

The team config contains:

  • name, description, created_at (ms timestamp)
  • lead_agent_id, lead_session_id
  • members[]: array of LeadMember and TeammateMember objects
2. Spawn Teammates

Each teammate is a separate claude CLI process launched with identity flags:

bash
claude --agent-id "backend@my-team" \
       --agent-name "backend" \
       --team-name "my-team" \
       --agent-color "#FF6B6B" \
       --parent-session-id "$SESSION_ID" \
       --agent-type "general-purpose" \
       --model sonnet

See modules/spawning-patterns.md for tmux pane management and color assignment.

3. Create Tasks with Dependencies
json
{
  "id": "1",
  "subject": "Implement API endpoints",
  "description": "Create REST endpoints for user management",
  "status": "pending",
  "owner": null,
  "blocks": ["3"],
  "blocked_by": [],
  "metadata": {}
}

See modules/task-coordination.md for state machine and dependency management.

4. Coordinate via Messages
json
{
  "from": "team-lead",
  "text": "API endpoints are ready for integration testing",
  "timestamp": "2026-02-07T22:00:00Z",
  "read": false,
  "summary": "API ready"
}

See modules/messaging-protocol.md for message types and inbox operations.

Coordination Workflow

  1. agent-teams:team-created: Initialize team config and directories
  2. agent-teams:teammates-spawned: Launch agents in tmux panes
  3. agent-teams:tasks-assigned: Create tasks with dependencies, assign owners
  4. agent-teams:coordination-active: Agents claim tasks, exchange messages, mark completion
  5. agent-teams:team-shutdown: Graceful shutdown with approval protocol

Crew Roles

Each team member has a role that determines their capabilities and task compatibility. Five roles are defined: implementer (default), researcher, tester, reviewer, and architect. Roles constrain which risk tiers an agent can handle. See modules/crew-roles.md for the full capability matrix and role-risk compatibility table.

Team Formation

For mission-level team sizing, use the Team Formation rules from references/team-formation.md. This defines:

  • Role definitions: Coordinator (mission lead), Agents (task owners), Reviewer (adversarial challenger)
  • Team sizing rules: Simple (1), Moderate (2-4), Complex (5-7), Critical (5-10)
  • Maximum team size: 10 agents (coordination overhead limit)
  • File ownership rules: Prevent conflicts with clear ownership

See references/team-formation.md for full team sizing guidance and example team formations.

Health Monitoring

Team members can be monitored for health via heartbeat messages and claim expiry. The lead polls team health every 60s with a 2-stage stall detection protocol (health_check probe and 30s wait). Stalled agents have their tasks released and are restarted or replaced following the "replace don't wait" doctrine. See modules/health-monitoring.md for the full protocol and state machine.

Module Reference

  • team-management.md: Team lifecycle, config format, member management
  • messaging-protocol.md: Message types, inbox operations, locking patterns
  • task-coordination.md: Task CRUD, state machine, dependency cycle detection
  • spawning-patterns.md: tmux spawning, CLI flags, pane management
  • crew-roles.md: Role taxonomy, capability matrix, role-risk compatibility
  • health-monitoring.md: Heartbeat protocol, stall detection, automated recovery
Show full SKILL.md (417 more words)Show less

Integration with Conjure

Agent Teams extends the conjure delegation model:

Conjure PatternAgent Teams Equivalent
delegation-core:task-assessedagent-teams:team-created
delegation-core:handoff-plannedagent-teams:tasks-assigned
delegation-core:results-integratedagent-teams:team-shutdown
External LLM executionTeammate agent execution

Use Skill(conjure:delegation-core) first to determine if the task benefits from multi-agent coordination vs. single-service delegation.

Delegation is on by default there, so the question a team formation answers is which shape of delegation fits, not whether to delegate. A teammate holding execution work delegates it the same way a single session would. A teammate holding design work keeps it, under the same Keep Local clauses.

When a teammate's delegation returns a fallback_reason, that teammate does the work itself and reports which providers it tried. It does not message the crew for a reassignment: no other teammate has a provider this one lacks, because the registry is machine-wide.

Worktree Isolation Alternative (Claude Code 2.1.49+)

For parallel agents that modify files, isolation: worktree provides a lightweight alternative to filesystem-based coordination. Each agent runs in its own temporary git worktree, eliminating the need for fcntl locking or inbox-based conflict avoidance on shared files.

  • When to prefer worktrees over agent teams messaging: Agents work on overlapping files but don't need mid-execution communication
  • When to prefer agent teams messaging: Agents need to coordinate discoveries or adjust plans based on each other's progress
  • Combine both: Use agent teams for coordination with isolation: worktree per teammate for filesystem safety

Troubleshooting

Common Issues

tmux not found Install via package manager: brew install tmux / apt install tmux

Stale lock files If an agent crashes mid-operation, lock files may persist. Remove .lock files manually from ~/.claude/teams/<team>/inboxes/ or ~/.claude/tasks/<team>/

Orphaned tasks Tasks claimed by a crashed agent stay in_progress indefinitely. Use modules/health-monitoring.md for heartbeat-based stall detection and automatic task release. The health monitoring protocol detects unresponsive agents within 60s and 30s probe window and releases their tasks for reassignment.

Message ordering Filesystem timestamp resolution varies (HFS+ = 1s granularity). Use numbered filenames or UUID-sorted names to avoid collision on rapid message bursts.

Model errors on Bedrock/Vertex/Foundry (pre-2.1.39) Teammate agents could use incorrect model identifiers on enterprise providers, causing 400 errors. Upgrade to Claude Code 2.1.39+ for correct model ID qualification across all providers.

Nested session guard (2.1.39+) If claude refuses to launch within an existing session, ensure you're using tmux pane splitting (not subshell invocation). The guard is intentional. See modules/spawning-patterns.md for details.

Exit Criteria

  • Team created with config and directories
  • Teammates spawned and registered in config
  • Tasks created with dependency graph (no cycles)
  • Agents coordinating via inbox messages
  • Graceful shutdown completed

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in plugins/conjure/skills/agent-teams of athola/claude-night-market.

  • SKILL.md
  • modules/crew-roles.md
  • modules/health-monitoring.md
  • modules/messaging-protocol.md
  • modules/spawning-patterns.md
  • modules/task-coordination.md
  • modules/team-management.md
  • references/team-formation.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Agent Teams next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Teams compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Teams this skillathola/claude-night-market341—~2.5kAutomated safety check: PassMIT
Agent Deckasheshgoplani/agent-deck1k—~1.7kAutomated safety check: PassMIT
Clawteamwin4r/ClawTeam-OpenClaw1.5k—~3.1kAutomated safety check: PassMIT
Multi Agentshibing624/agentica352—~1.9kAutomated safety check: PassApache-2.0
Claude Code DelegationXiaomiMiMo/MiMo-Code14k—~1.3kAutomated safety check: PassMIT
Agents Project Coordinatorasgeirtj/system_prompts_leaks69k—~2.9kAutomated safety check: PassCC0-1.0

Similar skills

  • Agent Deck

    asheshgoplani/agent-deck

    agent-deck, the terminal session manager for AI coding agents.

    1k GitHub stars~1.7k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed
  • Clawteam

    win4r/ClawTeam-OpenClaw

    Multi-agent swarm orchestration. An agent skill from win4r/ClawTeam-OpenClaw.

    1.5k GitHub stars~3.1k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • Multi Agent

    shibing624/agentica

    Run work across more than one agent — choose between the task subagent, the delegate tool, and a second agentica CLI in tmux driven by peer messages (listagents / sendmessage).

    352 GitHub stars~1.9k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Claude Code Delegation

    XiaomiMiMo/MiMo-Code

    Hands coding work to the Claude Code CLI from the terminal in print, interactive tmux or background mode, only when you explicitly ask for Claude Code.

    14k GitHub stars~1.3k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Agents Project Coordinator

    asgeirtj/system_prompts_leaks

    Runs a goal as a project in which the agent coordinates separate agent threads, judging when to split the work, and interviews you first when nothing can be verified.

    69k GitHub stars~2.9k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Team

    ethanhq/cc-fleet

    Spawn long-lived provider LLM teammates in tmux panes that you message via the native agent-team tools — multi-turn, collaborative, watchable.

    215 GitHub stars~3.4k tokensUpdated 10 days ago
    Agent WorkflowsAuto-check passed

More from athola/claude-night-market

All 154 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Mission Orchestrator

    athola/claude-night-market

    Orchestrates full project lifecycle by auto-detecting state and routing to the correct phase.

    341 GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check: warnings

Works with

Categories

Questions about Agent Teams

What does Agent Teams do?

Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market. Agent Teams is an agent skill from athola/claude-night-market. Coordinates Claude agent teams via filesystem protocol.

When should I use Agent Teams?

Agent Teams fits situations like: orchestrating parallel agents with task dependencies; single-agent tasks.

How do I install Agent Teams in Claude Code?

Run `npx skills add athola/claude-night-market --skill agent-teams -a claude-code`. Or copy the skill folder (plugins/conjure/skills/agent-teams in athola/claude-night-market) into .claude/skills/agent-teams in your project. Claude Code loads it when a task matches its description.

How do I install Agent Teams in Codex?

Run `npx skills add athola/claude-night-market --skill agent-teams -a codex`. Or copy the skill folder (plugins/conjure/skills/agent-teams in athola/claude-night-market) into .agents/skills/agent-teams in your project. Codex loads it when a task matches its description.

Can I use Agent Teams in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill agent-teams -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-teams, .gemini/skills/agent-teams, .github/skills/agent-teams and .opencode/skills/agent-teams in your project.

What does Agent Teams need to run?

Going by SKILL.md and its folder, Agent Teams needs the command-line tools its instructions call (claude, brew and apt).

Does Agent Teams access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Teams safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Teams use?

Agent Teams is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Teams use?

About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Agent Teams?

Skills that share tags, products or a category with Agent Teams: Agent Deck (asheshgoplani/agent-deck, 1k stars), Clawteam (win4r/ClawTeam-OpenClaw, 1.5k stars), Multi Agent (shibing624/agentica, 352 stars) and Claude Code Delegation (XiaomiMiMo/MiMo-Code, 14k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Teams?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 154 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.