Auto-save your Claude Code plans to the project root when you finish planning in Plan Mode.
- Optimize token usage - Plan with Opus 4.5 for quality, then execute with faster, cheaper models
- Clean implementation context - Start each implementation with a fresh context window, avoiding artifacts from planning sessions
- Flexible workflows - Plan once, then execute with any model you choose, not just Claude Code
- Automatic Export - Plans are exported when your start a new session or exit Claude Code
- Manual Export - Use
/export-project-plansto export all plans from the current project - Concurrent Session Support - Handles multiple Claude Code sessions safely with file locking
Add the marketplace to Claude Code:
/plugin marketplace add kenryu42/cc-marketplace
Install the plugin:
/plugin install plan-export@cc-marketplace
Note
You'll need to restart Claude Code in order to use the new plugin.
- Run
/pluginto open the plugin manager - Select
Marketplaces - Choose
cc-marketplacefrom the list - Select
Enable auto-update
When you exit a Claude Code session that used plan mode, the plugin automatically copies your plan file from ~/.claude/plans/ to your project root as plan-{slug}.md.
Export all plans from the current project:
/export-project-plans
This scans all session transcripts and exports any associated plan files.
Export all plans with timestamps:
/export-project-plans-with-timestamp
This exports plans with the source file's last modified time prepended: YYYYMMDD-HHMMSS-plan-{slug}.md
Execute the most recent plan in the current directory:
/execute-plan
This finds the most recently modified *plan-*.md file and executes it.
- Plan with Opus or any model in Plan Mode as usual
- When it asks you to choose auto-accept or manual approval, press Esc
- Start a new session (
/clear,/reset, or/new) - Your plan is automatically exported to your current working directory as
plan-{original_uid}.md
From there, you can execute the plan with whatever model you prefer.
.claude-plugin/
plugin.json
hooks/
hooks.json
scripts/
session_start.py
export_plan.py
export_project_plans.py
export_project_plans_with_timestamp.py
commands/
export-project-plans.md
export-project-plans-with-timestamp.md
execute-plan.md
Run tests:
python3 -m unittest discover -s tests -t . -vMIT