Terminal UI for keeping up with your open GitHub pull requests across repositories.
ghui gives you one keyboard-driven place to review PR details, inspect diffs, leave diff comments, manage labels, toggle draft state, merge, open PRs in GitHub, and copy PR metadata without leaving the terminal.
Homebrew is the recommended install path on macOS and Linux. It installs a standalone ghui binary, so you do not need Bun or npm at runtime.
brew install kitlangton/tap/ghuiUpgrade with:
brew upgrade ghuiOr install with npm:
npm install -g @kitlangton/ghuiThe npm package also installs a platform-specific binary package and does not require Bun.
Requirements:
- GitHub CLI installed and authenticated with
gh auth login
Run it from anywhere:
ghuiClone, install, and link:
git clone https://github.com/kitlangton/ghui.git
cd ghui
bun install
bun linkWith Nix flakes:
nix develop
bun install
bun run devGHUI_PR_FETCH_LIMIT: max PRs fetched, defaults to200GHUI_RUN_FETCH_LIMIT: max workflow runs fetched per PR, defaults to20
Example:
GHUI_PR_FETCH_LIMIT=100 ghuiYou can also copy .env.example to .env and edit the values locally.
ghui stores UI preferences in config.json under GHUI_CONFIG_DIR when set,
otherwise under the platform config directory. On Linux this is normally
~/.config/ghui/config.json.
Example:
{
"theme": "system",
"systemThemeAutoReload": true,
"showScrollbars": false
}systemThemeAutoReload defaults to false. Set it to true to let external
theme reload signals update the active system theme palette while ghui is
running.
Scrollable panes hide their scrollbar rails by default. Set showScrollbars
to true to display them while retaining the same keyboard and mouse scrolling
behavior.
Press e on a pull request (in the list, detail, or diff view) to hand it off
to your editor. ghui suspends the TUI, runs your command attached to the
terminal, and resumes when it exits.
Configure this in config.json:
{
"editorCommand": "tmux new-window -c {{repoPath}} 'gh pr checkout {{number}} && nvim -c \":DiffviewOpen {{baseRef}}...{{headRef}}\"'",
"repoPaths": {
"kitlangton/ghui": "~/code/ghui",
"kitlangton/*": "~/code/repos/kitlangton/*",
":owner/:repo": "~/src/github.com/:owner/:repo"
}
}repoPaths maps a repository to a local clone, matched in order: an exact
owner/repo key, then an owner wildcard (owner/*, where * becomes the repo
name), then the generic :owner/:repo template. ~ expands to your home
directory.
editorCommand is a shell command template with these substitutions:
{{repo}}— fullowner/repo{{owner}},{{name}}{{number}}— PR number{{headRef}}— PR head branch{{baseRef}}— base branch{{author}}{{url}}{{repoPath}}— resolved local path (requires a matchingrepoPathsentry)
If editorCommand is omitted, ghui falls back to $VISUAL/$EDITOR opening
the resolved repoPath. Some common recipes:
Press a on a pull request to open its GitHub Actions runs full-screen,
scoped to the PR's head commit:
- The runs list shows each workflow run with status, conclusion, duration, and age.
enterdrills into a run to see its jobs and steps; failing steps are easy to spot.n/pjump between failures,enterexpands a step,oopens the run in your browser,rrefreshes, andescwalks back out.
Requires the GitHub CLI (gh) the same as the rest of ghui; nothing extra to configure.
up/down: move selectionk/j: move selectiongg/G: jump to first or last pull requestctrl-u/ctrl-d: page up or downtab/shift-tab: switch PR queuectrl-p/cmd-k: open the command palette/: filterenter: expand details; normal PR actions still work while details are expandedesc: return from expanded details, leave diff/comment mode, or close modalr: refreshd: view stacked diff for all changed filesa: view this PR's GitHub Actions runs (jobs, steps, and failing logs)shift-r: review or approve the selected pull requestup/down/pageup/pagedown: move comment target while viewing a diffenter: open a commented diff line, or start a comment on an uncommented linev: start or clear a multi-line diff comment rangen/p: jump between diff comment threadsf: open the changed-files navigator while viewing a diffleft/right: choose the deleted or added side while in split diff comment mode[/]: switch files while viewing or commenting on a diffs: toggle draft or ready-for-review statem: mergex: close with confirmationt: choose a fixed theme, includingSystemto match your terminal colors; pressmin the theme picker to follow the OS light/dark appearance with separate theme choicesl: manage labelso: open PR in browsere: open PR in your editor (configurable; seeeditorCommand/repoPaths)y: copy PR metadataq: quit
Authored-only pull request views render compact one-line rows because the author identity is implied by the active view. Mixed-author views continue to show the author and branch metadata row.
Review submission:
- Press
shift-rto open the review modal. - Use
j/korup/downto choose Comment, Approve, or Request changes. - Press
enterto move to the optional summary area. - Press
enteragain to submit, orshift-enterto insert a newline. - Press
escfrom the summary to return to action selection; pressescfrom action selection to cancel.