Freeive

claude-code·Published 2026.06.01·Views 1

Claude Code /export: Save Your Work Conversation as a Text File

How to save a long work conversation as a text file with /export before it disappears, naming the file to keep it as a work record right away.

A conversation you've gone back and forth on with Claude Code holds surprisingly valuable things. What decisions you made and why, what code you fixed and how — it's all in there. Yet when you close the session, it's gone. /export is a command that saves this conversation whole as a text file.

Definition (what it is)

/export is a command that exports the conversation so far as text (an ordinary file made of characters). If you write a filename alongside it, it saves under that name right away.

Because the entire conversation is recorded as-is, it's great for re-reading later or using as a work-record report.

How to use it (by difficulty)

Basic — just export

/export

Entering this exports the current conversation as text.

Applied — save with a specified filename

/export meeting-notes.txt

Giving a filename records it as a file with that name right away. Attaching an easy-to-recognize name like meeting-notes.txt or work-log.txt makes it easy to find later.

Common pitfalls (only when applicable)

  • The file is usually saved in the current working folder. After saving, check the folder once to see where it landed.
  • Since it's exported as text, code or tables in the conversation are saved as plain characters without the colors and formatting you saw on screen. The content remains intact, so it's plenty for record-keeping.

Real-world example

After finishing a long task, saving with something like /export work-log.txt lets you re-read it as-is later when you wonder "why did I do it this way back then." When sharing work content with your team, this one file makes explaining much easier.

Taking it further

Since you can keep the conversation as a file, you can document your work log as-is. If you build the habit of saving important conversations with /export before terminating a session (/exit), you'll never lose the record.

Summary

/export is a command that saves the conversation you had whole as a text file. Just add a filename and it records right away, so you can lightly keep work conversations you'd regret losing.

Based on Claude Code v2.1.154 (2026.05)

#Claude Code#ClaudeCode#export#AI Coding#Vibe Coding#Developer

Comments

Comments 0

Checking sign-in status…

Loading comments…

Recent

More notes.