Claude Code for beginners: recall a prompt without sending it
Yesterday you asked Claude Code to summarize a file. Today you want to ask the same question about a different file. If you remember a word from the original request, you can bring back the whole prompt and change the filename before you send it.
Find and edit an earlier prompt
Open an interactive Claude Code session. If this is your first time using it, start with Anthropic’s quickstart.
- Press
Ctrl+Rwhere you normally type to Claude. Enter a word from your earlier request, such assummarize. - If a search dialog opens in fullscreen mode, use the up and down arrows to choose a match. If the match appears on the input line itself, you’re in classic mode. Press
Ctrl+Ragain to see an older match. - When you find the right text, press
Tab. You can now changeapril.mdtomay.md, for example. Read the line and pressEnterwhen you’re ready to send it.
Why use Tab during search?
In the fullscreen dialog, both Enter and Tab put the match in the input field. In classic search, Enter runs the match immediately. Classic search also includes prompts from every project, so check that the filename belongs to the project you’re working in now. You’re reusing text in the open conversation; the earlier session stays closed.
Source: Anthropic’s guide to reverse history search in Claude Code.
The Forge newsletter
Get new articles in your inbox
Pick the topics you care about. No noise, at most one email a week.
We follow GDPR. Unsubscribe anytime.