Documentation content

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.

npm install --global issue-graph@latest
gh auth login

To run the npm package without installing it, use npx issue-graph@latest --help.

Trace an issue

issue-graph graph vercel-labs/agent-browser#1113 --depth 1 --budget 12 --no-save

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

TaskCommandGuide
Capture a backlog and open its dashboardissue-graph open owner/repoDashboard and saved queries
Trace linked issues and PRsissue-graph graph <issue-or-pr>Graph
Rank a live backlog by Heatissue-graph rank owner/repoGraph
Group related work with your agentissue-graph cluster owner/repoAgents and skills
Filter saved work and open its exact viewissue-graph query provider:scope --openDashboard and saved queries
Read Linear issue relationshipsissue-graph linear <issue>Linear
Count PRs by author and review stateissue-graph statusStatus and history
Find backlog items to verifyissue-graph reconcileReconcile and plan
Choose the next review or investigationissue-graph planReconcile 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.