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.
| Task | Codex CLIchecked at 0.162.1 | Claude Codechecked at 2.1.296 | Cursor Agentchecked at 2026.10.12-d47ca18 | OpenCode 2.xchecked at 2.0.28 | pichecked at 1.2.0 |
|---|---|---|---|---|---|
| Set up | |||||
| Create | — | — | Create a new empty chat and print its id. | — | — |
| Import | — | — | — |
Import session data from a JSON file or URL. 1 note | — |
| Use | |||||
| Open the manager | Open the agent command center for sessions on the shared local or a remote app-server. 2 notes | — | — | — | |
| List | — |
Print active interactive and background sessions as JSON. 1 note | List persistent sessions. |
List top-level sessions in the current project, newest first. 1 note | — |
| Show logs | — | Print a supervised session's recent output. | — | — | — |
| Start in the background | — |
also claude --background [prompt] Start a supervised session that keeps running without a terminal, and print its short id. 2 notes
Start a supervised session whose main agent is a named subagent definition. 1 note |
Start a session that keeps running after a terminal or SSH disconnect. | — | — |
| Send a message |
Queue a text message for an existing session by UUID or exact name. 1 note | — | — | — | — |
| Attach | — | Open a supervised session in this terminal, restarting it if it exited. 1 note |
Reattach this terminal to a running persistent session. | Connect the client to a specific server instead of the background service. 1 note | — |
| Resume |
Resume a saved interactive session by UUID or name, with a picker by default. 2 notes | — | Resume a chat by id, or open the picker. |
also opencode -c, opencode -s <id> Continue the last session or a given one. 1 note | |
| Fork |
Fork a saved session into a new chat, with a picker by default. 2 notes | — | — | Fork a saved session into a new session for this project. | |
| Export | — | — | — | Export a session file to HTML. | |
| Change | |||||
| Restart | — | Restart one supervised session, or every running one, on the installed binary. | — | — | — |
| Archive | — | — | — | — | |
| Unarchive | — | — | — | — | |
| Remove | |||||
| Stop | — | also claude kill <id> Stop a supervised session's process while keeping its conversation. | Stop a persistent session. | — | — |
| Delete |
Remove a supervised session from the list, and its worktree when safe. 1 note | — |
Delete a session and its child sessions. | — | |
Inside a session
Slash commands you type into an open session.
| Task | Codex CLIchecked at 0.162.1 | Claude Codechecked at 2.1.296 | Cursor Agentchecked at 2026.10.12-d47ca18 | OpenCode 2.xchecked at 2.0.28 | pichecked at 1.2.0 |
|---|---|---|---|---|---|
| Set up | |||||
| Import | — | — | — | — | Import a JSONL session file and resume it. |
| Use | |||||
| Open the manager | — | — | — | — | |
| Start in the background | — | also /bg [prompt] Move the current conversation into a supervised session and free the terminal. 1 note | — | — | |
| Detach | — | — | Leave the persistent session running and return to the shell. | — | — |
| Resume | Open the saved-session picker, or resume a session by id or name. | — | Open recent chats and resume one. | Switch to another saved session through the picker. | |
| Fork | Fork the current chat, optionally into a new managed worktree. | Fork the current session from a chosen message. | Create a new session from an earlier user message. Duplicate the current session at its current position. | ||
| Export | — | — | — | Export the current session transcript. | Export the current session as HTML or JSONL. |
| Share | — | — | — | — | |
| Change | |||||
| Archive | — | — | — | — | |
| Remove | |||||
| Stop | — | — | — | — | |
| Delete | — | — | — | ||