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.

  1. Press Ctrl+R where you normally type to Claude. Enter a word from your earlier request, such as summarize.
  2. 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+R again to see an older match.
  3. When you find the right text, press Tab. You can now change april.md to may.md, for example. Read the line and press Enter when 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.

Get new articles in your inbox

We follow GDPR. Unsubscribe anytime.