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.

TaskCursor Agentchecked at 2026.10.12-d47ca18
Set up
Create

agent create-chat

Create a new empty chat and print its id.

Use
List

agent persist list

List persistent sessions.

Start in the background

agent persist [options] [prompt...]

Start a session that keeps running after a terminal or SSH disconnect.

Attach

agent persist attach <session>

Reattach this terminal to a running persistent session.

Resume

agent ls

Open a picker of previous chats and resume one.

1 note

Shows chats from all workspaces.

agent resume

also agent --continue

Resume the most recent chat.

agent --resume [chatId]

Resume a chat by id, or open the picker.

Remove
Stop

agent persist stop <session>

Stop a persistent session.

Inside a session

Slash commands you type into an open session.

TaskCursor Agentchecked at 2026.10.12-d47ca18
Use
Start in the background

& <message>

Hand the conversation to a Cloud Agent that keeps running remotely.

1 note

A message prefix, not a slash command.

Detach

/detach

Leave the persistent session running and return to the shell.

Resume

/resume

Open recent chats and resume one.

Fork

/fork

also /branch, /duplicate

Fork the current chat into a new session.

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.