issue-graph README

项目的 README,来自 github.com/vercel-labs/issue-graph。合并为一个 markdown 文件: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)

正在搜索数据库…

这是什么?issue-graph 是一个 CLI(也是库),可以追踪相互关联的 GitHub issue 和 pull request,帮你找到现有的修复方案、按作者检查 PR 状态,并在开始工作前决定接下来审查什么。
这是 CLI 工具还是我导入的库?两者都是:它以 npm CLI 的形式发布,同一个包还暴露一个与运行时无关的核心,以及可作库使用的独立 shell(基于 gh)和 HTTP 传输层。
怎么把它跑起来?在 Node.js 20 或更高版本上安装 npm 包(或通过 npx 运行而无需全局安装),然后使用“issue-graph open owner/repo”或“issue-graph graph owner/repo#123”这类命令。
查询 GitHub 除了 Node 还需要什么?需要,GitHub 查询通过你现有的 GitHub CLI(gh)登录进行身份验证;实时查询还要求该 CLI 已完成认证。
我总能得到一个仓库 issue 的全貌吗?不能,每次运行都是实时查询 GitHub,结果可能因运行而异,而且深度、节点上限、枢纽和每节点 API 限制都会影响图的覆盖范围;在信任报告之前,你应该检查其中缺失的引用。
它在 Windows 上和 Mac/Linux 一样能运行吗?能,它是一个基于 Node.js 的 npm CLI,没有提到操作系统限制,因此凡是 Node 20+ 和 GitHub CLI 可用的地方,Windows、macOS 和 Linux 上都能运行。
分享导出的图谱或仪表盘安全吗?要小心:快照、HTML 导出、日志和聚类提示可能嵌入私有仓库的元数据,任何打开 HTML 导出文件的人都能读到这些嵌入数据。
导出的仪表盘实际展示什么?它是一个由 Next.js 驱动的本地 HTML/图谱导出,在浏览器中打开即可探索 issue/PR 关系、筛选节点、审查待清理候选,并以原始评分权重回放已保存的查询视图。
cluster 命令是干什么用的?issue-graph cluster owner/repo 会输出一个根因聚类任务供 AI 智能体回答,issue-graph cluster owner/repo --apply answer.json 则把该智能体的答案加载回工具;--agent claude 或 --agent codex 可以自动把任务发送给已安装的无头智能体。
哪些编程智能体与 issue-graph 集成?该项目提供一个可安装的智能体技能,并记录了对 Claude 和 Codex 的直接支持(通过 --agent claude 或 --agent codex),技能安装可通过公开的 skill.md 或 skills CLI 完成。
我可以在自己的应用中使用 issue-graph 而不用 CLI 吗?可以,安装已发布的库后即可获得核心以及 shell(gh)和 HTTP 传输层的 ESM 导入,让你构建自带凭据处理的服务端集成。
大小
2.1 MB
星标
192
时长
4个月
提交 · 90 天