Full Command Reference¶
Stack operations¶
| Command | Alias | Description |
|---|---|---|
st status |
s, ls |
Show stack |
st ll |
Show stack with PR URLs and full details | |
st log |
l |
Show stack with commits and PR info |
st submit |
ss |
Submit full current stack |
st merge |
Merge PRs bottom -> current with provenance-aware descendant rebases, then sync local repo (--no-sync to skip) |
|
st merge-when-ready |
mwr |
Backward-compatible alias for st merge --when-ready |
st sync |
rs |
Pull trunk, delete merged branches, preserve child provenance for restack |
st sync --delete-upstream-gone |
Also delete local branches whose upstream tracking ref is gone | |
st restack |
Rebase current branch onto parent; auto-normalize missing/merged-equivalent parents and use provenance-aware --onto when possible |
|
st cascade |
Restack from bottom and submit updates | |
st diff |
Show per-branch diffs vs parent | |
st range-diff |
Show range-diff for branches needing restack |
Navigation¶
| Command | Alias | Description |
|---|---|---|
st checkout |
co, bco |
Interactive branch picker |
st trunk |
t |
Switch to trunk |
st up [n] |
u |
Move up to child branch |
st down [n] |
d |
Move down to parent branch |
st top |
Move to stack tip | |
st bottom |
Move to stack base | |
st prev |
p |
Switch to previous branch |
Branch management and scopes¶
| Command | Alias | Description |
|---|---|---|
st create <name> |
c, bc |
Create stacked branch |
st modify |
m |
Stage all and amend current commit |
st rename |
Rename current branch | |
st branch track |
Track existing branch | |
st branch track --all-prs |
Track all open PRs | |
st branch untrack |
ut |
Remove stax metadata |
st branch reparent |
Change parent | |
st branch submit |
bs |
Submit current branch only |
st branch delete |
Delete branch | |
st branch fold |
Fold branch into parent | |
st branch squash |
Squash commits | |
st detach |
Remove branch from stack, reparent children | |
st reorder |
Interactively reorder branches in stack | |
st upstack restack |
Restack current + descendants | |
st upstack submit |
Submit current + descendants | |
st downstack get |
Show branches below current | |
st downstack submit |
Submit ancestors + current |
Interactive¶
| Command | Description |
|---|---|
st |
Launch TUI |
st split |
Split branch into stacked branches |
Recovery¶
| Command | Description |
|---|---|
st resolve |
Resolve in-progress rebase conflicts using AI |
st abort |
Abort in-progress rebase/conflict resolution |
st undo |
Undo last operation |
st undo <op-id> |
Undo specific operation |
st redo |
Re-apply last undone operation |
Health & Testing¶
| Command | Description |
|---|---|
st validate |
Validate stack metadata (orphans, cycles, staleness) |
st fix |
Auto-repair broken metadata |
st fix --dry-run |
Preview fixes without applying |
st run <cmd> |
Run a command on each branch in the stack (alias: st test <cmd>) |
st run <cmd> --stack[=<branch>] |
Run only one stack (current stack by default, or <branch> stack when provided) |
st run <cmd> --fail-fast |
Stop after first failure |
st run <cmd> --all |
Run on all tracked branches |
Utilities¶
| Command | Description |
|---|---|
st auth |
Configure GitHub token |
st auth status |
Show active auth source |
st config |
Show current configuration |
st doctor |
Check repo health |
st continue |
Continue after conflicts |
st pr |
Open current branch PR |
st open |
Open repository in browser |
st ci |
Show CI status for current branch (full per-check table with ETA) |
st ci --stack |
Show CI status for all branches in current stack |
st ci --all |
Show CI status for all tracked branches |
st ci --watch |
Watch CI until completion, polls every 15s |
st ci --watch --interval 30 |
Watch with custom polling interval (seconds) |
st ci --verbose |
Compact summary cards instead of full table |
st ci --json |
Output CI status as JSON |
st comments |
Show PR comments |
st copy |
Copy branch name |
st copy --pr |
Copy PR URL |
st standup |
Show recent activity |
st standup --summary |
AI-generated spoken standup update |
st standup --summary --jit |
Include Jira jit context for in-flight and next-up work |
st changelog <from> [to] |
Generate changelog |
st generate --pr-body |
Generate PR body with AI |
st demo |
Interactive tutorial (no auth/repo needed) |
Agent worktrees¶
| Command | Alias | Description |
|---|---|---|
st agent create <title> |
ag create |
Create worktree + stacked branch |
st agent open [name] |
ag attach |
Reopen in editor (fuzzy picker if no name) |
st agent list |
ag ls |
Show all registered worktrees |
st agent register |
Register current dir as an agent worktree | |
st agent remove [name] |
Remove worktree (+ --delete-branch to delete branch) |
|
st agent prune |
Remove dead registry entries + git worktree prune |
|
st agent sync |
Restack all registered worktrees |
Common flags¶
st create -am "msg"st branch create --message "msg" --prefix feature/st branch reparent --branch feature-a --parent mainst branch rename --pushst branch squash --message "Squashed commit"st branch fold --keepst status --stack <branch> --current --compact --json --quietst ll --stack <branch> --current --compact --json --quietst log --stack <branch> --current --compact --json --quietst submit --draft --yes --no-promptst submit --no-prst submit --no-fetchst submit --openst submit --forcest submit --reviewers alice,bob --labels bug,urgent --assignees alicest submit --quietst submit --verbosest submit --ai-bodyst submit --template <name>st submit --no-templatest submit --editst submit --rerequest-reviewst merge --all --method squash --yesst merge --dry-runst merge --when-readyst merge --when-ready --interval 10st merge --no-waitst merge --no-syncst merge --timeout 60 --no-delete --quietst rs --restack --auto-stash-popst sync --delete-upstream-gonest sync --force --safe --continuest sync --quietst sync --verbosest restack --all --continue --quietst restack --submit-after ask|yes|nost resolve --agent codex --model gpt-5.3-codex --max-rounds 5st cascade --no-prst cascade --no-submitst checkout --trunkst checkout --parentst checkout --child 1st ci --stack --watch --interval 30 --jsonst standup --all --hours 48 --jsonst standup --summaryst standup --summary --agent claudest standup --summary --hours 48st standup --summary --plain-textst standup --summary --jsonst standup --summary --jitst auth --from-ghst auth --token <token>st undo --yes --no-pushst undo --quietst redo --yes --no-push --quiet