CLI reference

Every deffier command, as deffier --help prints it. It works in every Deffier terminal; dewwie is the same command under its old name.

deffier ls

List active agent worktrees & statuses

usage: deffier ls [-h]

options:
  -h, --help  show this help message and exit

deffier room

Inter-Agent Room & Swarm Mesh Communication

usage: deffier room [-h] {send,list,agents,create,assign,remove,lead} ...

positional arguments:
  {send,list,agents,create,assign,remove,lead}
    send                Send message to room or specific agent
    list                List recent room messages and assigned sessions
    agents              List agents currently active in the room
    create              Create a new multi-agent room
    assign              Assign or move a session to a room (1 room max)
    remove              Remove a session from its assigned room
    lead                Inspect or promote session to Lead Agent

options:
  -h, --help            show this help message and exit

deffier room send

Send message to room or specific agent

usage: deffier room send [-h] [--target TARGET]
                         [--type {chat,task_delegate,status_update,review_request,delegate,review,status}]
                         message

positional arguments:
  message               Message body

options:
  -h, --help            show this help message and exit
  --target TARGET, -t TARGET
                        Target agent (@lead, @feat-name, @all)
  --type {chat,task_delegate,status_update,review_request,delegate,review,status}
                        Message type (delegate/review/status are short for the
                        long names)

deffier room list

List recent room messages and assigned sessions

usage: deffier room list [-h]

options:
  -h, --help  show this help message and exit

deffier room agents

List agents currently active in the room

usage: deffier room agents [-h]

options:
  -h, --help  show this help message and exit

deffier room create

Create a new multi-agent room

usage: deffier room create [-h] name

positional arguments:
  name        Room name (e.g. 'Frontend Team', 'QA Sandbox')

options:
  -h, --help  show this help message and exit

deffier room assign

Assign or move a session to a room (1 room max)

usage: deffier room assign [-h] [--room ROOM] session

positional arguments:
  session               Session name, ID, or @branch

options:
  -h, --help            show this help message and exit
  --room ROOM, -r ROOM  Target room name or ID (default: active room)

deffier room remove

Remove a session from its assigned room

usage: deffier room remove [-h] session

positional arguments:
  session     Session name, ID, or @branch

options:
  -h, --help  show this help message and exit

deffier room lead

Inspect or promote session to Lead Agent

usage: deffier room lead [-h] [target]

positional arguments:
  target      Target session name or ID to promote to Lead

options:
  -h, --help  show this help message and exit

deffier mesh

Multi-agent mesh skill and rule synchronizer

usage: deffier mesh [-h] {sync} ...

positional arguments:
  {sync}
    sync      Sync Deffier room protocol, CLAUDE.md, and .gemini rules

options:
  -h, --help  show this help message and exit

deffier mesh sync

Sync Deffier room protocol, CLAUDE.md, and .gemini rules

usage: deffier mesh sync [-h] [--dir DIR]

options:
  -h, --help  show this help message and exit
  --dir DIR   Target project root directory

deffier autopilot

Unattended agent jobs: list, run, runs, show, approve,

usage: deffier autopilot [-h] {list,run,runs,show,diff,approve,cancel} ...

