Harness Notes

Commands

Updated 2026-11-25,

On this page

The command for each task, in each harness. Pick what you are working with, then read across: commands you type in your shell or a script and commands you type inside an open session are listed separately. Commands for renaming sessions are on Thread naming and importing from another harness on Migration.

From your shell

Commands you run in a terminal or script, outside a session.

TaskCodex CLIchecked at 0.162.1
Use
Open the manager

codex agents

Open the agent command center for sessions on the shared local or a remote app-server.

2 notes

No --json. Takes --remote, --remote-auth-token-env, -C/--cd and --no-alt-screen; rejects --no-daemon.

Keys: Open, New, New worktree, Resume, Fork, Rename, Stop (interrupts an active thread), Archive, Hide, Delete, Pin.

Send a message

codex queue --thread <THREAD> --message <TEXT>

Queue a text message for an existing session by UUID or exact name.

2 notes

Image attachments are not supported. --worktree is rejected.

0.166.0 adds `--resume`: after queueing, Codex reads the thread and, if it is not loaded, resumes it on the local daemon or the `--remote` server. It cannot resume through the embedded server; a failed resume prints a warning and the queue still succeeds. Unsupported inherited options are now rejected.

Resume

codex resume [SESSION_ID] [PROMPT]

Resume a saved interactive session by UUID or name, with a picker by default.

2 notes

--last, --all, --include-non-interactive, --remote, --remote-auth-token-env.

--worktree parses but is rejected at run time.

Fork

codex fork [SESSION_ID] [PROMPT]

Fork a saved session into a new chat, with a picker by default.

2 notes

SESSION_ID is documented as a UUID only.

--worktree works only with an explicit SESSION_ID.

Change
Archive

codex archive <SESSION>

Archive a saved session by id or name.

1 note

A UUID takes precedence over a name. --worktree is rejected.

Unarchive

codex unarchive <SESSION>

Restore an archived session by id or name.

2 notes

--worktree is rejected.

0.166.0: unarchiving a thread also restores its archived spawned descendant threads, including ones archived separately. Active descendants are skipped, and a descendant that fails to restore does not block the parent.

Remove
Delete

codex delete <SESSION>

Permanently delete a saved session by id or name.

1 note

Destructive. --force skips the prompt but requires a UUID; names always need confirmation.

Inside a session

Slash commands you type into an open session.

TaskCodex CLIchecked at 0.162.1
Use
Open the manager

/agents

Open the agent command center from inside a session.

1 note

Requires a shared local or remote server.

Resume

/resume [session]

Open the saved-session picker, or resume a session by id or name.

Fork

/fork [name]

Fork the current chat, optionally into a new managed worktree.

Change
Archive

/archive

Archive the current session after confirmation.

1 note

Stops a running turn (0.162.0).

Remove
Delete

/delete

Permanently delete the current session and its subagent threads after confirmation.

1 note

Destructive. Unavailable while a task runs or in a side chat.

Notes and sources

Codex CLI
  • The shell CLI installs and removes plugins but has no enable, disable, update or validate command; the /plugins browser can switch plugins on or off.
  • --worktree starts new sessions in a managed Git worktree and works with codex fork given an explicit session; resume, queue, archive, unarchive and delete reject it at run time.
  • MCP protocol capabilities are recorded in mcp.json; these records cover the operator commands.
  • 0.164.0 TUI: /presets opens ten numbered reusable-input slots (1–9 and 0) for prompts/slash commands, with a keyboard menu and saving through local settings. It is not a skill or model-callable tool.
  • 0.164.0 TUI: /model [model] --reasoning=<level> --speed=<tier> validates available model/effort/tier choices before applying session settings. /permissions <profile-id> [--approval-policy=<policy>] [--reviewer=user|auto_review] discovers and validates the selected permission profile before releasing queued input. These commands are distinct from CLI launch flags.
  • 0.166.0 adds codex doctor --network-only, which runs only the config, network environment, provider HTTP and Responses WebSocket checks.