# ezyang/ghstack

Submit stacked diffs to GitHub on the command line

Repository: https://github.com/ezyang/ghstack
Canonical: https://ross.abutalabs.com/products/ghstack
Language: Python
License: MIT
License Family: permissive
Last push: 2026-07-29T20:38:09+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 31, longevity 100
- inputs: {"age_days": 2879, "days_push": 35, "days_rel": 246, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1011, forks 84 (observed 2026-08-28T04:03:13.461553+00:00)

## What it is
ghstack is a command-line tool that submits stacks of Git commits to GitHub as separate, dependent pull requests. It supports updating, rebasing, and landing stacked diffs, with optional AI-generated PR descriptions via Claude or Codex.

## Use cases
- submit stacked diffs to github
- create one pull request per commit in a stack
- update a pull request by amending a commit
- land a stacked pull request from the cli
- manage dependent prs on github
- generate pr descriptions with claude or codex

## When to choose
- you develop features as a series of dependent commits and want reviewable per-commit PRs
- you work on large codebases like PyTorch where stacked diffs are the norm
- you want to update or rebase a whole stack with a single command

## When to avoid
- you only need simple single-branch pull requests via the GitHub UI
- you prefer tools like Graphite or sapling for stack management
- your workflow relies on merge commits, which ghstack does not support

## Facets
- artifact type: cli-tool
- maturity: active
- function: version-control, developer-tools, code-review, cli
- domain: developer-tools, version-control
- platform: cli, python, cross-platform
- tags: stacked-diffs, pull-requests, git-workflow, github, command-line

## Member repositories
- ezyang/ghstack (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.461553+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:50.378281+00:00, confidence not recorded.
  - readme: https://github.com/ezyang/ghstack (fetched 2026-08-28T04:03:13.461553+00:00, sha 02e70b1c7a5a)
  - registry_pypi: https://pypi.org/pypi/ghstack/json (fetched 2026-08-29T13:11:40.131036+00:00, sha 70ba989d8928)
- Data as of 2026-08-30T08:39:29.467469+00:00.