positional arguments:
  {list,run,runs,show,diff,approve,cancel}
    list                List jobs in registered projects
                        (.deffier/autopilot/*.json)
    run                 Start a job now (needs Deffier or deffierd running)
    runs                Recent runs, newest first
    show                One run: lifecycle, checks, summary, result branch
    diff                What a delivered run changed (read-only): files and
                        the diff
    approve             Approve or deny a parked run (needs its code)
    cancel              Cancel an active run

options:
  -h, --help            show this help message and exit

deffier autopilot list

List jobs in registered projects

usage: deffier autopilot list [-h] [--project PROJECT]

options:
  -h, --help         show this help message and exit
  --project PROJECT  Also look in this project root

deffier autopilot run

Start a job now (needs Deffier or deffierd running)

usage: deffier autopilot run [-h] [--project PROJECT] [--wait]
                             [--timeout TIMEOUT]
                             job

positional arguments:
  job

options:
  -h, --help         show this help message and exit
  --project PROJECT  Project root, when the job id exists in several projects
  --wait             Follow the run until it ends (exit 0 only if delivered)
  --timeout TIMEOUT  Seconds to wait for the app to answer

deffier autopilot runs

Recent runs, newest first

usage: deffier autopilot runs [-h] [--job JOB] [--limit LIMIT]

options:
  -h, --help     show this help message and exit
  --job JOB
  --limit LIMIT

deffier autopilot show

One run: lifecycle, checks, summary, result branch

usage: deffier autopilot show [-h] run_id

positional arguments:
  run_id

options:
  -h, --help  show this help message and exit

deffier autopilot diff

What a delivered run changed (read-only): files and

usage: deffier autopilot diff [-h] [--stat] run_id

positional arguments:
  run_id

options:
  -h, --help  show this help message and exit
  --stat      Only the list of changed files

deffier autopilot approve

Approve or deny a parked run (needs its code)

usage: deffier autopilot approve [-h] --code CODE [--deny] [--timeout TIMEOUT]
                                 run_id

positional arguments:
  run_id

options:
  -h, --help         show this help message and exit
  --code CODE        The 6-digit code shown in Deffier next to the parked run
  --deny
  --timeout TIMEOUT

deffier autopilot cancel

Cancel an active run

usage: deffier autopilot cancel [-h] [--timeout TIMEOUT] run_id

positional arguments:
  run_id

options:
  -h, --help         show this help message and exit
  --timeout TIMEOUT

deffier profile

Account profiles, one login each (claude1, codex2)

usage: deffier profile [-h] {list,init,logout} ...

positional arguments:
  {list,init,logout}
    list              Profiles with sign-in state and email
    init              Create a profile (claude1.cmd etc. do this on first use)
    logout            Sign one profile out (other profiles are untouched)

options:
  -h, --help          show this help message and exit

deffier profile list

Profiles with sign-in state and email

usage: deffier profile list [-h] [--json]

options:
  -h, --help  show this help message and exit
  --json

deffier profile init

Create a profile (claude1.cmd etc. do this on first use)

usage: deffier profile init [-h] [--refresh] agent n

positional arguments:
  agent       claude, codex or gemini
  n

options:
  -h, --help  show this help message and exit
  --refresh   Re-copy the shared config files (CLAUDE.md, settings, ...)

deffier profile logout

Sign one profile out (other profiles are untouched)

usage: deffier profile logout [-h] agent n

positional arguments:
  agent       claude, codex or gemini
  n

options:
  -h, --help  show this help message and exit

deffier remote

Remote access for your phone: on, off, status

usage: deffier remote [-h] [{on,off,status}]

positional arguments:
  {on,off,status}

options:
  -h, --help       show this help message and exit

deffier devices

Phones that may connect (remote access): pair, list,

usage: deffier devices [-h] {pair,list,revoke} ...

positional arguments:
  {pair,list,revoke}
    pair              Show a one-time code to pair a phone (5 minutes)
    list              Paired phones
    revoke            Cut a phone off now and forget it

options:
  -h, --help          show this help message and exit

deffier devices pair

Show a one-time code to pair a phone (5 minutes)

usage: deffier devices pair [-h] [--viewer]

options:
  -h, --help  show this help message and exit
  --viewer    The phone may only watch, not type or approve

deffier devices list

Paired phones

usage: deffier devices list [-h]

options:
  -h, --help  show this help message and exit

deffier devices revoke

Cut a phone off now and forget it

usage: deffier devices revoke [-h] device

positional arguments:
  device      Device id or name (see deffier devices list)

options:
  -h, --help  show this help message and exit

deffier status

Report live status via OSC 7501 to Deffier process

usage: deffier status [-h] {working,idle,blocked,done,error} message

positional arguments:
  {working,idle,blocked,done,error}
                        Agent state
  message               Brief progress or task description

options:
  -h, --help            show this help message and exit

deffier delegate

Same as `swarm` with one task: an agent works on it on

usage: deffier delegate [-h] [--agent {claude,agy,codex,gemini}]
                        [--project PROJECT]
                        task

positional arguments:
  task                  What the agent should do

options:
  -h, --help            show this help message and exit
  --agent {claude,agy,codex,gemini}, -a {claude,agy,codex,gemini}
  --project PROJECT     Project folder (default: the git repository you are
                        in)

deffier swarm

Hand tasks to agents; each runs on its own branch, in

usage: deffier swarm [-h] [--agent {claude,agy,codex,gemini}] [--check CHECK]
                     [--max-cost MAX_COST] [--profile PROFILE]
                     [--project PROJECT] [--wait] [--timeout TIMEOUT]
                     [--lead [LEAD]] [--workers WORKERS] [--cap CAP]
                     [--fix-rounds FIX_ROUNDS] [--no-plan-review]
                     [--use-file-checks]
                     tasks [tasks ...]

positional arguments:
  tasks                 One or more tasks (quote each one)

options:
  -h, --help            show this help message and exit
  --agent {claude,agy,codex,gemini}, -a {claude,agy,codex,gemini}
                        Agent to use; repeat for several (default: claude)
  --check CHECK         Command that must pass before a result is accepted
                        (e.g. 'npm test'); repeatable
  --max-cost MAX_COST   Cost cap in USD per run (Claude only; passed as --max-
                        budget-usd)
  --profile PROFILE     Account profile for the agent, e.g. claude2 (see
                        deffier profile list)
  --project PROJECT     Project folder (default: the git repository you are
                        in)
  --wait                Follow the runs and print each result (exit 0 only if
                        all delivered)
  --timeout TIMEOUT     Seconds to wait for the app to answer
  --lead [LEAD]         Claude leads: it plans the goal into tasks and reviews
                        the results (optional model, default sonnet)
  --workers WORKERS     With --lead: worker group agent[:count[:model]], e.g.
                        agy:3; repeatable (default: from .deffier/swarm.json,
                        else agy:3)
  --cap CAP             With --lead: cost cap for the whole swarm in USD
                        (default 2)
  --fix-rounds FIX_ROUNDS
                        With --lead: fix rounds per task (default 2)
  --no-plan-review      With --lead: start workers without showing you the
                        plan first
  --use-file-checks     With --lead: use the checks in .deffier/swarm.json
                        (you must have approved them in the app)

deffier swarms

Swarms with a lead: list, show one, cancel or resume

usage: deffier swarms [-h] [--cancel] [--resume] [--timeout TIMEOUT] [id]

positional arguments:
  id                 Swarm id (swarm-...)

options:
  -h, --help         show this help message and exit
  --cancel           Cancel it (running agents stop; branches are kept)
  --resume           Continue a swarm that waits for you (caps stay as they
                     are)
  --timeout TIMEOUT  Seconds to wait for the app to answer

deffier wait

Wait for an agent session to complete its task

usage: deffier wait [-h] [--timeout TIMEOUT] target

positional arguments:
  target             Workspace ID or branch name

options:
  -h, --help         show this help message and exit
  --timeout TIMEOUT  Timeout in seconds

deffier spawn

Spawn new agent session or worktree

usage: deffier spawn [-h] [--local] [--repo REPO] [--base BASE]
                     [--agent AGENT]
                     branch

positional arguments:
  branch         Session or branch name (e.g. feat/payment or dev-session)

options:
  -h, --help     show this help message and exit
  --local        Spawn local in-place session without creating a git branch
  --repo REPO    Target repository (default: the current repository's name)
  --base BASE    Base revision branch
  --agent AGENT  AI Agent CLI (claude, codex, aider)

deffier send

Type a line into the agent in a live session

usage: deffier send [-h] [--no-enter] [--timeout TIMEOUT] target message

positional arguments:
  target             Session name or id, e.g. @agy1-2 or 'claude2 3' (see
                     deffier ls)
  message            The line to type, e.g. a task or 'y'

options:
  -h, --help         show this help message and exit
  --no-enter         Type it without pressing Enter
  --timeout TIMEOUT  Seconds to wait for the app to answer

deffier open

Open worktree in external IDE

usage: deffier open [-h] [--ide {cursor,zed,code}] target

positional arguments:
  target                Workspace ID or branch

options:
  -h, --help            show this help message and exit
  --ide {cursor,zed,code}

deffier diff

View git diff for workspace

usage: deffier diff [-h] target

positional arguments:
  target      Workspace ID or branch

options:
  -h, --help  show this help message and exit

Generated from cli/deffier.py. Still stuck? Help.

Enter opens, arrows move, Esc closes. Or browse Help.