Feature request for product/service
Cursor CLI
Describe the request
Feature Request: Stashing Prompt with Keyboard Shortcut (Inspired by Claude Code Ctrl+S)
Problem
In Claude Code, there’s a stashing feature activated with Ctrl+S that lets you temporarily pause your current prompt/session, save it, and resume it later. This is super useful when:
- You want to step away from a long task without losing context
- You need to switch to a different project/task temporarily
- You want to cache a good prompt structure to reuse later
- You accidentally close the terminal and want to resume
Currently, in Cursor CLI, there’s no equivalent way to quickly stash your prompt and session state with a single keybind.
Proposed Solution
Add a keyboard shortcut (suggested: Ctrl+S or Cmd+S while in the Cursor CLI input) that:
- Stashes the current prompt+conversation context to a local file or in-memory store
- Supports listing stashed prompts with a command like
cursor stash list - Allows restoring/reloading a stashed prompt with
cursor stash restore - Supports named stashes so you can organize them by task (e.g.,
stash:api-refactor) - Optionally push to/from a .cursorstash directory for persistence across sessions
Why This Matters for Cursor
- Improves workflow for developers who juggle multiple tasks - you can stash one task, work on another, then come back
- Better prompt iteration - stash a good prompt template, then test variations without rewriting from scratch
- CLI-first experience - fits the Cursor CLI’s terminal-native philosophy
- Productivity boost - the single keybind makes it frictionless, just like git stash
Use Case Example
> cursor
$ (in chat) I'm generating an API route handler for user auth...
$ Ctrl+S (stash)
$ (switch to another task, work on it)
$ cursor stash restore
$ (continues right where I left off with full context)
Additional CLI Commands
cursor stash --save "description"- save current contextcursor stash --list- show saved contextscursor stash --restore <id>- restore a saved contextcursor stash --clear- clean up old stashes
This would make Cursor CLI feel more complete for terminal-based workflows and match the productivity of Claude Code’s stashing behavior.