kenryu42/claude-code-plan-export
kenryu42/claude-code-plan-export · 21 stars · 1 plugin
Marketplace Auto-save your Claude Code plans to the project root when you finish planning.
Install
/plugin marketplace add kenryu42/claude-code-plan-exportRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@cc-plan-export-dev.
- 1plan-exportAuto-save your Claude Code plans to the project root when you finish planning.
/plugin install plan-export@cc-plan-export-dev
Files
Claude Code Plan Export
DEPRECATED: This plugin has been superseded by native Claude Code features. See Migration Guide below for instructions on switching to native settings.
Auto-export your Claude Code plans to the project root when you finish planning.
Deprecation Notice
This plugin is no longer maintained. Claude Code now natively supports:
planDirectorysetting - Configure where plans are saved directly in Claude Code settings- Fresh context on plan execution - Claude Code automatically clears context when executing a plan
These native features replace all functionality provided by this plugin. Please migrate to the native settings.
Migration Guide
Step 1: Uninstall the Plugin
/plugin uninstall plan-export
Step 2: Configure Native Plan Directory
Add to your Claude Code settings (.claude/settings.json or via /config):
{
"planDirectory": "./plans"
}
Plans will now be saved directly to your configured directory.
Step 3: Use Native Plan Execution
When you execute a plan, Claude Code now offer an option to start with a fresh context window. No need for manual /clear or /new commands.
Feature Comparison
| This Plugin | Native Claude Code |
|---|---|
| Session hooks to export plans | planDirectory setting |
/execute-plan + manual /clear |
Plan execution auto-clears context |
/export-project-plans |
Plans saved automatically |
Legacy Documentation (click to expand)
Why Use This Plugin?
- Optimize token usage - Plan with Opus, execute with faster/cheaper models
- Clean implementation context - Fresh context window without planning artifacts
- Flexible workflows - Execute plans with any model, not just Claude Code
- Zero passive cost - No MCP servers or Skills overhead
Quick Start
Installation
/plugin marketplace add kenryu42/cc-marketplace
/plugin install plan-export@cc-marketplace
Note: Restart Claude Code after installation.
Auto-Update
- Run
/plugin→ SelectMarketplaces→ Choosecc-marketplace→ Enable auto-update
Usage
┌─────────────────┐ ┌──────────────┐ ┌──────────────┐ ┌────────────────┐
│ 1. Plan Mode │────▶│ 2. Press ESC │────▶│ 3. /clear or │────▶│ 4. plan-{slug} │
│ │ │ │ │ /new │ │ .md saved! │
└─────────────────┘ └──────────────┘ └──────────────┘ └────────────────┘
- Plan with any model in Plan Mode
- Press ESC when asked to choose auto-accept/manual
- Start new session (
/clear,/reset, or/new) - Plan exported to
plan-{slug}.md
Then run /execute-plan to execute with your preferred model.
Commands
| Command | Description | Output |
|---|---|---|
/execute-plan |
Execute most recent plan | Runs *plan-*.md in CWD |
/export-project-plans |
Export all project plans | Root (1) or plans/ (2+) |
/export-project-plans-with-timestamp |
Export with timestamps | YYYYMMDD-HHMMSS-plan-{slug}.md |
How It Works
SessionStart Hook SessionEnd Hook
│ │
▼ ▼
┌────────────────┐ ┌────────────────┐
│session_start.py│ │ export_plan.py │
│ │ │ │
│ Saves │ ──────▶ │ Reads transcript│
│ TRANSCRIPT_DIR │ session │ Finds slug │
│ to env file │ │ Copies plan │
└────────────────┘ └────────────────┘
Key paths:
- Source:
~/.claude/plans/{slug}.md - Destination:
{CWD}/plan-{slug}.md
Folder Organization
1 plan found? ──▶ Export to project root: plan-{slug}.md
2+ plans found? ──▶ Export to plans/ folder: plans/plan-{slug}.md
Project Structure
.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/
execute-plan.md
export-project-plans.md
export-project-plans-with-timestamp.md
tests/
test_export_plan.py
test_export_project_plans.py
test_concurrency.py
test_session_start.py
Development
# Setup just setup # Or: uv sync && uv run pre-commit install # Test uv run pytest # Lint just check # Or: uv run ruff check && uv run mypy .
License
MIT
{
"name": "cc-plan-export-dev",
"metadata": {
"description": "Development marketplace for claude code plan export plugin",
"version": "1.0.0"
},
"owner": {
"name": "J Liew",
"email": "jliew@420024lab.com"
},
"plugins": [
{
"name": "plan-export",
"description": "Auto-save your Claude Code plans to the project root when you finish planning.",
"source": "./",
"author": {
"name": "J Liew",
"email": "jliew@420024lab.com"
}
}
]
}Facts
- Kind
- Marketplace
- Repo
- kenryu42/claude-code-plan-export
- Group
- Uncategorized
- Stars
- 21
- Marketplace name
- cc-plan-export-dev
- Owner
- J Liew
- License
- MIT
- Language
- Python
- Created
- 2025-12-09
- Last push
- 2026-01-19
- Forks
- 3
- Topics
- claude, claude-code, plan, plugin, plan-export
- Plugins
- 1
From the same owner
- 1365kenryu42/cc-marketplacekenryu42/cc-marketplace4
- 85kenryu42/claude-code-safety-netkenryu42/cc-safety-netA pre-execution guard for AI coding agents. It blocks destructive Git and file system commands, plus common attempts to access sensitive files, before a tool call runs. Supports Amp Code, Antigravity CLI, Claude Code, Codex, Cursor, DeepSeek Harness, Devin CLI, GitHub Copilot CLI, Grok Build, Hermes Agent, Kimi Code, OpenClaw, OpenCode, and Pi.2.1k