Reference
Every command accepts --root, --slug, --agent and --json. Run
wteam <command> --help for the full list of flags.
Commands
Section titled “Commands”| Command | Purpose |
|---|---|
init |
Create .wteam/ and an effort directory |
pickup |
Import planning material and verify it (--from <dir>) |
status |
Tickets, agents and pending events |
ready |
Tickets whose blockers are done |
tickets list |
Tickets with status, blockers, assignees (--status) |
tickets add <title> |
Create a ticket file (--id, --what, --blocked-by, --files, --verify) |
dispatch <ticket> |
Assign a ticket to a worker (--pair <n>) |
submit <ticket> |
Hand a finished round to review (--summary <text> or --summary-file <path>) |
verdict <ticket> pass|fail |
Record a verdict (--file <path> with FINDINGS/NOTES/FOLLOW-UPS sections, or --finding, --note, --follow-up) |
block <ticket> |
Mark a ticket blocked (--reason <text> or --reason-file <path>) |
requeue <ticket> |
Return a blocked ticket to todo (--note <text> or --note-file <path>, not both; --fresh also discards the ticket’s preserved work: its worktree and branch) |
approve <ticket> |
Pass a human gate; the ticket resumes from the gate’s pass route |
send <to> <message> |
Message another agent |
inbox |
Read mail (--all for the whole mailbox) |
wait |
Block until orchestrator events arrive (--timeout <secs>) |
run |
Drive the orchestrator until nothing is runnable (see below) |
stop / restore |
Stop a run, restore backed-up files |
report |
Print the stop report |
role <name> |
Print a resolved role prompt (project, config dir, then built-in) |
graph |
Team or work graph as Mermaid (--work, --team <name>) |
permissions |
Profile translation matrix (--profile, --cli; default CLIs omit pi, use --cli pi) |
phase |
Goldfish phases from phases/<name>.toml (built-ins plan-review, validate; --input <path>) with fresh-context agents |
teams, phases |
List available teams and phases with their description |
config promote|list|show |
Saved teams under ~/.config/wteam. In progress. |
setup |
Detect herdr and pick a transport. In progress. |
run options
Section titled “run options”| Flag | Default | Meaning |
|---|---|---|
--pairs <n> |
1 | Worker and reviewer pairs ($pairs in the team graph) |
--team <name|path> |
default |
Preset, promoted team, or .dot file |
--transport <name> |
from config, else resume |
How a mail starts a turn |
--timeout <secs> |
7200 | Seconds to wait for agent turns before stopping |
--max-turns <n> |
200 | Orchestrator turns, handoff turns included |
--dispatch <auto|model> |
auto |
auto: the watcher dispatches ready tickets and wakes the orchestrator only for blocks and human gates. model: the orchestrator dispatches every ticket |
--budget-tokens <n> |
none | Stop new work once summed agent context tokens exceed n |
--replan |
off | Under auto: each blocked ticket gets up to two planner turns to rewrite it and requeue it. A ticket blocked after its second re-plan stays blocked |
--isolation <none|worktree> |
none |
worktree is not available yet |
--overlap <serial|allow> |
serial |
serial: a ticket whose Files: overlap a ticket in progress waits. allow: it runs at once; a landing conflict returns to its worker. Needs worktree isolation |
Team graph attributes
Section titled “Team graph attributes”| Attribute | Where | Meaning |
|---|---|---|
max_visits |
graph | Review rounds before a ticket is blocked. Default 3. |
description |
graph | What the team is for; shown by wteam teams and used to pick a team at intake |
handoff_tokens |
graph | Context size that triggers an orchestrator handoff. The effective threshold is min(handoff_tokens, 0.75 × context_window). |
agent |
node | Agent definition name |
count |
node | Instances; $pairs takes the --pairs value. Default 1. |
profile |
node | Overrides the agent’s permission profile |
prompt |
node | Appended to the agent’s role prompt under ## Role focus; inline text or @path relative to the repo root |
skill |
node | Skill named in every brief and review request this role receives, alongside the ticket’s Skill: / Review skill: |
continue |
node | true on a worker step: take over the previous step’s session when it is under session_tokens and both steps use the same agent definition |
shape |
node | box agent, parallelogram command, hexagon human gate |
script |
command node | Script run from the repo root |
timeout |
command node | Seconds before the script counts as failed. Default 600. |
on |
edge | Event: dispatch, submit, pass, fail, blocked, message |
kind |
edge | pair, broadcast or fan-in. Default pair. See Mail routing. |
Agent TOML
Section titled “Agent TOML”Optional. Resolved from .wteam/agents/<name>.toml, then
$WTEAM_CONFIG_DIR/agents/<name>.toml, then the built-ins.
name = "worker"cli = "claude" # see Providers for each climodel = "sonnet" # opencode: provider/model; pi: --model patternprompt = "worker"profile = "edit"context_window = 200000 # optional; caps the orchestrator handoff at 0.75 of itextra_args = [] # passed through to the CLI after adapter flagsOpenCode models use provider/model (-m). Pi uses pi --mode json with
--append-system-prompt on the first turn and --session on resume. See
Providers for install, resume flags and JSONL detail;
Architecture for module map and test shims.
Profile TOML
Section titled “Profile TOML”Optional. Resolved from .wteam/profiles/<name>.toml. Rules use Claude syntax
(see Permissions).
name = "graph"extends = "edit" # optional; builtin or another profileallow = ["Bash(codegraph *)"] # appended after the parent's lists, duplicates droppedextends merges the parent’s allow, ask and deny in front of the file’s own.
A cycle or an unknown parent is an error that names the chain.
Project hooks
Section titled “Project hooks”.wteam/hooks/worktree:sh .wteam/hooks/worktree <dir>, cwd the repo root, 120 s limit. Runs on each prepared pair worktree before its first turn, and on the repo root atwteam runstart. A failure fails the dispatch (the stdout and stderr tail is the error); on the root it is a warning..wteam/brief.md: appended verbatim under## Project notesin every worker brief and reviewer request.
Files under .wteam/<slug>/
Section titled “Files under .wteam/<slug>/”spec.md, tickets/NN-name.md, state.json, mail/<agent>.md,
reviews/NN.md, queue.md, handoffs/, logs/<agent>-<turn>.log,
backup/ and worktrees/pair<N>/. Module map and adapter detail:
Architecture.