Local-first CLI for stacked branch workflows

Ship stacked PRs without the friction

DubStack makes stacked branch workflows fast and safe. Create dependent branches, restack automatically, and submit entire PR stacks in one command.

brew tap wiseiodev/dubstack
brew install dubstack

Built for the stacked PR workflow

Everything you need to manage dependent branches, from creation to merge.

Stacked Branches

Split work into focused, dependent layers. Each branch builds on the one below, keeping PRs small and reviewable.

Auto Restack

When a lower branch changes, dub restack propagates it upstack. Conflict recovery is built in with dub continue and dub abort.

Graphite Compatible

If you have gt muscle memory, DubStack maps 1:1. Same mental model, same workflow patterns, fully local-first.

AI Powered

AI-generate branch names and commit messages from staged changes. Ask the built-in assistant for stack-aware guidance.

From zero to stacked PRs

Create a three-layer stack, view it, and submit all PRs in just a few commands.

# Start from trunk
git checkout main && git pull

# Create stacked branches
dub create feat/auth-types -am "feat: add auth types"
dub create feat/auth-login -am "feat: add login flow"
dub create feat/auth-tests -am "test: add auth tests"

# View your stack
dub log

# Submit all PRs
dub ss