What problem does it solve?
Prepare or audit Git worktrees for Claude automation, scheduled/background agents, long-running tasks, or isolated branch work. Use when Claude needs to create a worktree, refresh a worktree, make a worktree ready for unattended execution, or replicate local-only context such as AGENTS.md, user.bazelrc, .bazelrc.user, .buckconfig.local, credentials-backed build config, editor/tooling config, or repo-specific ignored files from a primary checkout.
Core Features & Use Cases
- Prepare a secondary worktree from a primary checkout while preserving the main repo state.
- Link or mirror local context files (AGENTS.md, user.bazelrc, .bazelrc.user, .buckconfig.local) into target worktrees in a safe, idempotent way.
- Validate readiness and provide dry-run mode to audit changes before applying.
Quick Start
Ask Claude to prepare or audit a target worktree by using the script to link necessary local context files from the primary checkout.