Mink Agent Teams
Agent Teams (M5-B)
Section titled “Agent Teams (M5-B)”Experimental multi-agent coordination. Lets a “lead” agent dispatch work
across one or more teammate AgentLoops that share a task list, a mailbox,
and (optionally) a tmux split-pane TUI.
Status: experimental. Gated behind
CHIMERA_EXPERIMENTAL_AGENT_TEAMS=1.
Modules
Section titled “Modules”chimera/cli/agent_teams.py— top-level orchestrator. Wires the shared task list, file-locked claiming, idle notifications, andSendMessagedelivery. See module docstring for the full state machine.chimera/mink/team.py—chimera team <subcommand>CLI surface (create,join,task add|list,status). Registered as a top-level subcommand on the main argparse parser.chimera/tools/task_tool.py—Tasktool used inside an agent loop to spawn a child agent with a linkedCancellationToken. Underpins teammate dispatch.chimera/agents/dispatch/— request classifier and trigger router used by the lead agent to decide which teammate gets the next task.
Concepts
Section titled “Concepts”| Concept | Where | Notes |
|---|---|---|
| Shared task list | chimera/cli/agent_teams.py | File-backed JSON in .chimera/teams/<id>/tasks.json; each teammate atomically claims items via fcntl lock. |
| Mailbox | chimera/cli/agent_teams.py | Per-teammate inbox; the SendMessage tool routes through here. |
| Idle notifications | chimera/cli/agent_teams.py | A teammate that observes its inbox empty for N seconds emits an idle event; the lead picks the next task. |
| TUI split | chimera/mink/team.py | Tmux integration is on the planned roadmap; the current CLI is non-interactive. |
Quickstart
Section titled “Quickstart”export CHIMERA_EXPERIMENTAL_AGENT_TEAMS=1chimera team create reviewer --model kimi-k2.6chimera team join reviewer agent-001chimera team task add reviewer "Review the diff in branch feature/x"chimera team task list reviewerchimera team status reviewerThe lead agent sees SendMessage(recipient='reviewer', ...) as an
available tool and will dispatch sub-tasks accordingly. Use
chimera team status <name> to inspect a team’s task list and member
agents. The full subcommand surface is create, join, task add,
task list, status. Tmux split-pane integration and a richer
spawn/list/kill/attach surface are deferred (see issue tracker).
Cross-references
Section titled “Cross-references”- Inline docs:
chimera/cli/agent_teams.py(orchestrator state machine). - Inline docs:
chimera/tools/task_tool.py(child-agent isolation tiers). - Parity matrix row 11 in
parity-matrix.md. - CC concept origin:
research/mink/11-cc-subagents.md.
Caveats
Section titled “Caveats”- Teammate spawning is sequential by default; concurrent dispatch requires
--concurrent Nand a non-shared environment (worktrees recommended). - The shared task list does not survive a host crash mid-write; use a real queue (Redis, NATS) for production workloads.
SendMessageis best-effort — there is no delivery acknowledgement.- Cancellation cascades parent → child via the shared
CancellationToken, but child → parent does not.