Save, list, and restore named Claude Code sessions for easy context switching. Inspired by git stash.
npx claudepluginhub wuliang142857/claude-stashDrop a stashed session entry (usage: /stash:drop "session name")
Export all stashed sessions to zip file (usage: /stash:export-all "/path/to/output.zip")
Export a stashed session to zip file (usage: /stash:export "name" "/path/to/output.zip")
Import sessions from zip file (usage: /stash:import "/path/to/input.zip" [--overwrite])
List all stashed sessions
Pop/restore a stashed session (usage: /stash:pop "session name")
Stash current session with a name (usage: /stash:push "session name")
Save and restore named Claude Code sessions for easy context switching. Inspired by git stash.
| Command | Description |
|---|---|
/stash:push "name" | Save current session with a name |
/stash:list | List all saved sessions |
/stash:pop "name" | Restore a saved session |
/stash:drop "name" | Delete a saved session |
/stash:export "name" "path" | Export a session to zip file |
/stash:export-all "path" | Export all sessions to zip file |
/stash:import "path" | Import sessions from zip file |
Sessions can be exported to zip files and imported on another machine:
# Export a single session
/stash:export "my-session" "~/my-session.zip"
# Export all sessions
/stash:export-all "~/all-sessions.zip"
# Import sessions (skips existing names by default)
/stash:import "~/all-sessions.zip"
# Import with overwrite (replaces existing sessions)
/stash:import "~/all-sessions.zip" --overwrite
The export file contains session mappings and data, making it easy to backup or transfer sessions between machines.
The /stash:pop command supports automatic session restoration:
| Environment | Behavior |
|---|---|
| In tmux | Automatically opens a new window with the restored session and closes the current pane |
| In screen | Automatically opens a new window with the restored session and closes the current window |
| Neither | Displays the claude --resume <session_id> command for manual execution |
If you want the seamless auto-restore experience, install tmux or screen:
# macOS
brew install tmux
# or
brew install screen
# Ubuntu/Debian
sudo apt install tmux
# or
sudo apt install screen
In Claude Code, run the following commands:
# Add the marketplace
/plugin marketplace add wuliang142857/claude-stash
# Install the plugin
/plugin install stash@wuliang142857
# Update
/plugin update stash@wuliang142857
# Uninstall
/plugin uninstall stash@wuliang142857
MIT
Battle-tested Claude Code plugin for engineering teams — 48 agents, 184 skills, 79 legacy command shims, production-ready hooks, and selective install workflows evolved through continuous real-world use
Runs pre-commands
Contains inline bash commands via ! syntax
Real-time statusline HUD for Claude Code - context health, tool activity, agent tracking, and todo progress
Comprehensive C4 architecture documentation workflow with bottom-up code analysis, component synthesis, container mapping, and context diagram generation
Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Works with Claude Code, Kiro, Clawd CLI, Gemini CLI, Cursor, Continue, Hermes, and 17+ AI coding assistants. Now with Arabic, German, Spanish, and Chinese (Simplified & Traditional) support.
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Real-time statusline HUD for Claude Code - displays context usage, tool activity, agent tracking, and todo progress