From git-simple
Create a git worktree with isolated configuration for parallel development
npx claudepluginhub linkby-com/claude-code-plugin-marketplace --plugin git-simplebranch-nameclaude-sonnet-4-5-20250929# Purpose Create a new git worktree in the `trees/` directory with completely isolated configuration for parallel execution. This enables running multiple instances of the observability system simultaneously without port conflicts, database collisions, or hook misconfiguration. ## Variables ## Instructions - This is a ONE-SHOT command that creates AND starts a worktree automatically - Creates a fully functional, isolated clone of the codebase in a separate worktree - Each worktree runs on unique ports to prevent conflicts when running in parallel - All environment configuration must b...
/create_worktree_promptCreate a git worktree with isolated configuration for parallel development
Create a new git worktree in the trees/ directory with completely isolated configuration for parallel execution. This enables running multiple instances of the observability system simultaneously without port conflicts, database collisions, or hook misconfiguration.
PROJECT_CWD: . (current working directory - the main project root)
BRANCH_NAME: $1 (required)
PORT_OFFSET: $2 (optional, defaults to auto-calculated based on existing worktrees, starts at 1)
WORKTREE_BASE_DIR: trees/
WORKTREE_DIR: trees/<BRANCH_NAME>
mkdir -p treesgit branch --list <BRANCH_NAME>
git worktree add trees/<BRANCH_NAME> <BRANCH_NAME>
git worktree list | grep trees/<BRANCH_NAME>cp <PROJECT_CWD>/.env <WORKTREE_DIR>/.envcp <PROJECT_CWD>/.env.sample <WORKTREE_DIR>/.envgit worktree listFollow the Report section format below to provide comprehensive setup information.
After successful worktree creation, validation, provide a detailed report in the following format:
โ
Git Worktree Created and Started Successfully!
๐ Worktree Details:
Location: trees/<BRANCH_NAME>
Branch: <BRANCH_NAME>
โ๏ธ Environment Files:
โ Root .env (WORKTREE_DIR/.env with API keys)
๐ Important Notes:
โข This worktree is completely isolated from the main codebase
โข You can run multiple worktrees simultaneously with different ports
๐ To Restart This Worktree Later:
cd trees/<BRANCH_NAME>
๐๏ธ To Remove This Worktree:
# Then remove the worktree:
git worktree remove trees/<BRANCH_NAME>
# Or force remove if needed:
git worktree remove trees/<BRANCH_NAME> --force
๐ Next Steps:
2. Open Claude Code in this worktree directory
3. Run commands - events will stream to this isolated instance
4. Compare side-by-side with other worktrees or main codebase
5. Each instance maintains its own database and event history
If any validation steps failed or warnings occurred, include an additional section:
โ ๏ธ Warnings / Action Required:
- <List any warnings or actions the user needs to take>