--- name: metabot-team description: "Use for the MetaBot Agent Teams CLI: create and inspect durable Teams, spawn teammates, exchange messages, and manage Tasks and Runs across Sessions." --- # MetaBot Agent Teams CLI This Skill documents the `metabot teams` command surface and its durable-state semantics. It does not define Agent execution policy. ## Core Model Team = Agents + Messages + Tasks + Runs. - Agents retain a stable Team identity across engine Sessions. - Messages are the normal conversational handoff surface. - Tasks record durable assignment, dependencies, status, and result. - Runs record individual executions, output, failure, retry, cancellation, and card state. - Multiple dispatches to the same Agent create independent Tasks and Runs. ## Inspect A Team ```bash metabot teams status --summary metabot teams agents list metabot teams tasks list --summary metabot teams runs list --summary metabot teams next --summary ``` `--summary` or `--plain` selects concise output. The default output is JSON. ## Create And Dispatch ```bash metabot teams create --description "..." metabot teams agents spawn --role --prompt "..." metabot teams dispatch "" --description "..." --plain metabot teams send "" --from metabot teams inbox --summary ``` `dispatch` creates the Task/message/Run projection used by the supervisor. A teammate's final response returns through Team state and the configured display destination. The default maximum parallel Runs per Agent is `4`, configurable with `METABOT_AGENT_TEAM_MAX_PARALLEL_PER_AGENT`. ## Tasks And Runs ```bash metabot teams tasks get metabot teams tasks claim metabot teams tasks done "" metabot teams tasks block "" --blocked-by metabot teams runs list metabot teams runs output metabot teams runs stop ``` Run statuses are `running`, `completed`, `failed`, and `stopped`. Stopping a supervisor-owned Run asks the bridge to stop the execution and prevents late output from replacing terminal state. Assigned in-progress Tasks may return to pending for retry. ## Delivery Boundary - Team status and cards are projections of the local Team store. - Bus or inbox delivery does not give a remote worker access to the sender's local Team store. - A wait timeout may leave durable Task/Run state pending; returned identifiers remain the recovery handles. - The injected Team Context is a compact roster and dispatch hint. Tasks, messages, Runs, outputs, and member prompts remain query-only durable state.