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-ишью и пулл-реквесты, чтобы вы могли находить существующие исправления, проверять статус PR по автору и решать, что ревьюить дальше, прежде чем начинать работу.
Это CLI-инструмент или библиотека для импорта?И то и другое: он поставляется как npm CLI, а тот же пакет предоставляет не зависящее от рантайма ядро плюс отдельные транспорты shell (на базе gh) и HTTP для использования как библиотеки.
Как его запустить?Установите npm-пакет с Node.js 20 или новее (либо запускайте через npx без глобальной установки), затем используйте команды вроде 'issue-graph open owner/repo' или 'issue-graph graph owner/repo#123'.
Нужно ли что-то, кроме Node, для запросов к GitHub?Да, запросы к GitHub авторизуются через ваш существующий логин в GitHub CLI (gh); живые запросы также требуют, чтобы этот CLI был авторизован.
Всегда ли я получу полную картину ишью репозитория?Нет, каждый запуск опрашивает GitHub вживую, поэтому результаты могут меняться между запусками, а глубина, лимиты узлов, хабы и ограничения API на узел влияют на то, какая часть графа охвачена; перед тем как доверять отчёту, стоит проверить его на недостающие ссылки.
Работает ли он на Windows, как и на Mac/Linux?Да, это npm CLI на Node.js без упомянутых ограничений по ОС, так что он работает на Windows, macOS и Linux везде, где доступны Node 20+ и GitHub CLI.
Безопасно ли делиться экспортированным графом или дашбордом?Будьте осторожны: снапшоты, HTML-экспорты, логи и промпты кластеризации могут содержать приватные метаданные репозитория, и любой, кто откроет HTML-экспорт, сможет прочитать эти встроенные данные.
Что на самом деле показывает экспортированный дашборд?Это локальный HTML/граф-экспорт на Next.js, который вы открываете в браузере, чтобы изучать связи ишью/PR, фильтровать узлы, просматривать кандидатов на чистку и воспроизводить сохранённые виды запросов с их исходными весами скоринга.
Для чего нужна команда cluster?issue-graph cluster owner/repo печатает задачу кластеризации первопричин для ответа AI-агентом, а issue-graph cluster owner/repo --apply answer.json загружает ответ агента обратно в инструмент; --agent claude или --agent codex могут автоматически отправить задачу установленному headless-агенту.
Какие агенты для кодинга интегрируются с issue-graph?Проект поставляет устанавливаемый агентский скилл и документирует прямую поддержку Claude и Codex (через --agent claude или --agent codex), а установка скилла доступна через публичный skill.md или skills CLI.
Можно ли использовать issue-graph в своём приложении вместо CLI?Да, установка опубликованной библиотеки даёт ESM-импорты для ядра плюс транспорты shell (gh) и HTTP, что позволяет строить серверные интеграции со своей обработкой учётных данных.
Какие есть похожие проекты?jev-code-reviewer, openrig, adhdev, loop-engineering, perch, farol, agent-router, git-ai
Автор
vercel-labs
Размер
2.1 MB
Звёзды
192
Возраст
4 мес
Коммиты · 90 дней