Releases: colbymchenry/codegraph
Releases · colbymchenry/codegraph
v0.9.7
[0.9.7] - 2026-05-28
New Features
- Go: gRPC interface stubs now connect to their hand-written implementation, so callers, callees, impact, and trace land on the real method instead of an empty generated stub.
- Generated files (protobuf, gRPC stubs, mocks, build output) now rank last in search, trace, and explore, so results land on your real implementation instead of an auto-generated placeholder.
- When
codegraph_tracecan't find a static path (a dynamic-dispatch break), it now inlines both endpoints' source, callers, and callees in one response, so the agent gets the full picture without a flurry of follow-up calls. - Trace now picks the right endpoints in large multi-module repos by preferring symbols that share a directory, instead of grabbing an arbitrary same-named symbol from an unrelated module.
- Test files are now deprioritized in
codegraph_explore(Go, Ruby, JS/TS, Java/Kotlin/Scala), so the explore budget goes to your real implementation source. - Small projects (under ~500 files) now resolve flow questions in fewer MCP calls, with a leaner tool surface and tuned context and explore output sized for the project.
codegraph_contextnow auto-traces flow questions like "how does X reach Y" or "trace the path from A to B", splicing the trace into the response so you don't need a separatecodegraph_tracecall.codegraph_contextnow inlines a URL-to-handler routing table and the source of your main routes file for routing questions on small projects, so you don't have to go readroutes.rborweb.phpyourself.codegraph_contextsearch now boosts results in the directory of a project's core framework file, so a small same-named extension file no longer outranks the actual framework core.- Interface-to-implementation linking now works for C#, TypeScript, JavaScript, Swift, and Scala (previously Java/Kotlin only), so investigating an interface method surfaces its concrete implementations.
- MCP tool descriptions are now shorter, trimming per-session overhead while keeping the steering guidance.
- Java and Kotlin imports now resolve by fully-qualified name, so same-name classes in different packages are told apart correctly in multi-module Spring and Android codebases, including across the Java/Kotlin interop boundary.
- Java and C# anonymous classes (
new T() { ... }) and their overridden methods are now indexed as real class nodes, so an agent sees those hidden overrides in its trail without a Read. - The installer no longer writes a duplicate
## CodeGraphinstructions block into your agent's instructions file (CLAUDE.md,AGENTS.md,GEMINI.md, Cursor's.cursor/rules/codegraph.mdc, or Kiro's steering doc) — the MCP server is now the single source of truth, and re-runningcodegraph installorcodegraph uninstallstrips a block a previous version left behind (#529). If you added your own notes inside theCODEGRAPH_START/CODEGRAPH_ENDmarkers, move them outside the markers first, since the whole marked block is removed.
Fixes
- MCP tools no longer return results for files that were deleted while no server was running — the first query of a session now waits for the catch-up sync, so you get the correct index instead of stale rows.
- Windows: black console windows no longer flash on every file save or MCP reconnect (#485, #510, #530).
codegraph indexandinit -inow report the true edge count in their summary, instead of undercounting by missing resolution and synthesizer edges.
v0.9.6
[0.9.6] - 2026-05-27
New Features
- Enterprise Spring and MyBatis flows now trace end-to-end: MyBatis XML mappers are indexed and linked to their Java mapper interfaces, Spring
@Valueand@ConfigurationPropertiesreferences resolve to the matching keys in yourapplication.yml/.propertiesconfig (including relaxed kebab/camel/snake binding), and field-injected concrete beans likethis.field.method()resolve through to their implementation (#389). - Gemini CLI (and the rebranded Antigravity CLI) plus the Antigravity IDE are now supported by
codegraph install, detected and configured out of the box with sibling settings and MCP servers preserved across re-installs (#399). - Kiro (CLI and IDE) is now supported by
codegraph installon macOS, Linux, and Windows, with its own steering file so it loads CodeGraph guidance naturally (#385).
Fixes
- C/C++: bare
#include "header.h"directives now connect to the real header file instead of a phantom import, so includes show up as true file-to-file edges; system and stdlib headers are filtered out so they don't false-resolve (#453). - Java/Kotlin: imports now disambiguate same-name classes across modules using the fully-qualified import path, so callers, callees, and trace land on the right class in multi-module projects instead of guessing by file proximity (#314).
- TypeScript:
typealiases with object shapes (including function-typed members and intersection types) now surface their members in the graph, so a call likehandle.stop()resolves to the alias member instead of an unrelated look-alike class in a sibling directory (#359). - C#: parameter, return, property, and field types now produce reference edges, so callers and callees on a DTO or service type return real results instead of nothing (#381).
- Go: cross-package qualified calls like
pkg.Func()now resolve to the right package by reading yourgo.mod, so callers, callees, impact, and trace return complete results on Go monorepos instead of almost nothing (#388). codegraph_filesnow returns the whole project when an agent passes a root-ish path like/,.,./,"", or a Windows-style\, and subdirectory filters like/src,./src, andsrc\componentsall resolve correctly instead of returning "No files found" (#426).- The file watcher no longer marks edited files as fresh when another process holds the index lock, so the per-file staleness signal stays accurate until the edit is actually indexed (#449).
- TypeScript/JavaScript: calls inside top-level variable initializers (
const token = getToken()) and inside inline object-literal methods are no longer dropped, so they show up in callers as expected, including in Vue single-file components (#425). - Watch sync no longer aborts with a
FOREIGN KEY constraint failederror in a long-running daemon; a stale lookup now drops a single edge instead of failing the whole sync (#455). - Hermes:
codegraph install --target hermesno longer corrupts~/.hermes/config.yaml, correctly handling PyYAML's block-style lists and re-installing cleanly even on an already-corrupted file (#456). - NestJS: route prefixes from
RouterModule.register([...])(including nestedchildren) now propagate to controller routes, so a route shows up at its full path likeGET /admin/usersinstead ofGET /(#459). - C++: callers now resolve through typed member pointers such as
m_alg->Processing(), including out-of-line method definitions and the common case of two classes sharing a method name (#445, #454).
v0.9.5
[0.9.5] - 2026-05-25
New Features
- Running multiple AI agents in the same project no longer multiplies the cost: two Claude Code windows, a worktree agent, or parallel sub-agents now share one background daemon per project with a single file watcher, SQLite connection, and tree-sitter warm-up instead of N independent copies (#411).
- The daemon runs detached so it outlives any single session, meaning closing one editor or terminal never severs the others; it lingers briefly after the last client disconnects so back-to-back sessions skip the startup cost, then exits and cleans up after itself. Tune the idle wait with
CODEGRAPH_DAEMON_IDLE_TIMEOUT_MS(default five minutes). - Set
CODEGRAPH_NO_DAEMON=1to opt out and get one independent server per client, handy for debugging or sandboxes that disallow local sockets; the daemon is also version-pinned, so upgrading CodeGraph never mixes versions over the connection. - CodeGraph responses now tell the agent which files are pending re-index: when the watcher has seen edits since the last sync, tool responses add a warning banner naming the stale files and their state so the agent reads just those directly while trusting the rest, with zero cost when nothing is pending (#403).
CODEGRAPH_WATCH_DEBOUNCE_MSlets you tune the file-watcher quiet window (default 2000ms) for workspaces with bursty writes like format-on-save chains or large generated outputs, without touching your agent's command line (#403).- Objective-C indexing:
.m,.mm, and content-sniffed.hfiles now parse with full structural extraction, including full multi-part selectors, properties, imports, and superclass/protocol relationships, so trace, callers, and callees work across iOS codebases (#165). - Mixed iOS, React Native, and Expo projects now trace end-to-end across language boundaries: Swift to Objective-C auto-bridging, the React Native legacy bridge and TurboModules, native-to-JS event channels, Expo Modules, and Fabric/Codegen view components are all bridged so flows connect through gaps that static parsing alone can't follow (#401).
Fixes
- TypeScript: types used only in an interface's property or method signatures now produce references edges, so impact and callers on a type include every consumer that imports it just for an interface shape (#432).
- Git worktrees no longer silently borrow another tree's index; running CodeGraph from a worktree nested inside the main checkout used to return the wrong branch's code with no warning, and now both the status command and every read tool call out the conflict and point you to
codegraph init -iin the worktree (#155). - The file watcher no longer exhausts the OS file-watch budget on large repos: it now excludes the same directories the indexer ignores (defaults plus your
.gitignore) before registering watches, so CodeGraph can run alongside your editor or dev server without hitting the per-user watch ceiling (#276). - The index now stays in sync after
git pull, branch switches, and edits made outside your editor; change detection is filesystem-based instead of relying ongit status, so pulled or checked-out code is picked up without a full re-index. - The MCP server now catches up on connect, reconciling anything that changed while it wasn't running so your first query reflects the current code instead of a stale snapshot.
- Dependency, build, and cache directories like
node_modules,vendor,dist,build,target,.venv,__pycache__,Pods, and.nextare now excluded by default, so context and search reflect your code instead of third-party noise even in a project with no.gitignore; add a.gitignorenegation to index one anyway (#407).
v0.9.4
[0.9.4] - 2026-05-24
New Features
- Request-to-handler flows now trace end-to-end across many web stacks, with new or improved route resolution for Express, Rails, Spring (Java and Kotlin), Django/DRF, Laravel, Flask, FastAPI, Gin, chi, ASP.NET, Drupal, Axum, actix, Vapor, Play, Vue/Nuxt, Svelte/SvelteKit, and React Router.
codegraph_trace,codegraph_callees, andcodegraph_explorenow follow flows that have no static call edge — callback and observer registration, EventEmitter, React re-renders and JSX children, FluttersetStatetobuild, C++ virtual overrides, and Java/Kotlin interface-to-implementation dispatch (like Spring's@Autowiredservice calls) — and each bridged hop is labeled inline in trace with where it was wired up.codegraph_tracenow returns a self-contained flow dossier: every hop shows its full body inline plus the destination's own outgoing calls, so a single trace usually answers a "how does X reach Y" question without a follow-up explore, node, or Read.codegraph_explorenow leads with the execution flow when your query names the symbols of a flow, finding the call path among those symbols (including across dynamic-dispatch hops) so you get a trace-quality answer without switching tools.codegraph_nodeandcodegraph_tracenow emit line-numbered source (matchingcodegraph_exploreand Read), so you can cite or edit exact lines without re-reading the file just to recover line numbers.- New
CODEGRAPH_MCP_TOOLSenvironment variable lets you expose only a chosen subset of codegraph tools over MCP (e.g.trace,search,node,context) without editing your client's MCP config; unset exposes all of them. - Release archives now ship with a
SHA256SUMSfile, and the npm launcher verifies the bundle it downloads against it, aborting on a mismatch (releases published before this change skip verification rather than failing).
Fixes
- Several static-extraction and resolution correctness fixes underpin the routing work above: C++ inheritance edges that were previously missing, Dart methods that were extracted signature-only, Python handlers named
index/get/updatethat were being silently dropped, and an explore output-budget issue that under-returned source on repos with very large files. codegraph serve --mcpno longer keeps running after its parent agent is force-killed (OOM,kill -9, or container teardown) on Linux, where it used to hold inotify watches, file descriptors, and the SQLite WAL indefinitely; the server now shuts down as soon as its parent process changes, tunable viaCODEGRAPH_PPID_POLL_MS(#277).- Installing
@colbymchenry/codegraphthrough a registry mirror that hadn't yet mirrored the matching per-platform package no longer fails withno prebuilt bundle for <platform>; the launcher now downloads the bundle from GitHub Releases and caches it, withCODEGRAPH_NO_DOWNLOAD=1to disable the fallback andCODEGRAPH_DOWNLOAD_BASEto point it at your own mirror (#303). install.shno longer fails with403/ "could not resolve latest version" on shared or cloud hosts that exhaust GitHub's unauthenticated API rate limit; it now resolves the version through the unthrottled releases redirect, andCODEGRAPH_VERSIONaccepts a bare version like0.9.4as well asv0.9.4(#325).
v0.9.3
[0.9.3] - 2026-05-22
New Features
- New
codegraph uninstallcommand cleanly removes CodeGraph from every agent it's configured on — Claude Code, Cursor, Codex CLI, opencode, and Hermes Agent — in one step, asking whether to clean up your global or this project's local config and reporting exactly which agents it touched; it accepts--location,--target, and--yesfor scripted or non-interactive use, removes only whatcodegraph installwrote, and leaves your.codegraph/index alone (#313).
Fixes
- Indexing a large multi-language project no longer aborts partway through with a
Fatal process out of memory: Zonecrash on Node.js 22 and 24, even with plenty of RAM free — CodeGraph now launches with a V8 flag that keeps grammar compilation off the optimizing tier, and any launch path that doesn't get the flag directly re-execs once with it automatically (#298, #293). Node 25 stays blocked for now, since its variant of this bug isn't fixed by the same flag. - Uninstalling from Cursor now deletes the leftover
.cursor/rules/codegraph.mdcfile outright instead of leaving an orphaned, empty rule behind, while keeping any content you added outside CodeGraph's markers.
v0.9.2
[0.9.2] - 2026-05-21
Breaking Changes
- CodeGraph no longer has a config file:
.codegraph/config.jsonand the entire config surface are gone, and the library API for it (the config type, theconfigoption oninit(), and the get/update config exports) has been removed — existing config files are now ignored, and.gitignoreis the single source of truth for what gets indexed. The.codegraphignoremarker is also no longer supported; use.gitignoreinstead.
New Features
codegraph installnow supports Hermes Agent (Nous Research), wiring up the CodeGraph MCP server so Hermes can drive the knowledge graph like the other agents.- Drupal projects (8/9/10/11) are now detected and indexed with framework smarts: routes from
*.routing.ymllink to their controller, form, or entity-handler, and hook implementations across modules are connected to their canonical hook name, so asking for callers of a hook returns every implementation (#268). - Indexing is now zero-config and honors your
.gitignoreeverywhere — in git repos via git, and in non-git projects by reading.gitignorefiles directly — so to keep something out of the graph you just add it to.gitignore. Behavior change: committed files that aren't gitignored are now indexed even undervendor/,Pods/, or a committeddist/; add a.gitignorenegation to exclude them (#283).
Fixes
- Windows: installing globally and then running any
codegraphcommand no longer fails — the launcher now invokes the bundled runtime directly instead of a.cmdfile that modern Node refuses to spawn, socodegraphworks regardless of your Node version (#289).
Security
- The temp-dir marker written on each
codegraph_contextcall is now opened safely so it can't follow a symlink, closing a hole where another local user on a shared machine could redirect that write onto a file you can write (#280).
v0.9.1
[0.9.1] - 2026-05-21
Fixes
- The standalone installers (
curl … | shandirm … | iex) no longer fail to launch on a machine that has no Node installed. - Installing with
npm i -gon Linux x64 now finds its bundle, after the 0.9.0 release silently shipped without the linux-x64 package; the release pipeline now verifies every package reached the npm registry so a release can't pass green-but-broken again.
v0.9.0
[0.9.0] - 2026-05-21
CodeGraph now ships its own self-contained runtime, so it installs on any Node version — or none at all — with no native build step, and the old intermittent "database is locked" errors are gone for good.
New Features
- One-line standalone installers that need no Node.js:
install.shon macOS and Linux, andinstall.ps1on Windows fetch the self-contained bundle and putcodegraphon your PATH (you can still usenpm/npxon any Node version too). - CodeGraph now uses real SQLite with full WAL and FTS5 built into its bundled runtime, which fixes the concurrent-read "database is locked" errors at the root, removes the native build step entirely, and runs faster for anyone who had been stuck on the old WASM fallback (#238).
- Lua: CodeGraph now indexes
.luaprojects (Neovim plugins, Kong, OpenResty, game code), surfacing functions, table methods, local variables,require(...)imports, and the call edges between them. - Luau: CodeGraph now indexes
.luau, Roblox's typed superset of Lua, adding type andexport typealiases, typed function signatures, generics, and Roblox instance-path requires on top of everything Lua extracts (#232). codegraph statusnow reports the effective journal mode, so a "database is locked" report is easy to triage at a glance.
Fixes
- Re-running
codegraph installnow strips the broken auto-sync hooks that pre-0.8 versions wrote into Claude Code's settings, which had been causing a "Stop hook error: unknown command 'sync-if-dirty'" on every turn. The cleanup is surgical and leaves unrelated hooks untouched. Re-runcodegraph installonce on an affected machine to clear the error.
v0.8.0
[0.8.0] - 2026-05-20
Breaking Changes
- The minimum supported Node.js version is now 20 (Node 18 is end-of-life); Node 22 LTS and Node 24 get the fast native backend out of the box, other Node versions still run via the slower WASM fallback, and Node 25+ remains blocked (#81). If you're on an older Node, upgrade to 20 or newer.
New Features
- NestJS: CodeGraph now recognizes NestJS projects and surfaces the route that binds each handler across HTTP controllers, GraphQL resolvers, microservice handlers, and WebSocket gateways, detected automatically from any
@nestjs/*dependency (#220). codegraph_exploresource now includes line numbers, so an agent can citefile:linestraight from the result instead of reopening the file to find a line number; setCODEGRAPH_EXPLORE_LINENUMS=0to disable.- On WSL2
/mnt/*drives, where the live file watcher is too slow and could break MCP startup, CodeGraph now skips the watcher and offers to keep the index fresh with git hooks instead; newCODEGRAPH_NO_WATCH=1(orserve --mcp --no-watch) forces the watcher off anywhere, andCODEGRAPH_FORCE_WATCH=1overrides the WSL auto-detect when your setup is actually fast. - CodeGraph now guides agents to answer "how does X work" and architecture questions directly with a couple of codegraph calls instead of delegating to a file-reading sub-agent or a grep-and-read loop, which gives faster, cheaper,
file:line-cited answers on medium and large repos. codegraph_nodewith code on a class, interface, struct, or enum now returns a compact member outline (fields plus method signatures with line numbers) instead of the entire class body; functions and methods still return their full source.codegraph_exploreoutput now scales with project size, so small projects get tighter responses than your native grep-and-read flow would produce while large codebases keep their fuller budget, and a per-file cap stops a single dense file from collapsing into a whole-file dump (#185). Thanks @essopsp.- Search ranking now correctly de-prioritizes CamelCase test files (
FooTest.kt,BarTests.swift,BazSpec.scala,QuxTestCase.cs) and test source-set directories in Kotlin, Swift, Scala, and C#, so real implementations no longer get outranked by tests.
Fixes
codegraph_exploreoutput is now hard-capped to its size budget, so an oversized response no longer overruns the cap and sits in the agent's context to be re-read every turn.- Newly created untracked files are no longer reported as pending forever and re-indexed from scratch on every
codegraph sync; CodeGraph now hash-compares them against the index the same way it does tracked files (#206). Thanks @15290391025. codegraph init -inow finds source inside nested, independent git repositories that aren't submodules (common in CMake super-repo layouts), instead of reporting "No files found to index" (#193). Thanks @timxx.- On Node 24, indexing no longer silently drops to the slower fallback backend with a warning that couldn't be cleared; a fresh install on Node 22 or 24 now gets the fast native backend with no compiler, and
codegraph statusshould report it (#203). Thanks @Finndersen. - MCP tools no longer fail with "CodeGraph not initialized" when the index actually exists; when the client doesn't report a workspace root, the server now asks for it via the standard MCP
roots/listrequest before falling back, and the error message is actionable when a project still can't be resolved (#196). Thanks @zhangyu1197. - The MCP server no longer hangs on startup under WSL2 when the project lives on an NTFS
/mnt/*mount, so the codegraph tools actually appear; CodeGraph auto-skips the watcher there with manual and git-hook sync fallbacks (#199). Thanks @mengfanbo123. - Claude Code project-local installs now write the MCP server to
.mcp.json(the file Claude Code actually reads for project-scoped servers) instead of a file it ignores, and re-runningcodegraph installmigrates an affected project automatically (#207). Thanks @Jhsmit. - Source-omission markers in
codegraph_exploreandcodegraph_contextoutput are now language-neutral instead of C-style comments, so they no longer look wrong inside Python, Ruby, and other non-C source blocks.
v0.7.10
[0.7.10] - 2026-05-19
Fixes
- CodeGraph tools now reliably appear in your client on slow filesystems (Docker Desktop VirtioFS on macOS, WSL2), where the startup handshake could previously time out and leave the process running with no tools visible (#172). Thanks @sashanclrp and @sgrimm.
- On Windows PowerShell and cmd.exe, terminal output during
codegraph indexandcodegraph syncno longer turns into garbled characters; CodeGraph now uses plain ASCII glyphs by default on Windows, withCODEGRAPH_UNICODE=1to opt back into the Unicode glyphs orCODEGRAPH_ASCII=1to force ASCII on any platform (#168). Thanks @starkleek and @Bortlesboat. - Module-qualified symbol lookups now resolve in the codegraph tools, so you can pass names like
module::symbol(Rust, C++, Ruby),Module.symbol(TypeScript, JavaScript, Python), ormodule/symbol, including multi-level paths and Rust prefixes likecrate,super, andself(#173). Thanks @joselhurtado.