dev-repo-worktrees

Official

Isolate per-session worktrees to prevent drift

Authormycelium-hq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Isolates per-session worktrees to prevent HEAD drift when multiple Claude Code sessions edit the same repo.

Core Features & Use Cases

  • Isolates each session with its own worktree at ~/dev/<repo>-<slug>/, keeping HEAD, index, and working tree independent.
  • Ships a wrapper script and a hookify warn rule to enforce isolation, reducing HEAD-drift risks in multi-session workflows.
  • Complements recovery workflows by providing structural isolation to avoid cross-session contamination.

Quick Start

Run claude-dev-worktree start <repo> <slug> to create a per-session worktree and then cd to ~/dev/<repo>-<slug> to work.

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: dev-repo-worktrees
Download link: https://github.com/mycelium-hq/ai-brain-starter/archive/main.zip#dev-repo-worktrees

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 510,000+ vetted skills library on demand.