Pando

A TypeScript-based CLI for managing Git worktrees with automation-first design
Pando makes it effortless to work on multiple branches simultaneously using Git worktrees. Built for modern developer workflows, it provides both human-friendly commands and machine-readable output for CI/CD automation.
Features
- 🌳 Worktree Management: Create, list, and remove git worktrees with ease
- 🤖 Automation-First: Every command supports
--json flag for scripting and AI agents
- 🎯 Developer-Friendly: Interactive prompts when flags aren't provided
- ⚡ Fast: Built with TypeScript for type safety and performance
- 🔧 Extensible: Clean architecture makes adding new commands simple
Installation
Using Homebrew (macOS/Linux)
Not yet available. The Homebrew tap (zpyoung/homebrew-pando) has not been
published; until it exists, install via pnpm/npm below. Tracked in
ROADMAP.md.
# Coming soon
brew tap zpyoung/pando
brew install pando
Using pnpm
pnpm install -g @zyoung-ff/pando
Using npm
npm install -g @zyoung-ff/pando
From source
git clone https://github.com/zpyoung/pando.git
cd pando
pnpm install
pnpm build
pnpm link --global
Quick Start
# Initialize configuration (optional but recommended)
pando config init
# Create a new worktree for a feature branch
pando add --path ../feature-x --branch feature-x
# List all worktrees
pando list
# Remove a worktree (interactive selection or direct with --path)
pando remove
pando remove --path ../feature-x
# View current configuration and sources
pando config show
Commands
pando add
Create a new git worktree (supports both creating new branches and checking out existing branches)
Flags:
-p, --path: Path for the new worktree (optional if worktree.defaultPath is configured)
-b, --branch: Branch to checkout or create (also accepted as a positional argument, e.g. pando add feature-x)
-c, --commit: Commit hash to base the new branch on
-f, --force: Force create branch even if it exists (uses git worktree add -B)
--no-rebase: Skip automatic rebase of existing branch onto source branch
--ephemeral: Mark the worktree as ephemeral (mutually exclusive with --long-lived)
--long-lived: Mark the worktree as long-lived (mutually exclusive with --ephemeral)
--ttl <duration>: Set a per-worktree TTL override (for example, 30m or 2d)
--owner <id>: Record an owner or agent session id
--ports: Force-enable configured port and database-name allocation for this run
--skip-rsync: Skip the rsync copy step (ignores rsync config)
--rsync-flags: Override rsync flags (comma-separated; repeatable)
--rsync-exclude: Additional rsync exclude patterns (comma-separated; repeatable)
--skip-symlink: Skip symlink creation (ignores symlink config)
--symlink: Additional symlink patterns, overriding config (comma-separated; repeatable)
--absolute-symlinks: Use absolute paths for symlinks instead of relative
--details: Show detailed setup information after the worktree is created
-j, --json: Output in JSON format
When --skip-rsync is combined with --rsync-flags or --rsync-exclude, the rsync flags are ignored and a warning is shown.
Lifecycle metadata: pando add stores the worktree kind, creation time, source branch, and optional owner/TTL in Git's per-worktree config. Flags override worktree.defaultKind; auto treats Claude worktree paths, active agent-session environments, and boolean PANDO_EPHEMERAL=true|1|yes signals as ephemeral, and other worktrees as long-lived. Worktrees created during an active CLAUDE_SESSION_ID or PANDO_SESSION are automatically Git-locked when worktree.autoLockActive is enabled; passing --owner alone does not trigger auto-locking. When [ports].enabled or --ports is set, requested service ports and a database name derived from each worktree's own branch are also stored. Exhausted ports produce a warning without failing worktree creation.
Automatic Rebase: When checking out an existing branch, pando automatically rebases it onto the current branch. This keeps your feature branches up-to-date. If the rebase fails (e.g., conflicts), a warning is shown but the worktree is still created. Use --no-rebase to skip this behavior, or set worktree.rebaseOnAdd = false in config.