claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Coordinates Claude agent teams via filesystem protocol. Use when orchestrating parallel agents with task dependencies. Do not use for single-agent tasks.
Claude Code
$ npx -y skills add athola/claude-night-market --skill agent-teams --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill agent-teams -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill agent-teams -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill agent-teams -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill agent-teams -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill agent-teams -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill agent-teams -a windsurf -y
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 tools: [] usage_patterns: - team-orchestration - parallel-implementation - multi-agent-review - task-dependency-management complexity: advanced 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 - modules/health-monitoring.md references: - ../../../leyline/skills/error-patterns/SKILL.md - ../../../leyline/skills/service-registry/SKILL.md - references/team-formation.md
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.
# 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
~/.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:**
# Programmatic team setup (via MCP or direct API) # Team config written to ~/.claude/teams/<team-name>/config.json
The team config contains:
Each teammate is a separate `claude` CLI process launched with identity flags:
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 sonnetSee `modules/spawning-patterns.md` for tmux pane management and color assignment.
{
"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.
{
"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.
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
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.
For mission-level team sizing, use the Team Formation rules from `references/team-formation.md`. This defines:
Reviewer (adversarial challenger)
Critical (5-10)
See `references/team-formation.md` for full team sizing guidance and example team formations.
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.
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.