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.

This would be useful, especially for long threads where you and need to switch tasks.

I think there are 2 related use cases too:

  1. Saving context so you can resume a session later
  2. Saving reusable common prompts you know you will need again

Cursor adding stash support would solve the first one really well. For the second, I like keeping a small cross-tool library of code review prompts, PR summary formats, debugging checklists, handoff notes, API request templates, and other reusable pieces.

That is what I use Snippeta app for. I built it to save prompts, workflow notes, links, and quick replies so I can pull them up quickly from a custom keyboard and paste them wherever app I am working in

Hey @KG.codes, splitting this into two use cases makes sense. Resuming a session and keeping a reusable prompt library are really different tasks, so that’s a helpful clarification for the request.

One ask: we don’t encourage promoting third-party apps in someone else’s thread, so please remove the promo part about your app. If you want to share it, make a separate post in the Built with Cursor category, that’s the right place for it. Writing about the general approach of keeping a library of prompts, checklists, and templates handy is totally fine and on-topic. But promoting a specific product in a feature request thread isn’t.

Thanks for understanding and for contributing to the feature discussion.