Skip to content
Development
Command

/switch

Park the handoff belonging to another branch and restore this branch's one (per-branch handoffs).

From plugin
claude-handoff-revive
611 skills11 commands
Install
$ npx -y skills add sofumel/claude-handoff-revive --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/switch

Context preview

What this command does when you run it.

Park the handoff belonging to another branch and restore this branch's one (per-branch handoffs).

Command definition

switch.md
description: Park the handoff belonging to another branch and restore this branch's one (per-branch handoffs).

Run the `switch-branch-handoff` script and relay its output in the user's language (read `.claude/handoff/lang`):

  • Linux/macOS/WSL/Git-Bash:
  bash "${CLAUDE_PLUGIN_ROOT:-.claude}/skills/handoff-revive/scripts/switch-branch-handoff.sh"
  • Windows PowerShell:
  $r = if ($env:CLAUDE_PLUGIN_ROOT) { $env:CLAUDE_PLUGIN_ROOT } else { ".claude" }; powershell -ExecutionPolicy Bypass -File "$r/skills/handoff-revive/scripts/switch-branch-handoff.ps1"

What it does: `current.md` stays the single active handoff; the one belonging to another branch is parked under `.claude/handoff/branches/<branch>.md` and the current branch's parked handoff (if any) is restored. Nothing is destroyed — collisions are archived to history first.

After a successful restore, offer `/handoff-revive:resume`. If it restored nothing (clean slate), suggest `/handoff-revive:save` once work starts. If it errors because the handoff has no `branch:` metadata, explain it predates v1.1 and should be re-saved on its own branch first.

Ships withclaude-handoff-revive

Resume Claude Code work after rate/usage/context limits without replaying the prior transcript. Auto-saves at 90%/95% usage. Plugin-installable, 10 languages.

Get the whole plugin, auto-invoked
Stats
6
Stars
0
Views
1
Forks
Maintained
Maintenance
PowerShell
Language
MIT
License
1mo ago
Last commit
3mo ago
Created

Repo: sofumel/claude-handoff-revive