$npx skillfedfor your agent

ghstack

Stack diff support for GitHub

With conditionsPyPI Software DevelopmentReleased Jul 2026169.9K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ghstack-0.17.0-py3-none-any.whl
v0.17.0 · released 2026-07-29 · Python <4.0.0,>=3.9.1 · 6 runtime deps: aiohttp, importlib-metadata, requests, typing-extensions, click, flake8

Yes, if you regularly work with feature branches that benefit from logical subdivision into reviewable chunks and want to avoid manual PR choreography. The tool is actively maintained, has no known vulnerabilities, and low install friction. Not necessary for simple single-commit workflows or teams that prefer squash-and-merge strategies.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9.1 or later.
  • Needs a GitHub personal access token with public_repo scope and write permission to the target repository.
  • Low install friction with a pure Python wheel.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.

last release 2026-07-29 (16 days) · last repo commit 2026-07-29 · 1,008 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 169,870 downloads/mo, #10,406 on PyPI

Verify before relying

pip install ghstack

# Configure with GitHub token
echo '[ghstack]\ngithub_oauth = your_token\ngithub_username = your_username' > ~/.ghstackrc

# Create commits on a branch, then:
ghstack
  • Whether the aiohttp, requests, click, and flake8 dependencies are all required at runtime or if some are optional/development-only.
  • Whether the tool works with GitHub Enterprise or only github.com.
  • Performance characteristics when working with very large stacks (number of commits).
Same gist for agents: .md · .json

What it is and what it does

ghstack is a command-line tool that transforms a linear stack of local Git commits into a series of interdependent pull requests on GitHub. Instead of manually creating and managing multiple PRs that depend on each other, you prepare commits sequentially on a branch and run ghstack once; it pushes each commit as a separate PR with synthetic base and head branches, automatically tracking interdiffs on subsequent runs. This workflow is particularly useful for large features or refactorings that are easier to review in logical chunks but need to land as a coherent stack.

The tool manages three branches per commit (base, head, and orig), handles rebasing and modification of commits in the stack, and provides a `ghstack land` command to merge stacked PRs in the correct order. It integrates with GitHub's API via a personal access token and supports optional AI-powered commit message generation via Claude or Codex. The package is actively maintained, has low installation friction, and carries no known security vulnerabilities.

Use it for

  • Land a large refactoring as a series of logically independent but stacked PRs for easier review.
  • Update an existing stacked PR by editing the commit and running ghstack again to push the interdiff.
  • Rebase a local commit stack against the upstream main branch while preserving ghstack PR metadata.
  • Automate PR description generation using Claude or Codex when pushing stack updates.
  • Merge a completed stack of PRs in dependency order using ghstack land instead of GitHub's UI.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you regularly work with feature branches that benefit from logical subdivision into reviewable chunks and want to avoid manual PR choreography.

The tool is actively maintained, has no known vulnerabilities, and low install friction. Not necessary for simple single-commit workflows or teams that prefer squash-and-merge strategies.

Install

ghstack on PyPI

Before you install

Low install friction with a pure Python wheel. Active maintenance with a recent release (16 days old) and steady repository activity. Requires Python 3.9.1 or later.

Requires Python 3.9.1 or later. Needs a GitHub personal access token with public_repo scope and write permission to the target repository.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.

Quickstart

pip install ghstack

# Configure with GitHub token
echo '[ghstack]\ngithub_oauth = your_token\ngithub_username = your_username' > ~/.ghstackrc

# Create commits on a branch, then:
ghstack

Verify before relying

  • Whether the aiohttp, requests, click, and flake8 dependencies are all required at runtime or if some are optional/development-only.
  • Whether the tool works with GitHub Enterprise or only github.com.
  • Performance characteristics when working with very large stacks (number of commits).

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0.0,>=3.9.1
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
aiohttpimportlib-metadatarequeststyping-extensionsclickflake8
MaintenanceActively maintained 16 days since the last release
Last repo commit
First released
Downloads169,870 / month, #10,406 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: ghstack-0.17.0-py3-none-any.whl

Tags

Capabilities
stack pull requests githubgit commit stack automationgithub stacked diffsmulti-commit pr workflowdependent pull requests
Topics
git-workflowgithub-automation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “stack pull requests github”

  • ghstackghstack submits stacks of local Git commits to GitHub as separate…
  • github3.pyProvides a Python wrapper around the GitHub API (v3) to…
  • galaxy-release-utilProvides command-line scripts to automate Galaxy release workflows,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also mergify-cli · pierre-storage · ghp-import · pre-commit-hooks · jupyterlab-git · django-linear-migrations · gitchangelog · reno · release-tag · whatthepatch