Stashing Prompt Feature - Like Claude Code Ctrl+S for Better Prompting with Cursor CLI

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:

  1. You want to step away from a long task without losing context
  2. You need to switch to a different project/task temporarily
  3. You want to cache a good prompt structure to reuse later
  4. 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:

  1. Stashes the current prompt+conversation context to a local file or in-memory store
  2. Supports listing stashed prompts with a command like cursor stash list
  3. Allows restoring/reloading a stashed prompt with cursor stash restore
  4. Supports named stashes so you can organize them by task (e.g., stash:api-refactor)
  5. 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 context
  • cursor stash --list - show saved contexts
  • cursor stash --restore <id> - restore a saved context
  • cursor 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.