Koragraph

in.koragraph由 koragraph.in 发布v0.1.4更新于 Oct 24, 2026

Local multi-repo code graph over MCP. Blast radius, call graphs, and memory anchored to code.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

在本地构建多仓库代码图谱与锚定代码的记忆,让助手追踪调用图、影响范围和过往修复。

可以做什么
Koragraph 会把你指定的每个仓库索引成一张本地图谱,涵盖服务、文件、端点、数据表以及它们之间真实解析出的调用关系,包括跨仓库的边。它通过 MCP 和命令行提供九个工具:blast_radius、explore、search_code、neighbours、changes_with、file_symbols、overview、recall 和 remember。结果返回 file:line 引用而不是粘贴源码,查询支持格式与 token 预算选项。记忆层把事实锚定到声明上,代码重命名后事实跟随,代码删除后事实退役。
适用场景
适合助手需要跨多个仓库工作时使用:编辑前查看某个文件的影响范围、查找调用者与被调用者、了解历史上一起变更的内容,或回忆过去的失败及其修复。主要面向 Claude Code、Cursor、Windsurf 等编码代理。
运行要求
以 stdio 本地进程方式运行,通过 npm 包 koragraphmcp 安装,需要 Node.js 和 npm。仓库需先用 ingest 命令建立索引,并在编辑器配置中注册该 MCP 服务器。未声明任何账号、API 密钥或环境变量。
安装前请注意
remember 是唯一的写入工具,会把持久事实保存到本地记忆库;README 还描述了 KORAINIT 步骤,会把现有的 CLAUDE.md 或 AGENTS.md 规则导入该记忆。索引会读取本机仓库内容,Claude Code 的 hook 可在每一轮把图谱片段推入上下文。依赖前请先确认会存储哪些内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Koragraph,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[koragraph]

The ultimate context layer for your AI coding agent.

Completely free. Runs entirely on your machine.

A local knowledge graph of every repo you point it at, plus a memory layer that knows when the code it remembers has changed.

[npm] [License: BUSL-1.1] [Node.js >=22] [MCP compatible] [Website]

Install

bash
npm install -g koragraphmcpkoragraph ingest /path/to/repo        # point it at as many repos as you likeclaude mcp add koragraph -s user -- koragraph mcp

koragraph doctor checks the whole chain and prints the exact line for any editor.

Two ways to use it from here: your agent calls the tools over MCP, or you (or a script, or a Claude Code hook) run them straight from the shell, for example koragraph explore "how does checkout work" or koragraph blast src/pay.js. Same graph either way.

Then run KORAINIT in your editor

This is the step that lights up the memory layer, so don't skip it. In your coding agent (Claude Code, Cursor, Windsurf, whatever you use), tell it:

"Read KORAINIT.md and follow it."

It imports your existing CLAUDE.md / AGENTS.md into koragraph's memory, anchored to the code each rule is about, flags any rule that points at code that's already gone, and finishes wiring koragraph into the session. Run it once per project.

Prefer zero setup? Hand the whole thing to your agent instead. Paste this from the repo you want indexed, and it installs, indexes, wires itself in, and runs KORAINIT for you:

text
Install koragraph and set it up for this repo, then report back:1. npm install -g koragraphmcp2. koragraph ingest .3. koragraph doctor, then run the `claude mcp add …` line it prints (or wire `koragraph mcp` into   my editor's MCP config).4. Find KORAINIT.md in the installed package (`npm root -g`, then koragraphmcp/KORAINIT.md) and   follow it: it imports my existing CLAUDE.md / AGENTS.md into memory, verified against the code.Report: nodes/edges indexed, whether the MCP connected, and KORAINIT's summary.

Works with

[Claude Code]    [Cursor]    [GitHub Copilot]    [Windsurf]    [Zed]    [Cline]    [Continue]    [OpenCode]    [Codex]    [Antigravity]


Adoption is highest on Claude Code: its hooks let koragraph put the graph in front of the agent on every turn, so it actually gets used instead of falling back to grep. Other editors reach koragraph over MCP, where the agent decides when to call it.


One map of everything you've built

Koragraph turns every repo you point it at into one live graph: a resolved structure, with an edge only where there really is one.

  • Every service, file, endpoint, and table.
  • The real calls between them, resolved against the syntax tree, not guessed by name.
  • The edges that cross a repo boundary, where single-repo tools go quiet.
[koragraph serve]
koragraph serve: code (cool nodes) and its memory (gold diamonds), one local page.

A memory that knows when the code changed

Everything your agent learns is saved locally, anchored to the exact declaration, not a line number. Rename the code and the fact follows; delete it and the fact retires. No CLAUDE.md to maintain, and it survives every upgrade.

  • Failures and their fixes. The fix surfaces before you hit the same wall twice.
  • Hazards, rules, corrections. Stated once, honoured every session after.
  • The "let's push this to Wednesday." Deferrals and half-finished intent, parked against the code and surfaced the moment you're back.

Measurably the most accurate, scored by the compilers

Every graph is graded by an independent compiler front-end (CPython ast, go/parser, Roslyn, syn, tsc, Ripper, php-ast, ctags, swiftc), never the tool under test. koragraph wins 34 of 39 language×plane cells, and leads precision on all 39.

Call-graph recall, the hardest plane:

LanguagekoragraphCodeGraphGitNexusGraphify
JavaScript87.639.441.945.1
TypeScript70.655.250.244.2
Python86.185.154.653.3
Go89.185.063.865.3
Java86.073.168.653.5
C#83.679.850.554.4
PHP88.988.077.131.7
Ruby51.541.328.740.8
Rust68.776.548.947.6

Reproduces from test/benchmark: pinned corpus, pinned competitor versions, pinned oracles. Full breakdown in test/benchmark/REPORT.md.


The tools

Nine tools, reachable two ways: as MCP tools in your editor, and as CLI commands in your shell. On Claude Code a hook also calls the CLI to push the relevant slice into context on every turn, so the graph gets used whether or not the agent thinks to ask. Every tool returns file:line, never pasted source. Exactly one writes.

ToolShellWhat it's for
blast_radiuskoragraph blast <files…>Run before editing. Everything that depends on this, across repos, and what has no test coverage.
explorekoragraph explore "<symbol or phrase>"Ranked declarations, source, callers, callees, in one call.
search_codekoragraph search <name>Find a name in the graph, not raw text.
neighbourskoragraph neighbours <symbol>Callers and callees of one symbol.
changes_withkoragraph cochange <symbol>What has historically shipped together with a symbol.
file_symbolskoragraph symbols <file>Declarations in one file.
overviewkoragraph overviewOrient on turn one, across every repo.
recallkoragraph recall <symbol>A past failure and its fix, a hazard, an open loop.
rememberkoragraph remember "<fact>"Save a durable, code-anchored fact. The only writer.

Every query verb takes --format compact|json|paths and --budget <tokens>, so a result can be trimmed before it ever enters an agent's context. Plus the operational CLI: ingest, serve, status, doctor, diff, trace, hooks, practice, report.


Languages

c · c++ · c# · go · java · javascript · php · python · ruby · rust · swift · typescript / tsx, fully resolved, tree-sitter throughout. Plus experimental kotlin · scala · elixir · solidity · vue · zig · objective-c · ocaml · rescript.


License

BUSL-1.1. Free to use, including at work. Converts to Apache-2.0 on the change date.


Built by Akhil Katakam · Ethan Faleiro  ·  [email protected]

来源:README.md,提交 c9ce746

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.4最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。