Where Claude Code Saves Plans
Find, open and keep the Markdown plans from plan mode
Short answer: in plan mode, Claude Code writes each plan as a Markdown file to ~/.claude/plans/ in your home folder. You can move them into your project with the plansDirectory setting. To read one on a Mac, open the folder in Finder with ⇧⌘G and open the newest .md file in a Markdown viewer.
What Plan Mode Does
In plan mode, Claude Code researches your code without changing it and writes down what it intends to do before it touches anything. You start it by pressing Shift+Tab until the mode indicator shows plan mode, or by starting a single prompt with /plan. When the plan is ready, you approve it, ask for changes, or edit it yourself.
The plan itself is a regular Markdown file — headings, numbered steps, file lists and often code blocks — which is why it is worth reading in something that renders Markdown.
Where the Plan Files Are
By default, plans go to a hidden folder in your home directory:
The files are named automatically rather than after your task, so the easiest way to find the one you want is to sort by date. Deleting this folder is safe: Claude Code’s documentation lists it as application data whose removal loses nothing user-facing.
How to Open Plans on a Mac
In Finder
- In Finder, press ⇧⌘G (Go → Go to Folder).
- Type
~/.claude/plansand press Return. - Switch to list view and sort by Date Modified; the newest plan is at the top.
- Press Space for a Quick Look preview or double-click to open it.
The .claude folder is hidden because its name starts with a dot. ⇧⌘. in Finder shows hidden files if you prefer to browse to it.
From Terminal
While Claude is waiting for approval
At the plan approval prompt, Ctrl+G opens the proposed plan in your default text editor so you can change it before Claude continues (per the Claude Code permission-modes docs). In the VS Code extension, /plan open opens the plan file in the editor while you are in plan mode.
Read Plans Formatted, Not as Raw Text
Opened in TextEdit, a plan is a wall of #, - and ```. Rendered, it is a document with headings, checklists and highlighted code. Options on a Mac:
- A Markdown viewer as the default app — with MDViewer set as default (⌘I on any
.mdfile → “Open with” → “Change All”), the Finder double-click and theopencommand above both show the formatted plan. - Quick Look — press Space on the file; with MDViewer installed, the preview is rendered too.
- No install — drop the file into the online Markdown viewer.
More on opening AI-generated files in how to view Markdown from Claude and other AI tools.
Keep Plans in Your Project
Plans in your home folder are easy to lose and are not next to the code they describe. The plansDirectory setting moves them into the project. Add it to .claude/settings.json in your repository (or to ~/.claude/settings.json for all projects):
- The path is relative to the project root. Use forward slashes, even on Windows.
- If the path points outside the project (for example
../plans), Claude Code falls back to~/.claude/plans. - Decide whether plans belong in Git: commit them as a record of decisions, or add the folder to
.gitignoreto keep them local.
Related: CLAUDE.md guide and AGENTS.md guide for the instruction files Claude Code reads.
FAQ
Where does Claude Code save plans?
As Markdown files in ~/.claude/plans/ in your home folder, unless you set plansDirectory in your settings to a folder inside the project.
How do I change where Claude Code saves plans?
Add "plansDirectory": "docs/plans" (or any path inside your project) to .claude/settings.json or ~/.claude/settings.json. The path is resolved from the project root.
How do I open the latest Claude Code plan on a Mac?
In Terminal run open "$(ls -t ~/.claude/plans/*.md | head -1)", or press ⇧⌘G in Finder, go to ~/.claude/plans and sort by date.
Can I edit a plan before Claude Code runs it?
Yes. At the plan approval prompt press Ctrl+G to open the plan in your text editor, or ask Claude to change the plan before you approve it.
Is it safe to delete ~/.claude/plans?
Yes. Claude Code documents the folder as application data; deleting it removes old plans but nothing else.
Read Claude Code Plans in MDViewer
MDViewer opens plan files the way they are meant to be read: headings, task lists, tables, code blocks and Mermaid diagrams, with a table of contents for long plans. Set it as the default app for .md files once and every plan opens with a double-click or open from the terminal.
Lite is free for personal use; Pro ($9.99 one-time) adds inline editing and Git history. Requires macOS 13.0 or later.