Skip to content

Dotty worktree start

dotty worktree start

Create or reuse an agent/* worktree and print its path.

Synopsis

Create (or reuse) a worktree for repo on an agent/- branch at the configured worktree location, and print its path — the path is the command's result, so hooks and scripts capture stdout.

repo falls back to $CLAUDE_PROJECT_DIR, then the enclosing repository. suffix falls back to the WorktreeCreate hook JSON on stdin ({"name": ...}), then a UTC timestamp.

dotty worktree start [repo] [suffix] [flags]

Examples

  dotty worktree start
  dotty worktree start ~/Repos/dotty fix-linker
  echo '{"name":"fix-1"}' | dotty worktree start   # hook form

Options

  -h, --help   help for start

Options inherited from parent commands

      --profile string   profile to operate on (defaults to the active profile)

SEE ALSO