Commands¶
This page mirrors the current Click surface in src/agentic_team/cli.py.
Global options¶
Top-level usage:
| Option | Meaning |
|---|---|
--version |
Show the installed agentic-team version |
-T, --team TEXT |
Use a specific team instead of the active team |
TEAM_NAME=<name> |
Environment-variable form of --team |
--help |
Show top-level help |
Notes:
team "prompt"is routed toteam send "prompt"by the custom Click group.- If the bare word looks like a typo of a real subcommand, the CLI raises a usage error instead of silently routing it to
send.
Team lifecycle¶
team doctor¶
| Option | Meaning |
|---|---|
-p, --provider [claude\|codex\|gemini] |
Provider to verify. Defaults to the active team provider or auto-detect. |
Verifies:
- tmux is installed and reports its version.
- The chosen provider CLI is on
PATHand authenticated (ProviderHealthcheck). - If an active team exists (and no explicit
--provideroverride), the lead tmux session is alive.
Use team doctor after installation and before team init to catch missing dependencies early.
team init¶
| Option | Meaning |
|---|---|
-p, --provider [claude\|codex\|gemini] |
Team lead provider. Auto-detected from ~/.agentic-team/defaults.toml or first viable provider (claude > codex > gemini). |
-m, --model TEXT |
Lead model override. No default (uses the provider's own default). |
--worker-mode [oneshot\|interactive] |
Default mode for new workers. Default interactive. |
--permissions [auto\|default\|dangerously-skip-permissions] |
Permission mode saved in team config. Default auto. |
--max-workers INTEGER |
Maximum concurrent workers. Default 6. |
-C, --working-dir DIRECTORY |
Default working directory for lead and workers. Default . (current directory). |
--worktree / --no-worktree |
Enable git worktree isolation for workers. Each worker gets its own branch and worktree. Default --no-worktree (off). |
Behavior notes:
team initsaves the config, makes it active, creates a timestamped log directory, and starts the lead in tmux.- If the team config exists but the tmux session does not,
team initoverwrites that stale config. - If the tmux session is still alive,
team initfails until you stop it.
team list¶
Lists every saved team as:
team stop¶
- With
NAME, stops that team. - Without
NAME, stops the active team. - If you stop the active team, the
~/.agentic-team/activesymlink is cleared.
Talking to the lead¶
team send¶
Equivalent forms:
team "review the open workers and summarize progress"
team send "review the open workers and summarize progress"
team attach¶
| Option | Meaning |
|---|---|
-w, --window TEXT |
Select a specific window before attaching |
-m, --multi |
Join live worker panes into a tiled dashboard |
Behavior notes:
--windowsupports prefix matching against worker names andlead.- Plain
team attachfirst breaks any existing multi-pane layout and restores normal windows. team attach --multionly includes workers that still have a live tmux window.
team standup¶
| Option | Meaning |
|---|---|
--timeout INTEGER |
Maximum seconds to wait for standup.md |
-v, --verbose |
Stream the lead pane live while waiting |
Behavior notes:
- The CLI asks the lead to write
~/.agentic-team/state/<team>/standup.md. - If the file appears, the CLI renders it as markdown.
- If the lead never writes the file, the CLI falls back to the captured lead pane.
Worker management¶
team spawn-worker¶
| Option | Meaning |
|---|---|
-t, --task TEXT |
Task description for the worker. Required. |
--mode [oneshot\|interactive] |
Worker mode. Defaults to the team's worker_mode. |
--provider [claude\|codex\|gemini] |
Worker provider. Defaults to the team's provider. |
--model TEXT |
Model override for this worker |
-n, --name TEXT |
Custom worker name |
-C, --working-dir DIRECTORY |
Working directory for this worker |
-r, --resume-session TEXT |
Seed the worker from an existing Claude or Gemini session |
Behavior notes:
--resume-sessionis rejected for providers without a resume flag.- Interactive workers start first and receive their task once the pane looks ready.
- Oneshot workers get the task as part of the command line.
team status¶
Displays worker name, provider, status (running/waiting/done), elapsed time, task source, and task description.
| Option | Meaning |
|---|---|
-v, --verbose |
Live tail of worker or lead output. Press q to quit. |
Behavior notes:
- Plain
team statusalways prints the full team table. WORKER_NAMEonly changes behavior when you also pass-v.- In verbose mode,
WORKER_NAMEcan target a worker prefix orlead.
team logs¶
| Option | Meaning |
|---|---|
-n, --tail INTEGER |
Number of lines to show |
-a, --all |
Show every worker instead of a single target |
Behavior notes:
- No
WORKER_NAMEmeans "all workers". team logs leadis supported.- The command prefers the current session log file and falls back to tmux
capture-panewhen the file is missing or empty. - There is no
--rawflag in the current CLI.
team send-to-worker¶
Sends text directly to a running interactive worker. WORKER_NAME supports prefix matching.
team resume¶
Resume rules:
- Interactive workers receive the prompt directly through tmux.
- Oneshot workers resume only if their saved worker state has a
session_id. - If there is no stored
session_id, the command fails with the current worker status, mode, and session ID.
team stop-worker¶
Kills the worker window and marks that worker done in saved state.
team wait¶
| Option | Meaning |
|---|---|
-t, --timeout INTEGER |
Maximum seconds to wait. Default 600. |
-i, --interval INTEGER |
Poll interval in seconds. Default 15. |
The command prints the status table immediately, then only reprints it when a worker's status changes.
team clear¶
Removes completed workers from saved state and kills their tmux windows. It also cleans up orphaned tmux windows that are not tracked in the worker list.
Task-file commands¶
team run¶
| Option | Meaning |
|---|---|
-l, --limit INTEGER |
Maximum total tasks allowed for this run, including workers already running |
--dry-run |
Show resolved task details without spawning anything |
--rerun |
Re-run completed tasks by reusing their existing worker slots when possible |
Behavior notes:
- The file format is documented in Task Files.
- Only unchecked tasks are considered.
- The effective spawn count is
(limit or team.max_workers) - currently running workers. - Matching is annotation-first (
← worker-name), then exact task text.
team sync¶
Updates task annotations and ticks completed tasks to [x]. team sync only updates lines that already carry a ← worker-name annotation.
Name matching¶
Prefix matching is implemented by src/agentic_team/names.py. These commands accept worker-name prefixes:
team attach -w <prefix>team logs <prefix>team send-to-worker <prefix> ...team resume <prefix> ...team stop-worker <prefix>team status <prefix> -v