Save current session context to multiple destinations
Save your current session context to multiple storage destinations including /tmp, Notion, GitHub Issues, docs, or plans folders. Use it to preserve work progress, decisions, and next steps for later reference or team sharing.
/plugin marketplace add arevlo/claude-code-workflows/plugin install arevlo-context@claude-code-workflowsSave the current session context to your choice of storage destinations.
Notion database name: _clawd (customize to match your Notion setup)
Notion data source ID: Update to match your database's data source ID
Detect project from current working directory:
Run these checks silently to determine which options to show:
git remote get-url origindocs/ directory exists using Globplans/ directory exists using GlobALWAYS ask the user where to save - present available options:
Where would you like to save this context?
1. Quick save to /tmp (recommended for checkpoints)
2. Notion (_clawd database)
3. GitHub Issue (in current repo) [only if git remote exists]
4. Docs folder (./docs/context/) [only if docs/ exists]
5. Plans folder (./plans/) [only if plans/ exists]
Select destination:
Note: Option 1 (/tmp) is fastest and recommended for quick checkpoints during work. Use Notion or GitHub for persistent, searchable context storage.
ALWAYS show all 4 options:
Suggest one based on work done this session.
Create comprehensive session summary including:
If Local /tmp:
/tmp/claude-contexts/ if it doesn't exist{YYYY-MM-DD}-{HH-mm}-{project}.md.claude/swarm/ exists:
# Update latest context pointer for swarm integration
if [ -d ".claude/swarm/context" ]; then
echo "/tmp/claude-contexts/{filename}" > .claude/swarm/context/latest-save.txt
fi
If Notion:
mcp__notion__notion-create-pages to create page in _clawd databaseIf GitHub Issue:
gh CLI is installed by running: which ghGitHub CLI (gh) is not installed. Install it to use GitHub Issues for context storage.
Install with:
brew install gh # macOS
sudo apt install gh # Ubuntu/Debian
winget install GitHub.cli # Windows
After installing, authenticate with: gh auth login
git remote get-url origingh issue create --title "[{Tag}] {title}" --body "{content}"
[Context], [Summary], [Spec], or [Reference]If Docs folder:
docs/context/ subdirectory if it doesn't exist{YYYY-MM-DD}-{slug-title}.mdIf Plans folder:
plans/{slug-title}.md (no date prefix for plans)# Session Context: {title}
**Project:** {project}
**Date:** {YYYY-MM-DD HH:mm}
**Tags:** {tag type}
---
## What Was Accomplished
[List of accomplishments]
---
## Files Modified
| File | Change |
|------|--------|
| path/to/file | Description of change |
---
## Key Decisions
- [Decision 1]
- [Decision 2]
---
## Open Questions / Next Steps
1. [Next step]