Automatically copies gitignored files and configures direnv/mise when agent worktree isolation creates a worktree

version
1.42.0
GitHub stars
20

Install

/plugin install worktree-setup@motlin-claude-code-plugins

Run it inside Claude Code after adding the marketplace with /plugin marketplace add motlin/claude-code-plugins.

Contents

Discovered from source

Agents 1

worktree-setup

WorktreeCreate hook for agent worktree isolation. Creates the worktree at <cwd>/.claude/worktrees/<name> (reusing branch <name> if it exists, else branching from origin/HEAD, or HEAD when worktree.baseRef is head), copies gitignored files with rsync, and runs direnv allow and mise trust when their config exists. Requires git, jq, and rsync. Hook input is logged to /tmp/worktree-create-hook-input.json.

Sponsors

Details

Marketplace
motlin/claude-code-plugins
Source
plugins/worktree-setup
Author
Craig Motlin
Category
Productivity

More from motlin/claude-code-plugins

All 30