Conventions for orchestrating persistent multi-agent teams with shared task lists, messaging, and lifecycle management (orient, work, checkpoint, shutdown, replace).
Ships in agent-orchestration-and-meta-tooling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Agent teams are a second orchestration mode alongside DAG dispatch of subagent Tasks. Use this reference when spawning or coordinating persistent agent teams.
Teammates do not inherit the orchestrator's conversation context, so spawn prompts must be self-contained with all necessary context, file paths, and objectives. Teammates coordinate via shared task list (TaskCreate/TaskUpdate/TaskList) and messaging (SendMessage), not by returning results to the orchestrator. The orchestrator remains responsible for teammate lifecycle management.
Issue-to-task-list mirroring aligns ephemeral team coordination with persistent work tracking. When an agent team works on a story lineage or cross-cutting collection of Linear stories or OpenSpec changes, mirror the relevant items and their dependencies into the team's shared task list via TaskCreate with appropriate blockedBy/blocks relationships. The team's shared task list is the ephemeral coordination substrate; the Linear board and OpenSpec change own the persistent state. Keep both in sync: when a team task completes, update the corresponding story or change.
Teammate lifecycle management integrates with the orient/checkpoint pattern.
Every new teammate should be instructed to execute session-orient at session start to establish full context on the issue graph and current state.
For repos without the full workflow (no session-* skills installed), instruct the teammate to establish context from the repository's own AGENTS.md and current branch state.
Teammates should monitor context usage and, when approaching 50% capacity (approximately 100k tokens), execute session-checkpoint to capture learnings, update issue status, and produce a handoff narrative.
For repos without the full workflow, have the teammate write the checkpoint narrative to a dated file under docs/notes/ for the successor.
After checkpoint, the teammate requests shutdown; the orchestrator spawns a replacement oriented with session-orient to continue the work.
This creates a clean lifecycle: orient, work, checkpoint, shutdown, replace.
The "You are a subagent Task" identity marker and return-with-questions pattern apply to DAG-dispatched tasks. For agent team teammates, spawn prompts should include equivalent identity context plus instructions about the orient/checkpoint lifecycle.
Teammates spawned in agent teams cannot edit files directly. The harness gates direct Edit, Write, and MultiEdit calls for teammate-class agents, surfacing this as an EnterWorktree prompt. Creating a worktree is the wrong way to satisfy that prompt in jj mode: the gate exists to force the edit through a subagent, and a second tree adds filesystem state without addressing it. Instead, teammates dispatch a subagent Task for every file edit. The subagent inherits the teammate's working directory and operates against the same jj working copy, so no worktree is needed and no parallel-filesystem state arises.
Dispatched subagent Task input omits isolation: "worktree".
In jj-mode repositories setting it raises an ask at the Agent tool surface, and the answer is normally no: the subagent inherits the shared @ and the orchestrator routes its diff, so a second tree would fragment the coordination surface rather than protect it.
Teammates omit the parameter unconditionally to keep behavior consistent across modes, and reach for a worktree only when something outside the team needs its own filesystem tree, per jj-version-control §"Worktree interop".
The subagent edits at @ (which in tier 3 is the wip commit atop the development join, per jj-version-control's composite maintenance invariant), and the orchestrator routes the resulting changes to the appropriate chain via the route-and-extend recipe (jj new -A <chain-tip> --no-edit -m "..." then jj squash --from @ --into <new-change-id> --keep-emptied then jj bookmark move <name> --to <new-change-id>).
All teammates edit that same @=[wip], which is the shared coordination surface that makes N concurrent editors safe by construction; routing the diff downward with --keep-emptied is load-bearing because it leaves @ an empty [wip] in place for the others still writing it.
Never jj describe @ into content and never relocate @ below the join via positional jj rebase -r @ --insert-before/--insert-after (nor the --revisions @ form); both drift the shared surface off [wip].
Full canon — including the sanctioned destination form jj rebase -s <join> -d 'heads((parents(<join>) ~ ::trunk()) | trunk() | <new-chain>)', derived from the join's parents rather than an explicit -d list, the catch-up jj rebase -b @ -d 'trunk()', and the complete editor-safe routing-down templates — lives in jj-version-control invariant (iii-b)/(vi).
This is the agent-team specialization of the binding orchestrator-dispatch discipline documented in the user-level agent context file. The same pattern applies to any orchestrator subject to a harness-level edit-gate (background sessions, future isolation requirements); teammates are simply the most common case in team-coordinated work.
The implicit assumption that @ is stable for the dispatch lifetime breaks during master-orchestrated restructures; see the meta-orchestrator-initiate skill's 01-discipline-and-cycle-patterns.md §"Subagent-@-inheritance race during restructure" for the pre-restructure quiescence, post-restructure inspection, and routed re-entry disciplines that preserve diamond shape under that race.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-teams, multi-agent, orchestration, task-list, lifecycle
/agent-orchestration-and-meta-tooling:meta-agent-teamsfrom agent-orchestration-and-meta-tooling
npx claudepluginhub cameronraysmith/vanixiets --plugin agent-orchestration-and-meta-tooling19 skills in this plugin
/herdrControl herdr from inside it. Manage workspaces and tabs, split panes, spawn agents, read output, and wait for state changes — all via CLI commands that talk to the running herdr instance over a local unix socket. Use when running inside herdr (HERDR_ENV=1)./meta-create-workspace-agents-mdGenerate or update a comprehensive workspace-level CLAUDE.md file from project analysis./meta-generate-context-testGenerate "brown M&M" test questions to validate LLM context ingestion and comprehension./meta-generate-handoff-promptGenerate an optimal handoff prompt for Claude Code agent transitions preserving critical context./meta-list-all-agentsList all available subagent types with their descriptions and tool access for Task tool dispatch./meta-list-all-toolsList all available tools with parameter schemas and usage guidance.Other plugins' skills for the same job