Repository navigation
Releases
Releases · malarinv/codegraph
v1.7.1
[1.7.1] - 2026-11-02
Fixes
- npm installs of this fork now resolve their platform bundle under the fork's own package scope: the
codegraphandrequireentries looked for@colbymchenry/codegraph-<platform>-<arch>regardless of which scope the packages installed from, so on GitHub Packages as@malarinv/codegraphevery command reported the bundle "missing" and then failed to fetch a matching upstream release. Both now derive the scope and repository from the installed main package's ownpackage.json, with upstream's remaining the fallback, and the self-heal download points at the fork's own releases. - The self-heal fallback and its guidance lines no longer name the wrong owner when the packages come from a fork, so
npm i -g <pkg> --registry=…in the fix-it text points at a package that exists.
v1.7.0
[1.7.0] - 2026-11-02
Security
- CodeGraph's refusal to use a sensitive folder such as
~/.ssh,~/.config,/etcorC:\Windowsas a project can no longer be sidestepped: a link or junction that leads to one, a differently capitalized name on Windows and macOS, a\\?\spelling on Windows, and a path to a missing folder inside one are now refused like the folder itself. Before, any of these let an AI agent's query read the files inside. Thanks @mixxer for finding it. - The MCP server no longer uses a sensitive folder such as
~/.ssh,~/.configor/etcas a session's default project, whether the folder came from your AI agent's workspace, the folder the server was started in, or--path. Before, only a folder an agent asked for by path was refused, so a session started in one that held an index answered from the files inside and kept it synced; now that session has no default project, and the agent can still query any other project by path.
New Features
codegraph files --format packageandcodegraph_fileswithformat: "package"now list a project's files by the package that owns them, the nearestpackage.jsonorcomposer.jsonabove each file that names one, so a monorepo splits into its workspace members with no setup and files nothing claims get a section of their own (colbymchenry#1871). Thanks @LuisAlbertoMK.- In C#, a MediatR
SendorPublishnow reaches a handler written against the project's own interface, likeICommandHandler<T>orIQueryHandler<T, R>, or one from a package, such as the Mediator library or Ardalis.SharedKernel, with nothing to configure. A command built by a mapper, likemapper.Map<CreateBooking>(request), is read as what it is, and two solutions kept side by side in one repository no longer link to each other's handlers. Thanks @PressXtoChris. codegraph files --jsonnow marks each file as a test file or not,--testsand--no-testsfilter the list in any format, andcodegraph node --filesays "test file" in its header, so your own tooling can ask CodeGraph instead of keeping a copy of its naming rules. Thanks @maxmilian. (colbymchenry#1877)codegraph installnow sets up IBM Bob, for Bob IDE and Bob Shell: it adds the CodeGraph MCP server to~/.bob/settings/mcp.json, or to.bob/mcp.jsonin a project. Thanks @QuentinDstl.- ASP.NET Razor views now link to the JavaScript their inline
<script>blocks call, so a shared helper used from.cshtmlfiles lists those views among its callers, with@Model,@ifand other Razor syntax inside a script read for what it is.codegraph_explore's blast radius also gives a symbol's views (.cshtml,.razor,.vue,.svelte,.astro) a list of their own, so same-language callers can't crowd them out. Thanks @Johnny-Tsai. codegraph installnow sets up Factory Droid: it adds the CodeGraph MCP server to~/.factory/mcp.jsonor a project's.factory/mcp.json, plus a short CodeGraph section inAGENTS.md, and Droid picks it up without a restart. Thanks @Rubyj and @KrystianMarek.codegraph installnow sets up Windsurf: it adds the CodeGraph MCP server to~/.codeium/windsurf/mcp_config.json, which Devin, Windsurf's new name, imports by default. Thanks @SEPURI-SAI-KRISHNA.- Tauri apps now connect across the line between the frontend and Rust:
codegraph_explore, callers and impact followinvoke('save_file'), tauri-specta's typedcommands.saveFile()and your own wrappers aroundinvoketo the#[tauri::command]function that answers, and follow events between Rust and the frontend, rawemit/listenand tauri-specta's typed events alike. Thanks @vdavid and @nk33-dev. codegraph installnow sets up Qwen Code: it adds the CodeGraph MCP server tosettings.json, keeping any comments in that file, plus a short CodeGraph section inQWEN.md, and it can auto-allow CodeGraph's tools as it does for Claude Code. Thanks @ZevGit and @LiangshouX.codegraph installnow sets up DeepSeek Harness (dsh): one entry in~/.dsh/cordis.patch.ymlcovers every profile, a short CodeGraph section goes in~/.dsh/AGENTS.md, and an entry you wrote yourself is left as it is. Thanks @hfldqwe.codegraph installnow sets up Grok Build: it adds the CodeGraph MCP server to~/.grok/config.tomlor a project's.grok/config.toml, plus a short rule inrules/codegraph.md. Thanks @ximing.codegraph installnow sets up Kimi Code: it adds the CodeGraph MCP server to~/.kimi-code/mcp.jsonor a project's.kimi-code/mcp.json, plus a short CodeGraph section inAGENTS.md. Thanks @zhouxbalabala.codegraph installnow sets up the Qoder CLI: it adds the CodeGraph MCP server to~/.qoder/settings.json, or to.qoder/settings.local.jsonin a project. Thanks @greatjackzhou.codegraph installnow sets up Pi: it adds the CodeGraph MCP server to~/.pi/agent/mcp.jsonor a project's.pi/mcp.json, plus a short CodeGraph section inAGENTS.md, andcodegraph_explorestays on the model's tool list. Thanks @roymina.- CodeGraph's MCP server now gives agents and editors its display name and icon, so one that shows them, like the Codex app, lists CodeGraph by name and logo instead of a plain
codegraph. Thanks @fedosov. - Commands that only read the index, like
codegraph callers,query,node,impactandexplore, now start about twice as fast and use less memory, because they no longer load the code that builds an index; the MCP server's first handshake is faster for the same reason, and so is your agent's prompt hook. codegraph statusnow shows how many of a language's files yielded symbols when that isn't all of them, and warns when none did, so a parser that isn't working no longer looks healthy, andcodegraph status --strictexits non-zero on that or on an index that's missing, unfinished or out of date, so packaging and CI can gate on it (colbymchenry#1658). Thanks @ferrine.- Your agent now hears when a project's index predates the engine it's running on: after an upgrade, its first answer for that project warns once, naming the version that built the index and
codegraph index, which stays your call since nothing rebuilds on its own, andcodegraph_statusalways shows both versions. Thanks @cbeaulieu-gt. (colbymchenry#1852) codegraph serve --mcp --no-telemetryturns telemetry off for one MCP server entry, so a shared MCP config can opt out without an environment variable; a background daemon that's already running for the project keeps its own setting until it exits. Thanks @danusha2345. (colbymchenry#1908)codegraph implementations <name>lists the types that implement or extend a trait, interface or class, with each one's file and line, how it's tied to the type, and whether it's test code, a Rust mock in a#[cfg(test)]module included;--depthfollows subclasses of subclasses. Thanks @danusha2345. (colbymchenry#2833)- Indexing is faster, by the most on C and C++ and a good deal on Rust, Java and TypeScript: resolving a call no longer repeats so much work for each name it looks at.
- Indexing a small project takes much less CPU and memory: CodeGraph starts only the threads a project needs, and a file that's slow to parse no longer holds up the others.
- Set
CODEGRAPH_SYNTH_MIN_INTERVAL_MSto limit how often live syncs rebuild the callback and event links across the whole project, which on a large TypeScript or Vue repo otherwise happens on almost every edit; a rebuild that's put off runs when the interval is up even if no edit follows, and until then those links can be that far behind your code. A fullcodegraph indexis never held. Thanks @danusha2345. (colbymchenry#2911) - Indexing a large project takes about a quarter less memory at its peak.
- Indexing a large project runs fewer threads and finishes as soon, with less CPU and memory.
- For contributors, the test suite now runs on Vitest 4 and working in this repository needs Node 22.12 or newer; installing and using CodeGraph doesn't change. Thanks @danusha2345.
- New
codegraph cyclescommand lists the groups of files that import each other in a circle, as text or--json, and exits 1 when it finds any, so it works as a pre-commit or CI check (colbymchenry#888). Thanks @jiangyq9 and @goutham80808. codegraph init --local-onlykeeps.codegraph/out of git entirely, so nothing of CodeGraph's shows ingit status, and it works on a project that's already set up, leaving a.codegraph/.gitignoreyou've edited or committed alone (colbymchenry#910). Thanks @jadchene, @jiangyq9, @Wood-Q and @walterf3.- CodeIgniter 3 projects are now understood: every controller method and
routes.phpentry becomes a route, HMVC modules included, and calls through what$this->loadloads, like$this->user_model->find($id), link to the method they reach, socodegraph_explorecan follow a request from its route through the model and into the view. Thanks @darkspock. - In Drupal, services from
*.services.yml, plugin definitions (attributes and docblock annotations, a contrib module's own plugin types included) and#[Hook]methods are now part of the graph, and a call through\Drupal::service('x')or$container->get('x')links to the method on that service's class. Thanks @mikedamoiseau and @marcelovani. - In Next.js, a route now links to the
proxy.tsormiddleware.tsthat runs before it, followingconfig.matcher, socodegraph impact,codegraph callersandcodegraph_exploreshow which routes a change to it reaches. Thanks @RIGOandre.
Features
- Kubernetes, Flux, Crossplane and Backstage catalog manifests are now part of the graph. Each YAML document that declares an
apiVersionand akindbecomes a node named after both —HelmRelease/consensus,Kustomization/kustomization,Record/www-dev-a-record— socodegraph explore, search and impact can answer questions about manifests the way they do about code. Edges are added only for the keys that point at another document, such as a HelmRelease'ssourceRefanddependsOn, a Kustomization'sspec.path, its `resour...