Claude Code for beginners: save your conversation as plain text

A teammate wants to know why you kept the old heading. The decision is in your Claude Code conversation, a few replies back. Use /export to get a plain text copy, then pick out the lines that explain the decision.

Save the conversation to a text file

Start with an open conversation in Claude Code. If this is your first session, see Anthropic’s quickstart.

  1. Open the conversation that contains the decision. Check that you recognize the discussion about the heading.
  2. Type /export conversation.txt where you normally write to Claude and press Enter. Pick a fresh filename. Starting with version 2.1.327, Claude Code refuses to overwrite an existing file when you give the filename in the command itself.
  3. Open the text file and search for heading. Read the lines around the match: was this a suggestion or the decision you actually made? Send your teammate the excerpt that answers their question.

Prefer to copy the text? Enter /export on its own. A dialog lets you copy the conversation to the clipboard or save it to a file. The export gives you a readable record for a handoff. Restoring project files or resuming a session requires more than that text file.

Source: Anthropic’s Claude Code command reference.

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.