Home / Market / git worktree manager

git worktree manager

Run parallel feature work safely with Git worktrees. Standardizes branch isolation, port allocation, environment sync, and cleanup so each worktree behaves like an independent local app. Optimized for multi-agent workflows where each agent or terminal session owns one worktree. Use when running multiple feature branches simultaneously, isolating experimental work, or coordinating multi-agent development across the same repo.

skill★ 308400 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

Git Worktree Manager

Production workflow for parallel branch development with isolated ports, env sync, and cleanup safety checks. This skill packages practical CLI tooling and operating guidance for multi-worktree teams.

Quick Start

# Create + prepare a worktree
python scripts/worktree_manager.py \
  --repo . \
  --branch feature/api-hardening \
  --name wt-api-hardening \
  --base-branch main \
  --install-deps \
  --format text

# Review stale worktrees
python scripts/worktree_cleanup.py --repo . --stale-days 14 --format text

Included Tools

Both support --input <json-file> and stdin JSON for automation.

References

Installation

Claude Code

cp -R engineering/git-worktree-manager ~/.claude/skills/git-worktree-manager

OpenAI Codex

cp -R engineering/git-worktree-manager ~/.codex/skills/git-worktree-manager

OpenClaw

cp -R engineering/git-worktree-manager ~/.openclaw/skills/git-worktree-manager