By 392fyc
Session handoff & auto-continuation for Claude Code. Preserves context across compaction boundaries, generates structured handoff documents, and enables one-click session continuation.
Session handoff & auto-continuation for Claude Code.
When a working session approaches its context limit, /handoff generates a structured handoff document, launches a fresh session, and the new session picks up exactly where the old one left off — no copy-paste, no context loss.
/handoff in a session that is about to end (context full, long-running task needs continuation, end of day).claude with the Starting Prompt as its first message./handoff. No automatic triggers on SessionEnd, PreCompact, or anywhere else.python runs, the plugin runs.# Add this repo as a marketplace
claude plugin marketplace add 392fyc/claude-handoff
# Install the plugin
claude plugin install claude-handoff@claude-handoff
# Restart Claude Code for hooks/skills to load
git clone https://github.com/392fyc/claude-handoff.git
claude plugin marketplace add /path/to/claude-handoff
claude plugin install claude-handoff@claude-handoff --scope local
claude plugin update claude-handoff@claude-handoff
# Then restart the session — plugin cache has version delay
In any Claude Code session:
/handoff
The skill will:
~/.claude/projects/<encoded-cwd>/memory/session-handoff.mdAfter the new session starts, exit the old one (/exit or close the terminal).
wt) for auto-launch on Windows, or any terminal that can background claude on macOS/Linuxhooks/session-start.py)On every new session, the hook checks ~/.claude/projects/<encoded-cwd>/memory/session-handoff.md. If present and non-empty, it outputs the contents wrapped in a <session-handoff> tag via the hookSpecificOutput.additionalContext channel. Claude Code then injects that into the new session's first turn.
/handoff skillThe skill prompt (see skills/handoff/SKILL.md) instructs Claude how to:
$CLAUDE_PLUGIN_DATA — hook logs (poc.log) live here (~/.claude/plugins/data/claude-handoff-<marketplace>/)~/.claude/projects/<encoded-cwd>/memory/ — handoff documents (managed by Claude Code's auto-memory)Path encoding: replace :, \, / in cwd with -, strip leading -. E.g. D:\Work\Project → D--Work-Project.
claude-handoff-plugin/
├── .claude-plugin/
│ ├── plugin.json # plugin manifest
│ └── marketplace.json # local marketplace descriptor
├── hooks/
│ ├── hooks.json # registers SessionStart hook
│ └── session-start.py # injects handoff doc as additionalContext
├── skills/
│ └── handoff/
│ └── SKILL.md # /handoff command definition
├── LICENSE
└── README.md
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub 392fyc/claude-handoff --plugin claude-handoffClaudikins Automatic Context Manager - seamless context handoff for Claude Code
Replace /compact with intelligent context transfer - analyzes current thread and generates focused prompts for new threads based on your goal
Adds the agent-session-resume skill for reconstructing and continuing prior AI coding-agent sessions.
会话管理插件 - 智能保存和恢复 Claude Code 会话,支持进度跟踪和工作连续性
Memory compression system for Claude Code - persist context across sessions
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.