Documentation content

Install the CLI and trace your first issue

Install issue-graph from npm, sign in with GitHub CLI, trace your first issue, and save the result as JSON or an HTML explorer.

Prerequisites

  • Node.js 20 or later
  • GitHub CLI on your PATH
  • Read access to the repositories you want to query

Install from npm

npm install --global issue-graph@latest
issue-graph --help

To run the npm package without a global installation:

npx issue-graph@latest --help

In any CLI example, you can replace issue-graph with npx issue-graph@latest.

These docs follow the repository's main branch, which can be ahead of the published package. Run issue-graph --help to see the commands supported by your installed release. If a command is missing, install a release that includes it or build from source as described in Optional source development.

Authenticate GitHub

gh auth login
issue-graph auth status

issue-graph uses your GitHub CLI credentials. issue-graph auth status reports sign-in state without printing tokens. For GitHub CLI diagnostics, run gh auth status. To query a private repository, your account needs access to it and any SSO authorization the organization requires.

Trace an issue

Start with agent-browser issue #1113:

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

You can also pass the issue URL:

issue-graph graph https://github.com/vercel-labs/agent-browser/issues/1113 --depth 1 --budget 12 --no-save

The command prints a formatted report in a terminal and Markdown when piped. This example, captured on 2026-09-22, found a merged fix and two open follow-ups:

Issue or PRCaptured stateDescription
Issue #1113CLOSEDOriginal orphaned Chrome report
PR #1137MERGEDFix linked to #1113
Issue #1148CLOSEDRegression after the fix
Issue #1371OPENChrome Helper using high CPU
Issue #1607OPENGUI Chrome launch problem on macOS

Each run queries GitHub, so your results may differ. The flags limit the crawl to depth 1 and 12 fetched nodes, and --no-save skips saving a new snapshot. Before you act on the report, check its missing references and limits. See Graph for the capture details and crawl limits.

Save an explorer

To save the results, add -o with a .json or .html path:

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

Open graph.html in your browser. If you move it, move its sibling _next/ directory and font-LICENSE.txt with it. Export paths write files even with --no-save and replace existing files, so choose new filenames to keep earlier results.

To filter results from the CLI and get an exact dashboard link, save a model first:

issue-graph open vercel-labs/agent-browser --no-open
issue-graph query github:vercel-labs/agent-browser --state open --kind Issue --view rank --json --open

The first command collects data from GitHub within its crawl budget. The second reads the saved data offline, makes no GitHub requests, and returns a viewUrl for the matching dashboard view. See Dashboard and saved queries for Heat, clusters, replay, and scoring defaults.

Update

npm install --global issue-graph@latest

After updating, run issue-graph --help to see the commands the new release supports.

Troubleshooting

If your shell cannot find issue-graph, check that npm's global bin directory is on your PATH, or run the CLI with npx issue-graph@latest. For GitHub access errors, run gh auth status and check your repository permissions and SSO authorization.

Optional source development

To build from source, use pnpm and Node.js 20.19.x or 22.12 and later. Node.js 24 is recommended.

gh repo clone vercel-labs/issue-graph
cd issue-graph
pnpm install --frozen-lockfile
pnpm build
node dist/bin.js --help

Continue with Graph, Status and history, or Agents and skills.