GHA helps you review pull requests, understand local branches, and prepare releases. It combines GitHub, Git, and CI information into a summary with suggested next steps, so you can see what needs attention before acting.
GHA is built for coding agents and developers. Use readable output in your
terminal or add --format json for scripts and agents. It works alongside
git and the GitHub CLI (gh).
- Review a pull request's CI status, reviewers, unresolved threads, and risks.
- Inspect local branches and worktrees, including cleanup candidates.
- Preview branch, pull-request, and release changes before applying them.
- Give your coding agent the same workflows through a bundled GHA skill.
On macOS, install GHA through Homebrew:
brew install --cask raithlin/tap/ghaOn Linux, download a Debian/Ubuntu, Fedora, or Arch package from GitHub Releases. Linux and macOS archives are also available for amd64 and arm64.
Follow the package installation guide to verify your download, install a package, or upgrade GHA. For manual archive installation or building from source, follow the setup guide.
Install Git for local repository workflows and pushes. The
GitHub CLI (gh) is optional; GHA can reuse its login
for GitHub access. Release binaries do not require Go.
GHA is prerelease software. Review the release notes before upgrading.
If you use the GitHub CLI, sign in if you have not already:
gh auth loginFollow the prompts to sign in with the GitHub account you want to use.
GHA reuses your gh login. To use a token instead, set GHA_GITHUB_TOKEN.
Local inspection works without GitHub credentials. Public GitHub requests can
also work without authentication, subject to lower API rate limits. Private
repositories and operations that require authentication need a token or a
working gh login. See the authentication guide
for token setup and permissions.
Open a terminal in a GitHub checkout and start with:
gha prs --limit 10This lists up to ten open pull requests. For example:
Pull Requests (1 returned):
#42 Fix login redirect [open] by alex
The examples here use an illustrative PR. Your repository's numbers, titles, and results will differ. Pick a number from the list and inspect it:
gha review 42The review summary shows CI and merge readiness, outstanding reviews and threads, risk signals, and recommended next actions. An excerpt might look like:
Review readiness:
Mergeable: true
CI: failure
Review threads: none
Risk signals:
[high] ci_failure: one or more CI checks have failed
Recommended next actions:
fix_ci: one or more CI checks have failed
Here, GitHub can combine the branches, but CI has failed. Check the failing jobs before proceeding. Missing or unsupported signals appear as unavailable.
For an agent or script, request the same review as JSON:
gha review 42 --format jsonJSON excerpt for the same PR:
{
"schema_version": "v1",
"readiness": {
"mergeable": true,
"mergeable_state": "blocked",
"ci_status": "failure",
"review_threads_state": "none"
},
"recommended_actions": [
{
"action": "fix_ci",
"reason": "one or more CI checks have failed"
}
]
}Run gha <command> --help for command options.
| What you want to do | Command |
|---|---|
| Find PRs awaiting your review | gha prs --queue --limit 10 |
| Inspect another GitHub repository | gha prs --repo owner/repo --limit 10 |
| Inspect local branches | gha branches |
| See branches worth checking for cleanup | gha branches cleanup |
| Recognise merged PR branches after squash or rebase | gha branches cleanup --merged-prs |
| Preview cleanup of all eligible local branches and worktrees | gha branches cleanup apply --all --local --dry-run |
| List local worktrees | gha worktrees |
| Analyze repository history, storage, and large files | gha analyze |
| List recent published releases | gha releases --limit 10 |
| Follow a release workflow and hosted release | gha release status v1.2.3 --repo owner/repo --wait --timeout 10m |
| Inspect release assets and provider digests | gha release assets v1.2.3 --repo owner/repo --format json |
| Verify downloaded release assets | gha release verify v1.2.3 --repo owner/repo --output-dir ./verified-release --dry-run |
| Get a structured review for an agent or script | gha review 42 --format json |
Local branch information uses cached Git refs unless you explicitly request a refresh. Cleanup inspection lists candidates; it does not delete them.
Commands that change state execute by default. Preview their effects with
--dry-run first. To preview creating a local branch:
gha branch create feature/reviews --dry-runBranch mutation: create feature/reviews
Dry run: no changes were made.
Local: planned
Origin: not_requested
Local: planned shows the intended change. Origin: not_requested means this
operation targets only the local repository. The dry run creates no branch.
See the command guide for the full workflows, or the
PR worktree guide to work on a PR in an isolated
checkout and safely retire it afterward.
Install the bundled skill and guidance so your agent knows when and how to use GHA. Preview the files first:
gha agent install --dry-runThe preview lists destinations for detected agent setups. Apply it with:
gha agent installGHA supports Codex, Claude Code, Pi, OpenCode, GitHub Copilot, Gemini CLI,
Cursor, Hermes Agent, and OpenClaw. Use --agent codex,claude to select agents
explicitly.
See the agent setup guide for selection, installed-file checks, and removal. Agent setup is optional for terminal use.
Install a newer binary using the same method you used originally.
gha update refreshes installed agent guidance, not the GHA executable.
See updates and
uninstall for the steps.
- Setup guide — downloads, authentication, troubleshooting, and first use
- Command guide — commands, examples, and structured output contracts
- Contributing — report problems, suggest features, and submit changes
- Development — build, test, and contributor tooling
- Roadmap — current implementation and planned work
- Architecture · Interactive map — how GHA fits together
- Agent evaluation results — measured correctness and command effort, with limitations
- All documentation
