worktree-switching

Community

Seamless Git worktree switching in Sidecar.

Authormarcus
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Git worktree management within Sidecar often requires coordinated switching of the active workdir across plugins, while preserving per-worktree state and ensuring a graceful fallback if a worktree is removed.

Core Features & Use Cases

  • Per-worktree context switching: Stop, reinitialize, and restart plugins for the new WorkDir.
  • State persistence: Save and restore per-worktree plugin selections and UI state.
  • Theme and registry handling: Apply per-worktree themes; reinit registry to reflect new context.
  • Graceful fallback: Detect external deletion of a worktree and switch to the main worktree automatically when needed.
  • Use Case: You work on feature branches in separate worktrees and need a seamless switch without losing your place.

Quick Start

Open the Worktree Switching panel and select a target worktree to activate within Sidecar.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: worktree-switching
Download link: https://github.com/marcus/sidecar/archive/main.zip#worktree-switching

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.