Map related issues and pull requests
Trace related issues and pull requests from your terminal, check review status, find existing fixes, and choose what to review next.
issue-graph is a CLI that traces the GitHub issues and pull requests linked to an item. Use it to find existing fixes, check review status, and decide what to review next.
Install
You need Node.js 20 or later and the GitHub CLI.
To run the npm package without installing it, use npx issue-graph@latest --help.
Trace an issue
The report lists the linked issues and PRs, their current states, and possible follow-ups. To trace your own work, pass an issue URL or replace the repository and number.
See Get started for a walkthrough and example output.
Commands
| Task | Command | Guide |
|---|---|---|
| Capture a backlog and open its dashboard | issue-graph open owner/repo | Dashboard and saved queries |
| Trace linked issues and PRs | issue-graph graph <issue-or-pr> | Graph |
| Rank a live backlog by Heat | issue-graph rank owner/repo | Graph |
| Group related work with your agent | issue-graph cluster owner/repo | Agents and skills |
| Filter saved work and open its exact view | issue-graph query provider:scope --open | Dashboard and saved queries |
| Read Linear issue relationships | issue-graph linear <issue> | Linear |
| Count PRs by author and review state | issue-graph status | Status and history |
| Find backlog items to verify | issue-graph reconcile | Reconcile and plan |
| Choose the next review or investigation | issue-graph plan | Reconcile and plan |
config sets scoring defaults, dashboard and runs manage saved models, and auth status reports sign-in state. The Command reference lists every command and flag.
Use with agents and applications
Install the agent skill to run issue-graph from a coding agent. The library exposes the same collectors and renderers to your application code. Most commands can also print JSON for scripts and agents.
Review results
The CLI reads GitHub data and reports gaps caused by access errors or crawl limits. Check those gaps and inspect the linked code before you close an issue or merge a PR.
Graph and reconcile save local history by default. See Permissions and privacy for storage controls and the Command reference for flags and output formats.