issue-graph README

The project's README from github.com/vercel-labs/issue-graph. As one markdown file: README.md.

issue-graph

Find related issues and pull requests before you start work. For humans and agents.

Vercel Labs Experiment npm version: issue-graph License: Apache-2.0

issue-graph: open issues and pull requests from vercel-labs/portless grouped into five root-cause clusters, such as proxy port allocation and TLS trust

issue-graph reads GitHub issues and pull requests, Linear issues, Jira issues, GitLab issues and merge requests, or YouTrack issues, and follows the references between them: closing links, mentions, cross-references, Linear relations, and Jira, GitLab, and YouTrack issue links. It shows existing fixes, competing PRs, and open follow-ups as one graph, groups open work into clusters, and opens the result in a local dashboard. It only reads from GitHub, Linear, Jira, GitLab, and YouTrack.

Install

Install the CLI with Node.js 20 or later:

npm install --global issue-graph@latest

To try it without installing, run npx issue-graph@latest --help. GitHub queries use your GitHub CLI login, so run gh auth login first if gh auth status shows no account.

Quick start

From a GitHub repository checkout:

issue-graph
# -> captures open issues and PRs, then opens the dashboard

Pass a repository, or one or more items, to choose the scope:

issue-graph open vercel-labs/portless
issue-graph graph vercel-labs/agent-browser#1113 --depth 1

For Linear, connect once in the browser, then capture an issue neighborhood or a whole project:

issue-graph linear login
issue-graph linear ENG-123 --workspace your-workspace --open
issue-graph linear --project <project-uuid> --open

For Jira, sign in to the Atlassian Teamwork Graph CLI with twg login, then read an issue neighborhood:

issue-graph jira ABC-123 --site your-site --open

For GitLab, sign in with the GitLab CLI through glab auth login, then read the neighborhood of an issue or merge request on gitlab.com or a self-managed host:

issue-graph gitlab https://gitlab.example.com/group/project/-/issues/123 --open

For YouTrack, set YOUTRACK_URL to your base URL and YOUTRACK_TOKEN to a permanent token, then read an issue neighborhood:

issue-graph youtrack ABC-123 --open

The full walkthrough is in Get started.

How it works

Each run starts from seeds, such as open issues, a label, or specific items, and follows references up to a depth and node budget you set. An item with many references is fetched but not expanded further. The report lists missing references, failed reads, and crawl limits, so you can see what the graph does not cover.

The dashboard groups items into connected components by default. Your agent can propose root-cause clusters instead: issue-graph cluster prints the task, and cluster --apply loads the answer. The dashboard has four views: Explore, Impact, Swarm, and Rank. Rank orders open work by Heat, a weighted score of discussion activity with weights you control.

Runs save locally under ~/.issue-graph/, and issue-graph dashboard shows every saved run with a project switcher. issue-graph query filters a saved capture from the CLI and returns a link to the exact dashboard view. See Dashboard.

For AI agents

Install the agent skill from this repository:

npx skills@latest add vercel-labs/issue-graph

The skill tells the agent to load the guidance bundled with the installed CLI, so the instructions match its version:

issue-graph skills get core

Plan, query, reconcile, and status print JSON in a pipe, and issue-graph schema prints the command contract. See Agents.

Commands

Run issue-graph --help for the full list, or issue-graph <command> --help for one command.

Group Commands Docs
Map work open, graph, linear, jira, gitlab, youtrack Graph, Linear, Jira, GitLab, YouTrack
Prioritize rank, cluster, reconcile, plan Backlog, Agents
Dashboard dashboard, query, runs, config Dashboard
Pull requests status Status
Setup auth, schema, skills Reference

Library

Install the package as a dependency to use the graph core from your own code:

npm install issue-graph@latest

The core runs in any JavaScript runtime. Transports read GitHub through gh, or through fetch with a token. See Library.

Limits and privacy

Depth, node budgets, permissions, and API limits affect coverage. Check the linked code and current behavior before you close an issue or merge a PR.

Saved runs, HTML exports, and cluster prompts can contain private repository metadata, and anyone with an export can read the data embedded in it. See Security and vulnerability reporting.

Development

This repository is a pnpm workspace. The CLI and library are in src/, the dashboard is apps/dashboard/, and the docs site is apps/docs/. Use Node.js 20.19.x or 22.12 and later with pnpm:

pnpm install --frozen-lockfile
pnpm build
pnpm check
pnpm test:package

Contributing covers setup, the docs and dashboard dev servers, and the release process. AGENTS.md lists what to update with each change.

Documentation

License

Apache-2.0

issue-graph (vercel-labs/issue-graph)

Searching Database…

What is this?issue-graph is a CLI (and library) that traces linked GitHub issues and pull requests so you can find existing fixes, check PR status by author, and decide what to review next before starting work.
Is this a CLI tool or a library I import?Both: it ships as an npm CLI, and the same package exposes a runtime-agnostic core plus separate shell (gh-based) and HTTP transports for use as a library.
How do I get it running?Install the npm package with Node.js 20 or later (or run it via npx without a global install), then use commands like 'issue-graph open owner/repo' or 'issue-graph graph owner/repo#123'.
Do I need anything besides Node to query GitHub?Yes, GitHub queries authenticate through your existing GitHub CLI (gh) login; live queries also require that CLI to be authenticated.
Will I always get the full picture of a repo's issues?No, each run queries GitHub live so results can change between runs, and depth, node caps, hubs, and per-node API limits affect how much of the graph is covered; you should inspect the report for missing references before trusting it.
Does it run on Windows as well as Mac/Linux?Yes, it's a Node.js-based npm CLI with no OS restrictions mentioned, so it runs on Windows, macOS, and Linux wherever Node 20+ and the GitHub CLI are available.
Is it safe to share an exported graph or dashboard?Be careful: snapshots, HTML exports, logs, and cluster prompts can embed private repository metadata, and anyone who opens an HTML export can read that embedded data.
What does the exported dashboard actually show?It's a local Next.js-powered HTML/graph export you open in a browser to explore issue/PR relationships, filter nodes, review cleanup candidates, and replay saved query views with their original scoring weights.
What is the cluster command for?issue-graph cluster owner/repo prints a root-cause clustering task for an AI agent to answer, and issue-graph cluster owner/repo --apply answer.json loads that agent's answer back into the tool; --agent claude or --agent codex can send the task to an installed headless agent automatically.
Which coding agents integrate with issue-graph?The project ships an installable agent skill and documents direct support for Claude and Codex (via --agent claude or --agent codex), with skill installation available through the public skill.md or the skills CLI.
Can I use issue-graph inside my own app instead of the CLI?Yes, installing the published library gives you ESM imports for the core plus shell (gh) and HTTP transports, letting you build server-side integrations with your own credential handling.
Size
2.1 MB
Stars
192
Age
4mo
Commits · 90 Days