Save Plan
Saves the current plan mode document to .aicontext/ in the repository root with a timestamped, descriptive filename.
When to Use
- After completing a plan in plan mode
- When you want to preserve planning context for future sessions
- Before exiting plan mode if the plan contains valuable architectural decisions
Steps
- Get the plan file path from plan mode context (shown in system message)
- Read the plan content to understand what it covers
- Generate a descriptive name (max 5 words, kebab-case) summarizing the plan
- Run the script:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/save-plan.sh "<descriptive-name>" "<plan-file-path>"
Example
Given plan file at ~/.claude/plans/iterative-yawning-dahl.md about refactoring authentication:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/save-plan.sh "auth-session-refactor" ~/.claude/plans/iterative-yawning-dahl.md
Output: Saved to .aicontext/plan-2026-01-14-auth-session-refactor.md