Load, save, or browse Claude Code plans from multiple sources
Manage Claude Code plans - load from multiple sources, save for context preservation, or browse recent plans.
/plugin marketplace add arevlo/claude-code-workflows/plugin install arevlo-context@claude-code-workflowssave|latest|search <query>Manage Claude Code plans - load from multiple sources, save for context preservation, or browse recent plans.
Argument: $ARGUMENTS
Notion database name: _clawd (customize to match your Notion setup)
Plan tag in Notion: Plan (to distinguish from regular contexts)
Claude Code stores plans in the config directory. Check both possible locations (personal config takes priority):
# Check personal config first, then standard
if [ -d "$HOME/.claude-personal/plans" ] && ls "$HOME/.claude-personal/plans"/*.md >/dev/null 2>&1; then
echo "$HOME/.claude-personal/plans"
elif [ -d "$HOME/.claude/plans" ] && ls "$HOME/.claude/plans"/*.md >/dev/null 2>&1; then
echo "$HOME/.claude/plans"
else
echo "none"
fi
Store this path as $PLANS_DIR for use in subsequent steps.
| Argument | Action |
|---|---|
| (empty) | Go to Interactive List |
save | Go to Save Plan |
latest | Go to Load Latest |
search <query> | Go to Search Plans |
Show recent plans from local Claude plans directory with summaries.
# Get 10 most recently modified plans
ls -lt "$PLANS_DIR"/*.md 2>/dev/null | head -10
For each plan file found:
# Get title (first line starting with #)
head -1 "$file" | sed 's/^# //'
# Get summary (look for Goal/Summary/Overview section)
grep -A 2 "^## \(Goal\|Summary\|Overview\)" "$file" | head -3 | tail -2
Recent Plans:
1. [2024-12-18] Portfolio Content Review
Goal: Document and review portfolio content for applications
2. [2024-12-17] Design Token Pipeline
Goal: Automate design token sync from Figma to code
3. [2024-12-15] clawd-eyes Plugin Setup
Goal: Create GitHub repo and integrate plugin
Select a plan to continue (1-10), or 'q' to cancel:
Use Read tool to display the full plan content, then say: "I've loaded this plan. Ready to continue where you left off."
Save the current conversation's plan to a chosen destination for context preservation.
Check if there's an active plan file mentioned in the conversation:
find "$HOME/.claude-personal/plans" "$HOME/.claude/plans" -name "*.md" -mmin -60 2>/dev/null | head -1
If a plan file is found:
If no plan file found:
Where would you like to save this plan?
1. Local Claude Plans ($PLANS_DIR) - Quick, stays in Claude config
2. Notion (_clawd database) - Persistent, searchable, tagged
3. GitHub Issue - Trackable, collaborative
Select destination:
Use the $PLANS_DIR detected earlier (either ~/.claude-personal/plans or ~/.claude/plans).
If Local Claude Plans:
{slug-from-title}.md or use existing filename$PLANS_DIR using Write toolIf Notion:
mcp__notion__notion-create-pages to create a new page in _clawd databasePlan, project name (if detected)If GitHub Issue:
gh CLI is installedgh issue create --title "Plan: {title}" --body "{plan content}" --label "plan"
Show where the plan was saved with a direct link/path.
Quickly load the most recently modified plan.
# Get the most recently modified plan file
ls -t "$PLANS_DIR"/*.md 2>/dev/null | head -1
Use Read tool to display the full plan content.
Say: "Loaded the most recent plan: {title}. Ready to continue."
Search for plans across all sources.
Search query: Extract query from arguments (everything after "search ")
# Search in filenames and content across both directories
grep -l -i "{query}" "$HOME/.claude-personal/plans"/*.md "$HOME/.claude/plans"/*.md 2>/dev/null
Use mcp__notion__notion-search with query in _clawd database, filtered to Plan tag.
gh issue list --search "{query} label:plan" --json number,title,createdAt --limit 10
Search results for "{query}":
Local Plans:
1. [2024-12-18] Design Token Pipeline - ~/.claude-personal/plans/design-tokens.md
2. [2024-12-17] API Refactor - ~/.claude/plans/api-refactor.md
Notion:
3. [2024-12-15] API Design Spec - notion.so/...
GitHub Issues:
4. [2024-12-10] #42: Plan: Authentication Flow
Select a result to load (1-10), or 'q' to cancel:
Fetch and display the full content from the appropriate source.
/arevlo-context:plan - Start of session, pick up where you left off/arevlo-context:plan save - Before running out of context, preserve your plan/arevlo-context:plan latest - Quick resume of most recent work/arevlo-context:plan search auth - Find a specific plan by topic