Local marketplace for Claude-Handoff plugin development
npx claudepluginhub kylesnowschwartz/claude-handoffReplace /compact with intelligent context transfer - analyzes current thread and generates focused prompts for new threads based on your goal
Share bugs, ideas, or general feedback.

Goal-focused context transfer for Claude Code - transform /compact into system instructions that preserves the current task post-compact
Claude-Handoff extends /compact with optional goal-focused handoff. When you run /compact handoff:<your goal> the plugin:
Simply prompt the agent to 'proceed' and you're away.
PreCompact Hook: Activates only when you use /compact handoff:... format
handoff: prefixclaude --resume <session> --fork-session --model haiku --print <prompt> to generate handoff immediately.git/handoff-pending/handoff-context.json temporarilyCompact: Proceeds normally
SessionStart Hook: Runs in the continued session
Result: Session continues with focused context injected, ready to execute your goal, just prompt it to go
Traditional compaction is lossy and unfocused - each summary degrades context quality. Goal-focused handoffs produce sharper results and get you back where you left off.
Inspired by AmpCode's handoff model, and my own observations, this plugin auto-injects generated context without human review. Claude Code hooks can't pause for user editing.
PreCompact prompting for handoff adds some execution time to /compact, approximately ~20s.
# From your project directory
claude plugin marketplace add kylesnowschwartz/claude-handoff
claude plugin install claude-handoff
Trigger goal-focused handoff:
/compact handoff:now implement this for teams as well, not just individual users
/compact handoff:execute phase one of the created plan
/compact handoff:find other places in the codebase that need this same fix
Regular compact (no handoff):
/compact
/compact keep the context tight
Enable debug logging: Edit handoff-plugin/hooks/lib/logging.sh and set LOGGING_ENABLED=true
View logs:
tail -f /tmp/handoff-precompact.log /tmp/handoff-sessionstart.log
This plugin follows the Claude Code plugin architecture:
.claude-plugin/marketplace.json - Local marketplace definitionhandoff-plugin/.claude-plugin/plugin.json - Plugin metadatahandoff-plugin/commands/ - Slash commandshandoff-plugin/hooks/ - Hook implementationsMIT - See LICENSE file for details