Command reference ยท Cursor CLI
agent ls
Opens a list of previous chats to pick one to resume.
agent ls shows previous chat sessions to choose from, similar to /resume in interactive mode. The name is a bit misleading: despite 'ls' it doesn't list files, it lists sessions.
โ WHEN TO USE IT?
You're unsure which of the recent sessions to resume
agent ls
โ WHEN NOT TO?
You already know it should be the most recently used session
agent ls shows a selection list first, adding an extra step.
Better: Use agent resume or agent --continue to resume the last session directly
SOURCES
- Cursor Docs โ CLI Reference: Parameters โ cursor.com