codegraph: a Chinese translation of the 79,230-star code graph tool for AI agents
codegraph-cn is a Chinese translation of colbymchenry/codegraph, published on 2026-11-30. The original repository has 79,230 stars and is written primarily in TypeScript under the MIT license. The Chinese version is new and has no stars of its own yet. What it does have is a translated README plus a short Chinese quick-start section that the original does not include.
That quick-start section is the part worth examining, because the original README's install flow has a few steps that are easy to get wrong.
What codegraph actually does
codegraph builds a local code knowledge graph for your project and exposes it to AI coding agents over MCP. The official one-line description states it covers Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, CoPilot, and Hermes Agent, with the goal of fewer tokens and fewer tool calls, running 100% locally. The core is written in Rust, and the README claims it is "the fastest full code graph."
It is not an editor and not an agent. It sits behind whichever agent you already use, and answers queries about your codebase from a pre-built index instead of making the agent read files one at a time.
The install sequence, and where people get stuck
The CLI installer does not require Node.js. It downloads a standalone package with its own runtime, no native build step:
# macOS / Linux curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh # Windows (PowerShell) irm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iex If Node is already present, npm i -g @colbymchenry/codegraph also works. Note the devEngines field in package.json requires Node >=22.12.0, but that is a development-side constraint; the README says the npm install "works on any version."
After installing, open a new terminal. The installer only puts codegraph on PATH and does not modify the current shell, so the command will not resolve in the window you ran the script from. Then:
codegraph install This step wires the MCP server into your agent. It does not index anything. The Chinese quick-start calls this out explicitly, because it is the most common misunderstanding: people run codegraph install, assume they are done, and wonder why their agent has no graph to query.
Indexing is per project:
cd your-project codegraph init codegraph init creates a local .codegraph/ directory and builds the full graph in the same step. Every project needs its own run.
Upgrades go through codegraph upgrade, with --check to test for a new version or codegraph upgrade <version> to pin one.
Four failure modes the Chinese guide names
The translated README body is faithful to the original. The quick-start section is additive, and it lists problems that the original documentation leaves implicit:
- Command not found after install. Covered above. New terminal, every time.
-
codegraph installis not indexing. It only connects the MCP server.codegraph initis the indexing step. - Stale index after an upgrade. Projects indexed with an older version will show a warning in
codegraph statusand in the agent. Re-runcodegraph indexin that project to rebuild. -
install.shon Windows. Running the shell script under Git Bash or MSYS fails outright and tells you to use the PowerShell script instead.
None of these are exotic. They are the ordinary friction of a two-stage install plus per-project state, and having them written down in Chinese shortens the debugging loop for readers who would otherwise be translating error messages on the fly.
Platform and dependency notes
The README badges list Windows, macOS, and Linux. install.sh handles Darwin and Linux directly; Windows goes through the PowerShell path. Hardware requirements are not stated in the source material, so there is nothing to quote there.
Network access matters: the install script pulls the standalone package from GitHub Releases. On mainland Chinese networks that download may need a proxy or mirror. The Chinese guide mentions this rather than leaving it as a surprise.
The CLI version is 1.6.6 according to package.json.
Why a translated README is worth a separate repository
Tooling documentation is where non-English speakers lose the most time, and it is rarely the concepts that cause trouble. It is the small print: which command does what, why a binary is not on PATH, why an index went stale. A translated README that preserves the original structure, keeps README_en.md alongside for cross-checking, and adds a task-oriented entry point addresses exactly that layer.
The repository also invites correction. Translation errors go through Issues or PRs, and the original English README stays in the tree, so a reader can always verify against the source. That is the right arrangement for a translation of a fast-moving project: the translation is a convenience layer, not a fork of the behavior.
The Chinese version is at https://github.com/yangshun2005/codegraph-cn. The original is at https://github.com/colbymchenry/codegraph, with docs at https://colbymchenry.github.io/codegraph/.
One caveat on my end: I have read the translated README and the quick-start notes, but I have not run codegraph against a large codebase myself, so I cannot speak to index build times or how much the token savings amount to in practice. The claims about speed and token reduction come from the project's own documentation.
Chinese documentation: https://github.com/yangshun2005/codegraph-cn
I'm an independent enterprise AI delivery consultant — private LLM deployment, RAG, agent workflows, AIOps. If your team is stuck somewhere in that stack, my inbox is open.