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 | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| Set up | |
| Create | Create a new empty chat and print its id. |
| Use | |
| List | List persistent sessions. |
| Start in the background |
Start a session that keeps running after a terminal or SSH disconnect. |
| Attach |
Reattach this terminal to a running persistent session. |
| Resume | Resume a chat by id, or open the picker. |
| Remove | |
| Stop | Stop a persistent session. |
Inside a session
Slash commands you type into an open session.
| Task | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| Use | |
| Start in the background | Hand the conversation to a Cloud Agent that keeps running remotely. 1 noteA message prefix, not a slash command. |
| Detach | Leave the persistent session running and return to the shell. |
| Resume | Open recent chats and resume one. |
| Fork | |
Notes and sources
Cursor Agent
- Nested --help at this version prints the top-level help, so subcommand syntax for plugin marketplaces and in-session commands comes from the docs and changelog.
- agent env, agent cloud and agent automations exist behind feature flags and are not recorded.
- cursor-agent-2026.10.12 help observation, live observation, checked 2026-10-14
- Cursor CLI MCP, Documentation, checked 2026-10-15
- Cursor CLI changelog, Documentation, checked 2026-10-15
- Cursor CLI overview, Documentation, checked 2026-10-15
- Cursor CLI parameters, Documentation, checked 2026-10-15
- Cursor self-hosted pools, Documentation, checked 2026-10-14