Skip navigation
Did you know you can stash your prompt in Claude Code?
0:00 / 0:23

Did you know you can stash your prompt in Claude Code?

Ado

@adocomplete35K followers

Visit on X
1,950 likesDownloadOriginal post

171,570 views

Did you know you can stash your prompt in Claude Code? Ctrl+S saves your draft. Allows you to send a different prompt. Your saved draft is then auto-restored. No more copying to Notes. It's like git stash, but for your prompts.

35 Comments

Comments from the original post on X (Twitter)

  • Chair's profile picture

    @_chair

    i guess this is sufficient motivation to figure out what part of the shell ate my Ctrl key

    18 likes

  • Jarred Sumner's profile picture

    @jarredsumner

    til

    16 likes

  • David Flanagan's profile picture

    @rawkode

    Control-S is already a POSIX signal. You’re now just breaking terminal flow control.

    12 likes

  • Dimitris Mitsos's profile picture

    @DimitriosMitsos

    Yes it's really handy feature, this and many more for claude code you can find here, now it's self updating

    10 likes

  • daniel's profile picture

    @dcarmitage

    this is actually very useful, tyvm. I’m always scrambling with notes or obsidian

    6 likes

  • Eric Buess's profile picture

    @EricBuess

    🙌 It’s awesome! But it doesn’t save to file just to memory so when you /exit and continue the session it’s lost, right? Is it possible to make it persist past /exit and resume? I made a workaround I discussed briefly here but would love to not have to go to such lengths. Would also be awesome if up arrow or some other shortcut would restore it without having to submit something. Maybe like a stack that ctrl+s would add to would be great!

    5 likes

  • Nick Dobos's profile picture

    @NickADobos

    @marcelpociot Omg

    4 likes

  • gerry🗯's profile picture

    @Gerry

    I use this all the time when I've typed up a prompt and then realize it would be better if I provided the output of a bash command. 1. <stash> 2. !<command> 3. Submit prompt I actually only found out about this from your Christmas list

    2 likes

  • λx . ophidia ereц grex 2̶̢̡͍͖̘̫ milady #kardasheva's profile picture

    @greydoubt

    Are you out of your goddamned mind?

    2 likes

  • Himanshu Kumar's profile picture

    @codewithimanshu

    @adocomplete, that's a clever way to manage prompts, and here's a guide to further improve your workflow.

    2 likes

  • claygon targaryen's profile picture

    @clayboicartii

    can you have clearing context not clear stashed text too please

    2 likes

  • George Kiknadze's profile picture

    @kiknaio

    If you need to stash a prompt to run it again later, you can probably build a skill out of it and reuse it

    1 like

  • Mykyta Pavlenko's profile picture

    @mktpavlenko

    Ctrl+S stash is a game changer. No more losing half your prompt when you need to pivot real quick.

    1 like

  • alex's profile picture

    @kostyniuk00

    that's cool, I didn't know this

    1 like

  • Jayesh Betala's profile picture

    @jbetala7

    The team knows exactly what to cook. Small or big. But never fail

    1 like

  • NeuralNeko's profile picture

    @Nekovo_0

    git stash for thoughts? This is the feature I didn't know I needed. 🤯 Stopping a thought to run a quick ls used to mean losing your flow. Small UX details like this are what make a dev tool stick.

    1 like

  • Diego Castillo's profile picture

    @diegocasmo

    TIL

    1 like

  • Sumit B's profile picture

    @relentlessSB

    TY for pointing this out

    1 like

  • build things that build things's profile picture

    @_AIAcceleration

    This is a feature that I would have never even thought to add Very useful shortcut

    1 like

  • Sharon | AI wonders's profile picture

    @explorersofai

    Get started with Claude Code here. Simple set up guide!

    1 like