Search and load prior session contexts from multiple sources
Search and load prior session contexts from multiple sources (local files, Notion, GitHub issues, swarm checkpoints). Use when starting new sessions, resuming work, or referencing past decisions and specs.
/plugin marketplace add arevlo/claude-code-workflows/plugin install arevlo-context@claude-code-workflows<search query>Search for and display prior session contexts from multiple sources.
Search query: $ARGUMENTS
Notion database name: _clawd (customize to match your Notion setup)
Run these checks silently to determine which options to show:
/tmp/claude-contexts/ directory exists.claude/swarm/progress/ directory existsgit remote get-url origindocs/context/ directory exists using Globplans/ directory exists using Glob~/.claude/plans/ directory existsALWAYS ask the user where to search - present available options:
Where would you like to search for context?
1. Local /tmp folder [only if /tmp/claude-contexts exists]
2. Swarm checkpoints (.claude/swarm/) [only if .claude/swarm/progress exists]
3. Notion (_clawd database)
4. GitHub Issues (in current repo) [only if git remote exists]
5. Docs folder (./docs/context/) [only if docs/context exists]
6. Plans folder (./plans/) [only if plans/ exists]
7. Claude Plans (~/.claude/plans/) [only if ~/.claude{-personal}/plans exists]
Select source:
If Local /tmp:
/tmp/claude-contexts/*.mdIf Swarm Progress:
.claude/swarm/progress/*.md - Auto checkpoints and agent progress.claude/swarm/research/*.md - Research phase outputs.claude/swarm/plans/*.md - Implementation plans.claude/swarm/context/*.md - Consolidated context filesSwarm Checkpoints:
1. [Progress] auto-2024-12-19-phase2.md (1h ago)
Goal: Add user authentication
2. [Research] 2024-12-19-auth-research.md (2h ago)
Topic: Authentication patterns
3. [Plan] 2024-12-19-auth-plan.md (2h ago)
Phases: 4
# headingPhase: line (for progress files)### Phase headings (for plans)If Notion:
_clawd database with the queryIf GitHub Issues:
gh CLI is installed by running: which ghGitHub CLI (gh) is not installed. Install it to search GitHub Issues.
Install with:
brew install gh # macOS
sudo apt install gh # Ubuntu/Debian
winget install GitHub.cli # Windows
After installing, authenticate with: gh auth login
gh issue list --search "{query}" --json number,title,createdAt --limit 10
If Docs folder:
docs/context/*.mdIf Plans folder:
plans/*.mdIf Claude Plans:
~/.claude/plans/ls -lt {plans_dir}/*.md | head -20 (sorted by modified date)# (use head -1)## Goal, ## Summary, or ## Overview section, take first 1-2 linesls -l output1. [2024-12-18] Portfolio Content Review
Goal: Document and review portfolio content...
2. [2024-12-17] Design Token Pipeline
Goal: Automate design token sync from Figma...
Show results with:
If multiple results found, ask user to select which one to view.
Local files (/tmp or docs):
Notion:
mcp__notion__notion-fetch to retrieve and display page contentGitHub Issues:
gh issue view {number} --json body