Releases: colbymchenry/codegraph
Releases · colbymchenry/codegraph
v0.9.9
[0.9.9] - 2026-06-02
New Features
codegraph_exploreis now the primary tool, and one call is usually all an agent needs: it returns the verbatim source of the symbols relevant to your question (a plain question works as the query — you no longer need exact symbol names), grouped by file and Read-equivalent, so the agent answers without falling back to read/grep. The narrowercodegraph_contextandcodegraph_tracetools were removed in favor of it — explore already surfaces the call flow among the symbols you name (the job trace did), so there's one obvious tool to reach for instead of three.codegraph_explorenow includes a compact "Blast radius" for the symbols you're looking at — who depends on each (just the locations, not their source) and which test files cover it — so before editing, the agent can see what else to update and which tests to run, without a separate impact lookup. Symbols nothing depends on are skipped, so it stays short.- Functions defined inside a store or handler object — the actions in a Zustand
create((set, get) => ({ … }))store, and the same shape in Redux, Pinia, MobX, or any exported handler/route map — are now indexed as real symbols. Previously they existed only as object properties, so looking one up by name or asking who calls it returned "not found" and the agent had to read the whole store file to follow the flow; nowcodegraph_node,codegraph_callers, andcodegraph_exploreresolve them directly — including calls made throughuseStore.getState().fetchUser()or a destructuredconst { fetchUser } = useStore.getState(). codegraph_explorenow surfaces the right definition when a method name is overloaded across types. Asking about, say,DataRequest'staskandvalidateused to return a same-named method from an unrelated file (or an abstract base stub) and bury the one you meant; explore now recognizes the type you named in the query and leads with that type's own overloads, in full.
Fixes
- Search ranking no longer lets a common word in your request hijack the results: asking about, say, a "flat object" screen used to surface an unrelated constant that merely happened to be named the same, because the exact-name match outweighed everything else. Ranking now weighs how well each result is corroborated by the rest of your request, so the symbols you actually meant come first (this improves
codegraph_explore's results). codegraph_nodenow returns every definition when a name is ambiguous — an overloaded method, or the same method name on different types — instead of returning one (sometimes the wrong one) with a note listing the rest. Asking for such a symbol now hands back all of the matching definitions with their source in a single call, so the agent stops having to read the file by hand to find the specific overload it wanted (common in Swift, Go, Java, and C#). For a heavily-overloaded name (apoll/validatewith dozens of definitions), passfile(and/orline) — e.g. thefile:lineshown in a trail — to get that exact definition's body. Large overload sets show the most relevant ones in full and list the remainder by location.codegraph_explorenever returns half a method anymore: when output runs up against its size budget it drops whole methods or whole files (and lists what it dropped, so you can ask for them in another call) instead of cutting off a method body partway. A truncated method was the one case that still sent the agent to read the file for the rest — so the source explore returns is now always complete and usable as-is.
v0.9.8
[0.9.8] - 2026-06-01
New Features
codegraph initnow builds the initial index by default — you no longer need the-i/--indexflag (it's still accepted, so existing commands and scripts keep working). (#483)- Go: Gin middleware chains now connect end-to-end in
codegraph_traceandcodegraph_explore— following a request reaches the middleware and route handlers registered via.Use()/.GET()instead of dead-ending where the framework dispatches the chain dynamically. codegraph_explorenow sizes its response to the answer instead of the file count: it shows the mechanism and the exact methods you asked about in full — even when they're buried deep in a large file — while collapsing the redundant interchangeable implementations of an interface (an HTTP interceptor chain, a query-compiler family) down to signatures. Fewer tokens for a more complete answer, so on the flows that used to occasionally cost more than plain grep/read it's now clearly cheaper — and the win holds across small, medium, and large codebases. Distinct, non-interchangeable code is shown in full as before. Disable withCODEGRAPH_ADAPTIVE_EXPLORE=0.- Swift deferred-validation flows (and similar "handler array" patterns) now connect end-to-end in
codegraph_traceandcodegraph_explore— following a request's lifecycle reaches the validators registered with.validate { … }instead of dead-ending where the framework runs them by iterating a stored list of closures. Any pattern where closures are appended to a collection and later invoked by looping over it is now traced. codegraph_explorenow spells out the dynamic-dispatch relationships of the symbols you ask about — e.g. "the closures registered here are run bydidCompleteTask" — so the indirect hops you'd otherwise grep to reconstruct are listed alongside the call flow.codegraph_exploreanswers multi-phase questions that span a large "god file" far more completely. For a flow like "build, send, and validate a request" — where one big file holds the build chain and the validate logic lives in others — it now keeps every method on the flow path in full, collapses the file's off-path methods to one-line signatures, and guarantees each phase's defining file is shown (instead of truncating at a fixed size and dropping whichever phase came last, which sent you to read it by hand). Incidental files that merely name-drop the flow are still trimmed, so the response stays focused on the code that answers the question.- CodeGraph is usable as an embedded library again:
require("@colbymchenry/codegraph")andimportnow resolve the programmatic API — theCodeGraphclass plus building blocks likeDatabaseConnection,QueryBuilder,initGrammars, andFileLock— so you can drive the graph directly from your own app (for example an Electron process) instead of only through the CLI or MCP server. Embedding runs on your own runtime, so it needs Node 22.5+ for the built-in SQLite. (#354)
Fixes
codegraph_tracenow resolves an overloaded symbol name to its real implementation instead of an empty protocol/delegate stub. Tracing a flow through a heavily-overloaded API (common in Swift, Java, C#, and Go) could land on an unrelated no-op method that happened to share the name and report "no path"; it now picks the substantive definition the flow actually runs through.- CodeGraph's MCP server now answers an agent's opening handshake the instant it launches instead of blocking while the index loads, so a fresh session's very first tool call no longer occasionally races a server that's still warming up and falls back to grep/read. The first question in a new session now reliably goes through CodeGraph.
- Indexing a project that contains only config-style files (YAML, Twig, or
.properties) no longer misleadingly reports "No files found to index" — these files are tracked at the file level and are now counted as indexed. Thanks @luojiyin1987 (#357).
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.