-
Notifications
You must be signed in to change notification settings - Fork 3k
Releases: colbymchenry/codegraph
v1.0.0
[1.0.0] - 2026年06月12日
Security
- Closed a path-traversal hole where a symbolic link inside an indexed project that pointed outside the project root could make CodeGraph serve that out-of-root file's contents (for example a file under your home directory) to the AI agent. CodeGraph now resolves symlinks when validating file access and refuses to read anything whose real location is outside the project, while still allowing symlinks that stay within it. Thanks @sulthonzh. (#527)
- CodeGraph now indexes Spring configuration files (
application.properties/application.yml) by key only, and never includes their values incodegraph_exploreorcodegraph_nodeoutput. Previously a secret committed to one of these files — a database password, API key, or connection string with embedded credentials — could be surfaced to an AI agent that asked about nearby code, even though the agent never opened the file. The configuration keys are still indexed, so reference and impact analysis are unaffected; an agent that genuinely needs a value reads the file itself. Shopify Liquid{% schema %}blocks are likewise indexed by name only. (#383)
New Features
-
CodeGraph now indexes R (
.R/.r) — functions in every assignment form (name <- function(...),name = function(...), nested definitions), S4 / Reference / R6 classes with their methods,setGeneric/setMethodgenerics, top-level variables and constants,library()/require()imports,source()file references, and call edges — including calls inside tidyverse pipe chains. Statistical and research codebases get the full explore / impact / callers surface. (#828) (R) -
Workspaces holding multiple git repositories now index as a whole. Running
codegraph initat the root of a directory that contains several independent git repos — including the common "super-repo" layout where the parent repo's.gitignorehides the child repos to keepgit statusquiet — now indexes every nested project into one graph, with each child repo's own.gitignorerespected.codegraph syncand live file watching pick up changes inside the nested repos too (previously change detection only consulted the parent repo, so edits in child repos were invisible until a full re-index). Git repositories insidenode_modules(npm git-dependencies) remain excluded. (#514) -
codegraph_explorenow explains where a flow ends instead of going silent. When the symbols you ask about don't connect statically — because the code dispatches through a runtime mechanism like a computed call (handlers[action.type](...)), Python'sgetattr, a command/mediator bus (sender.Send(new DeleteCommand(...))), reflection, ornew Proxy— explore now announces the exact dispatch site (file and line) where the static path stops, and when the dispatch key is visible in the source it shortlists the likely runtime targets (for example pointing a MediatR command straight at itsHandler.Handlemethod). Detection is deterministic and runs only when a flow fails to connect; fully connected flows are unchanged, and nothing about indexing or the graph itself changes. Relatedly, a custom event bus whose emit and handler connect through a single synthesized hop now shows that hop explicitly (with the registration site) — it previously rendered nothing because the connection was "too short" for the flow section. (#687) -
Anonymous usage telemetry, documented field-by-field and easy to turn off. CodeGraph now collects a small set of anonymous usage statistics — which commands and MCP tools get used, which languages get indexed, which agents connect — so language and agent support work goes where real usage is. Never any code, file paths, file or symbol names, search queries, or IP addresses; usage aggregates locally into daily totals before anything is sent, and the ingest endpoint is public, auditable code in the repository that enforces the documented field list. The installer asks up front with a visible default-on toggle (and never re-asks); everywhere else a one-line notice prints before the first send. Disable any time with
codegraph telemetry off,CODEGRAPH_TELEMETRY=0, or the cross-toolDO_NOT_TRACK=1standard — off means off: nothing is recorded, nothing is sent, and buffered data is deleted.TELEMETRY.mddocuments every field. -
Subagents and non-MCP agents can now reach CodeGraph. Two new CLI commands —
codegraph explore "<symbols or question>"andcodegraph node <symbol-or-file>— print exactly what the matching MCP tools return (relevant symbols' source + call paths; one symbol's source + callers; file reads with line numbers), so any agent with a shell can use the graph. Andcodegraph installnow writes a small marker-fenced CodeGraph section into each agent's instructions file (CLAUDE.md/AGENTS.md/GEMINI.md) pointing at both surfaces — that file is what Task-tool subagents actually see, where the MCP server's own guidance only reaches the main agent. Measured on a delegated code-exploration task: subagents went from almost never using CodeGraph (~1 in 9 runs) to using it in every run, including runs with zero grep/file-reading fallback. The section is small, survives your own content, upgrades cleanly from the old long block, andcodegraph uninstallremoves it. Thanks @liuyao37511. (#704) -
The MCP tool list is now a focused default of four —
codegraph_explore,codegraph_node,codegraph_search, andcodegraph_callers. The other four (codegraph_callees,codegraph_impact,codegraph_files,codegraph_status) remain fully functional — the CLI and library API are unchanged, andCODEGRAPH_MCP_TOOLSre-enables any of them — but they're no longer listed to agents by default: measured agent behavior shows they're never or rarely picked, and the information they carry already arrives inline on the tools agents do use (explore's blast-radius section, node's dependents note, a symbol's own body as its callee list). A leaner list saves context tokens every session and steers agents to the right tool by presence alone. -
CodeGraph now goes quiet instead of failing loudly in unindexed projects. When an AI agent's session starts in a workspace that has no CodeGraph index, the MCP server now announces itself as inactive with a short note and lists no tools at all — instead of presenting the full toolset and erroring on every call, which taught agents to distrust CodeGraph even where it works. Querying another project that isn't indexed likewise returns clear guidance (use your regular tools for that codebase; the user can run
codegraph initthere to enable CodeGraph) instead of an error, and genuine internal errors now tell the agent to retry once rather than give up on CodeGraph entirely. Indexing stays your decision — agents are told not to run it themselves. (#769) -
Astro projects are now indexed.
.astrofiles previously weren't parsed at all — on a typical Astro site that left most of the codebase invisible to search, impact, andcodegraph_explore. CodeGraph now extracts the TypeScript frontmatter (functions, imports,getStaticPaths, ...) and client-side<script>blocks, captures function calls and<Component>usages in template markup so cross-component dependencies trace end-to-end, resolves theAstroglobal andastro:*module imports as framework-provided, and mapssrc/pages/file-based routing to route nodes (.astropages and.tsendpoints, including[param]and[...rest]dynamic segments, with underscore-prefixed files correctly excluded). Validated on two real-world Astro sites with 93% measured cross-file coverage and every page mapping to its route. Thanks @xingwangzhe. (#768) (Astro) -
Same-named symbols across a monorepo's apps are no longer conflated. In a NestJS-style workspace with one
UserServiceper app,codegraph_callers,codegraph_callees, andcodegraph_impactnow report one section per distinct definition — each app's callers and blast radius under its own file-labeled heading — instead of a single merged list, and accept afileargument to focus exactly the definition you mean (likecodegraph_nodealready did). Impact in particular no longer overstates a change's blast radius by merging unrelated same-named classes. Thanks @Igorgro. (#764) -
Fixed a related source of cross-package wrong edges: PascalCase type references from plain
.tsfiles were being resolved as React components, which could link a file's own type alias to an arbitrary same-named class in another package (on one large monorepo this produced over a thousand wrong cross-package reference edges; 96% are now gone, and the remainder are genuine shared-model imports). Component resolution now applies only to references from JSX-capable files and never guesses between multiple candidates without a positional signal. The Svelte and Vue component resolvers had the same arbitrary-pick flaw (Vue resolved the first same-named.vuefile found anywhere in the tree) and now follow the same rule: same-directory first, otherwise only an unambiguous name resolves. Re-index a project to benefit. (#764) (TypeScript, React, Svelte, Vue) -
TypeScript and JavaScript class fields are now reported as properties instead of methods. A plain field like
public fonts: Fonts;previously extracted as a method, misrepresenting class shape and letting calls to same-named functions resolve to data fields (a boolean field namedisArraywas soaking upArray.isArray(...)call edges). Fields holding arrow functions or function expressions (onClick = () => {...}, including wrapped ones likeonScroll = throttle(() => {...})) correctly remain methods and their bodies are still analyzed. Field initializers are analyzed too, sohistory = createHistory()records its call — and JavaScript class fields, which previously produced no symbol at all, now appear in the graph. Re-index a project to benefit. (#808) (Typ...
Contributors
- @mturac
- @cvanderlinden
- @sulthonzh
- @eddieran
- @jiezhiyong
- @liuyao37511
- @rrtt2323
- @nakisen
- @Igorgro
- @zmcrazy
- @stabey
- @caleb-kaiser
- @fucknoobhanzo
- @zhanghang-9527
- @MiNuo1
- @Cyclone1070
- @atahan150
- @xingwangzhe
- @WodenJay
- @12122J
Assets 9
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.
Assets 9
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).
Assets 9
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.
Assets 9
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).
Assets 9
v0.9.5
318cda1 [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).
Assets 9
v0.9.4
025ebc8 [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).
Assets 9
v0.9.3
c09dfd0 [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.
Assets 8
v0.9.2
c41559a [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).
Assets 8
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.