Worktree Start banner
open-agreements open-agreements

Worktree Start

Git community

Description

# Start a Git Worktree for a New Branch Set up an isolated worktree so you can work on a branch without affecting other agents or the main checkout. ## Instructions 1. **Determine the branch name.** If the user provided `$ARGUMENTS`, use it as the branch name. Otherwise, ask what they're working on and derive a short branch name like `feat/description` or `fix/description`. 2. **Create the worktree.** From the repo root, run: ```bash git worktree add ../open-agreements-<branch-name> -b

Installation

Installs to ~/.claude/commands/open-agreements-open-agreements-worktree-start.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/open-agreements/open-agreements/HEAD/.claude/commands/worktree-start.md -o ~/.claude/commands/open-agreements-open-agreements-worktree-start.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository