Loading video...

Video Failed to Load

Go Home

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.

171,570 views • 9 months ago •via X (Twitter)

35 Comments

Chair's profile picture
Chair9 months ago

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

Jarred Sumner's profile picture
Jarred Sumner9 months ago

til

David Flanagan's profile picture
David Flanagan9 months ago

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

Dimitris Mitsos's profile picture
Dimitris Mitsos9 months ago

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

daniel's profile picture
daniel9 months ago

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

Eric Buess's profile picture
Eric Buess9 months ago

🙌 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!

Nick Dobos's profile picture
Nick Dobos9 months ago

@marcelpociot Omg

gerry🗯's profile picture
gerry🗯9 months ago

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

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

Are you out of your goddamned mind?

Himanshu Kumar's profile picture
Himanshu Kumar9 months ago

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

claygon targaryen's profile picture
claygon targaryen9 months ago

can you have clearing context not clear stashed text too please

George Kiknadze's profile picture
George Kiknadze9 months ago

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

Mykyta Pavlenko's profile picture
Mykyta Pavlenko9 months ago

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

alex's profile picture
alex9 months ago

that's cool, I didn't know this

Jayesh Betala's profile picture
Jayesh Betala9 months ago

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

NeuralNeko's profile picture
NeuralNeko9 months ago

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.

Diego Castillo's profile picture
Diego Castillo9 months ago

TIL

Sumit B's profile picture
Sumit B9 months ago

TY for pointing this out

build things that build things's profile picture
build things that build things9 months ago

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

Sharon | AI wonders's profile picture
Sharon | AI wonders9 months ago

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

United Records's profile picture
United Records9 months ago

interesting

Jamie Street's profile picture
Jamie Street9 months ago

this is going to save me so much time, thanks for sharing Ado

Arihant's profile picture
Arihant9 months ago

TIL

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

This is why everyone wants the AI bubble to pop

Grady Gaugler's profile picture
Grady Gaugler9 months ago

Mind blown. Wanted this forever.

TechGringo's profile picture
TechGringo9 months ago

This feature is criminally underrated. Switching contexts without losing your work is such a quality of life improvement. Git-like workflow for prompts is genuinely clever.

Not Me's profile picture
Not Me9 months ago

This work on Windows too or is it just a Mac command?

Evan's profile picture
Evan9 months ago

you can also just clear it out and then hit up to find it again…

Leon.M's profile picture
Leon.M9 months ago

I might finally be able to close the Notes app window I keep open purely for prompt storage.

Rahimuddin's profile picture
Rahimuddin9 months ago

A handy one, thanks!

wadehunter's profile picture
wadehunter9 months ago

Doing this paired with can organize your projects so much better. I think I want to add a feature that stores prompts.

Jason Thomas's profile picture
Jason Thomas9 months ago

Nice. Good pro tip

KAI's profile picture
KAI9 months ago

you are a life saver, thanks man.

eveGodman's profile picture
eveGodman9 months ago

Claude编程之后的内容需要谨慎进行实验和多方验证,并且注意其是否真的实现了某些特定需求功能,其可能为了完成最终结果而产生作弊行为导致最终编程指向目标没能有真正产出结果,这种情况一般在复杂多系统相关问题中出现。

Armz's profile picture
Armz9 months ago

What in sorcery. Appreciate it 🤝

Related Videos

PhD Students – How to convert your rough notes into a paper draft in 1 hour? Let’s first quickly understand the concept of rough notes. As a PhD student, you often read papers and make notes. Sometimes, you extract data from the papers you read. You record this data in an excel sheet. Irrespective of how you record your notes or data, you can convert it into a paper draft. More interesting, you can do this automatically. 𝐖𝐡𝐲 𝐭𝐨 𝐜𝐨𝐧𝐯𝐞𝐫𝐭 𝐲𝐨𝐮𝐫 𝐧𝐨𝐭𝐞𝐬 𝐢𝐧𝐭𝐨 𝐚 𝐩𝐚𝐩𝐞𝐫 𝐝𝐫𝐚𝐟𝐭? ➟ Difficult to comprehend your notes/data ➟ The notes are scattered in different places ➟ Need to synthesize a broader idea from your notes ➟ Need to write paper based on data noted 𝐇𝐨𝐰 𝐭𝐨 𝐜𝐨𝐧𝐯𝐞𝐫𝐭 𝐲𝐨𝐮𝐫 𝐧𝐨𝐭𝐞𝐬 𝐢𝐧𝐭𝐨 𝐚 𝐩𝐚𝐩𝐞𝐫 𝐝𝐫𝐚𝐟𝐭? 1. Go to and log in. 2. Open a blank document to start. 3. Click on 𝑊𝑟𝑖𝑡𝑒 on the right menu. 4. Click on 𝑢𝑝𝑙𝑜𝑎𝑑/𝑎𝑡𝑡𝑎𝑐ℎ button to upload your rough notes. 5. Use either pre-defined prompts or write your own. 6. For example, use the prompt – 𝐷𝑟𝑎𝑓𝑡 𝑎 𝑙𝑖𝑡𝑒𝑟𝑎𝑡𝑢𝑟𝑒 𝑟𝑒𝑣𝑖𝑒𝑤. 7. Paperpal will convert your notes a first draft of literature review. 8. Unlike ChatGPT, it will include real references your notes have. 9. You can give follow up instruction to modify the output. 10. For example, you can instruct – 𝑚𝑎𝑘𝑒 𝑜𝑢𝑡𝑝𝑢𝑡 𝑚𝑜𝑟𝑒 𝑐𝑜𝑛𝑐𝑖𝑠𝑒. 11. Paperpal will provide a concise alternative. 12. You can continue writing using the following options. ➝ Keep Writing ➝ Expand on ➝ Write a counter argument ➝ Write a transition sentence ➝ Write an impact statement 13. You can either accept or discard the generated text. Following this process will generate a paper draft for you. However, it is important to note that it is only a draft. You need to put your own human insight into it to polish it. You also need to carefully cross check the outputs. Please note this tutorial and tool is to facilitate you. It does not intend or even can replace you as a researcher. Try the Write 2.0 feature of Paperpal. Here is the link: Use code – FAHPP30 to get 30% off on Paperpal Prime. Anything you'd like to add?

Faheem Ullah

34,237 views • 2 years ago