Command reference ยท Cursor CLI
agent resume
Resumes the most recently used chat session directly, without showing a selection list.
agent resume is a subcommand of the Cursor CLI (invoked via the agent command) and directly loads the most recently used chat session, including its previous conversation context. According to the official parameter reference, it's equivalent to the global option --continue, which is explicitly documented there as shorthand for --resume=-1. For a specific session that isn't the most recently used one, --resume [chatId] with a concrete chat ID is used instead.
This should be distinguished from the slash command /resume: it doesn't automatically continue a session, but instead, per the reference, opens a list of recently used chats to choose from. Anyone looking for a specific older session uses agent ls, which also shows a selection list. Since July 2026, according to the changelog, both agent ls and the resume picker (--resume, /resume) show chats from all workspaces by default, not just from the current directory; the left/right arrow keys can be used to filter to the current workspace.
โ WHEN TO USE IT?
Continue directly with the last conversation after an interruption
agent resume
Continue the last session without a prompt, in a script or terminal alias
agent --continue
โ WHEN NOT TO?
An older session, not the most recently used one, should be continued
agent resume always loads only the most recently used session.
Better: use agent ls to select a specific earlier session, or set --resume [chatId] with a concrete ID
Selecting deliberately from several recently used chats first, instead of blindly continuing the last one
agent resume skips any selection and immediately loads the most recently used session without showing a list.
Better: use /resume, which opens a selection list of recently used chats
SOURCES
- Cursor Docs โ CLI Reference: Parameters โ cursor.com
MORE COMMANDS ยท Cursor CLI