Agent Commands
Thesf agent command group manages orchestrator agents — the AI coding agents that execute tasks, plan work, and handle merge review.
sf agent list
List all registered agents with filtering options. Usage:Options
Filter by agent role:
director, worker, or stewardFilter by session status:
idle, running, suspended, or terminatedFilter by worker mode:
ephemeral or persistentFilter by steward focus:
merge, docs, recovery, or customFilter by manager entity ID
Show only agents with active sessions
Examples
Output
sf agent show
Show detailed information about a specific agent. Usage:Arguments
Agent identifier (e.g.,
el-abc123)Examples
Output
sf agent register
Register a new orchestrator agent. Usage:Arguments
Human-readable name for the agent
Options
Agent role:
director, worker, or stewardWorker mode:
ephemeral or persistent (worker agents only)Steward focus:
merge, docs, recovery, or custom (steward agents only)Maximum concurrent tasks the agent can handle
Comma-separated tags (e.g.,
frontend,urgent)Manager entity ID (for workers and stewards)
Role definition document ID for custom instructions
Steward cron trigger (e.g.,
"0 2 * * *" for 2am daily)Agent provider:
claude-code, opencode, or openai-codexLLM model to use (e.g.,
claude-sonnet-4-5-20250929)Examples
Output
sf agent start
Start (spawn) an agent process. Usage:Arguments
Agent identifier
Options
Initial prompt to send to the agent
Spawn mode:
headless or interactiveProvider session ID to resume
Working directory for the agent
Terminal columns for interactive mode
Terminal rows for interactive mode
Timeout in milliseconds
Environment variable to set (format:
KEY=VALUE, can be repeated)Task ID to assign to this agent session
Stream agent output after spawning (blocks until session ends)
Override agent provider for this session
Override model for this session (e.g.,
claude-opus-4-6)Examples
Output
sf agent stop
Stop an agent session. Usage:Arguments
Agent identifier
Options
Graceful shutdown (default)
Force immediate shutdown
Reason for stopping the agent
Examples
Output
sf agent stream
Get the channel ID for an agent to stream messages. Usage:Arguments
Agent identifier
Examples
Output
Common Patterns
Register and Start a Worker
List Active Sessions
Stop All Running Agents
Related Commands
Task Commands
Manage tasks that agents work on
Daemon Commands
Control automatic task dispatch to agents