Cursor CLI chat from previous message

Feature request for product/service

Cursor CLI

Describe the request

Hello team, As part of my Cursor workflow I often use the “Submit from previous message, Continue without revert” feature. This helps keep the chat history clean of diversions/tangents, unimportant tweaks and helps manage the context window. I would like to automate some of my workflow, but the CLI does not offer a way to do this.

This could be implemented via “/resume-from-request-id” or similar.

Please add these missing chat session management features to the CLI and headless CLI.

Operating System (if it applies)

Windows 10/11
MacOS
Linux

Hey, thanks for the detailed request!

The CLI already supports resuming sessions via cursor-agent --resume [thread-id], or cursor-agent resume for the most recent session. That said, I get what you want. More precise control, like being able to jump back to a specific message in the chat history.

Right now, the CLI doesn’t have a /resume-from-request-id feature or anything similar. This would be a sensible extension for automating workflows. I’ll pass your request to the dev team as a feature request.

For reference, here’s what’s currently available:

  • cursor-agent ls for listing all chats
  • cursor-agent --resume [id] for continuing a session
  • Browsing history with ArrowUp in interactive mode

Links: