为codegraph打分
给出您宝贵的评分:
手机端可长按图片保存,分享到朋友圈 / 社群
使用 codegraph,你可以:
专为 Claude Code、Cursor 等智能体打造预索引代码知识图谱,减少调用与 token 消耗,本地运行保障数据安全,提升代码理解效率。
用户评论 (0)
2026年05月28日
2026年03月24日
2026年05月25日
v1.6.4
2026年11月20日
[1.6.4] - 2026-11-20
Highlights
- Small questions cost less. Ask your agent what a function or constant is, or who calls it, and
codegraph_explorenow answers with the definition and every line that uses it, instead of a long answer about related files. - Faster answers in Claude Code. The prompt hook now asks the CodeGraph server already running for your project instead of loading the index again on every prompt, which matters most in large projects, and
codegraph impactis as fast as it was in 1.6.2 again. - Safer on a shared computer. Each agent session now checks that the background server it connects to runs as you before sending it anything.
- More of your code in the graph. Elysia (Bun) routes, PHP includes built from the web server's root or the file's own folder, Dart 3.13 primary constructors and newer Kotlin syntax are now read, and ASP.NET Core routes are named the way ASP.NET serves them.
- More accurate links. Dozens of fixes help calls reach the code they mean, most of all in JavaScript and TypeScript, Python, Rust, C#, PHP and Java, and
codegraph affectedno longer picks tests on the far side of an HTTP call, a queue or an event unless you pass--cross-tier. - Fewer stuck commands. A
git addor commit no longer fails with "index.lock: File exists" while CodeGraph syncs, a file whose parse never ends no longer keepscodegraph initor sync from finishing, and a server whose project folder was deleted now shuts down. - Upgrading: re-index your projects with
codegraph indexafter this release. Many of these fixes are written while indexing, andcodegraph statusand your agent both tell you when an index was built by an older version.
Security
- On a computer shared with other users, each agent session now checks that the CodeGraph background server it connects to runs as you before sending it anything, and serves the session itself when the server can't prove it, so another user can no longer stand in for your server to read your agent's queries or feed it made-up answers. Thanks @aidenpan0x for pointing it out.
New Features
- The Claude Code prompt hook now gets its context from the CodeGraph server already running for your project instead of loading the index again on every prompt, so structural prompts are answered sooner, most of all in large projects; with no server running, one that is busy, or one that can't prove it runs as you, the hook works it out itself as before. Thanks @aidenpan0x for the report, the measurements and the pull request. (#3284)
- Elysia (Bun) backends now have their HTTP routes in the graph, named by the full path a request takes, with the prefixes of
new Elysia({ prefix }),.group()and a.use()in another file included, and linked to their handlers, socodegraph_explorecan follow a request from its route into your code. Thanks @ChampPABA for the report. (#3255) - PHP includes built from the web server's root, like
require $_SERVER['DOCUMENT_ROOT'] . '/inc/header.php', now link to their file: CodeGraph works out which folder the server serves from where your includes' paths name files, links nothing when they don't settle it rather than guess, and takes"webRoot": "public"incodegraph.json(or"."for the project root) when you'd rather name it yourself. Thanks @artisanya for the report. (#3298) - Kotlin is now read with a newer version of its grammar, so code it used to misread, such as an annotated class whose methods showed up as top-level functions, a class that delegates
byanother object, or newer syntax likewhenguards and explicit backing fields, now has its classes, functions and calls in the graph where they belong. (#3410) codegraph_explorenow answers a question about one symbol, like "who callstoValidURL?" or "what isMAX_RETRIES?", with that symbol's source and every line that uses it, each with the function it sits in and the line's text, instead of filling its whole answer with files that only share words with the name, so these small questions cost less and leave nothing to search for afterwards. Thanks @GeorgeTaveras1231 for the measurements. (#3407)
Fixes
Setup, the background server and the CLI
codegraph affectedno longer selects tests on the other side of an HTTP call, a queue or an event, like an Angular app's specs for a change to the Spring controller it calls, since those tests mock that boundary; pass--cross-tierto include them. Thanks @jotder for the report. (#3320)- CodeGraph no longer takes git's index lock while it checks your repository for changes, so a
git addin a pre-commit hook, a commit or a checkout that runs while CodeGraph syncs no longer fails with "index.lock: File exists". Thanks @iamclaudia-ai for the report. (#3295) codegraph impactandcodegraph_impactare as fast as they were in 1.6.2 again, with the same results: 1.6.3 read each symbol's dependents in a way that slowed down every step of the walk. Thanks @inth3shadows for the report and the fix, and @Marcos-199-GitHub for #3285. (#3248)- When the CodeGraph server's catch-up sync on a large project is stopped because the tool calls it is serving keep its write-ahead log from shrinking, it now waits before trying again, a little longer each time, instead of starting over every second while you keep working. Thanks @kiliman for the report. (#3273)
- A CodeGraph MCP server started in a folder with no index no longer starts its separate hang-watchdog process until the session first calls a tool or opens a project, so sessions that only list the tools, as many hosts open them, use less memory. Thanks @AiurArtanis for the report and @johnhldiver-beep for #3257. (#3250)
- A CodeGraph server whose project folder is deleted, like a removed git worktree, now exits within about half a minute, closing its file watcher and dropping out of the servers
codegraph daemonlists, instead of running until its last session ends and it times out. On Windows it also stops keeping that folder's index files from being deleted. Thanks @deniskern for the report and @johnhldiver-beep for #3259. (#3245) codegraph upgraderun from your home folder no longer treats your agents' user-wide setup as a project's: Cursor's CodeGraph server keeps following the workspace you open instead of being pinned to your home folder, and no CodeGraph section is written into~/AGENTS.md,~/GEMINI.mdor~/QWEN.md. Thanks @shoma-endo for the report and @b84330808 and @LuisAlbertoMK. (#3234)- In OpenCode, CodeGraph's instructions, both the ones its server sends and the section
codegraph installwrites to OpenCode'sAGENTS.md, now name its tools the way OpenCode lists them (codegraph_codegraph_explore), so the agent no longer calls a tool name that doesn't exist. Thanks @expiren for the report. (#1267) codegraph initin a project whose last index run was killed or failed partway now says the index is incomplete and to runcodegraph index, instead of "Already initialized", which read like a working setup. Thanks @maxmilian for the report and @LuisAlbertoMK. (#3228)codegraph callers,calleesandimpactnow warn when a file in the answer changed on disk after it was last indexed, ascodegraph nodeandexplorealready did, so a shifted line number no longer reads as a current one. With--jsonthe warning goes to stderr and the answer lists those files underchangedOnDisk. Thanks @arifpambudi242 for the report and @mohitdixit02. (#3260)codegraph statusnow reports edits, new files and deletions in gitignored source thatcodegraph.jsonincludebrings into the index, instead of calling the index up to date until a sync picked them up. Thanks @mixxer for the report and the pull request. (#3086)- On Linux and macOS, when the system kills CodeGraph with a signal, such as when it runs out of memory during
codegraph initorcodegraph index, the command now says which signal and exits as a shell would (137 for SIGKILL), instead of exiting 1 with no message. Thanks @inth3shadows for the report and @johnhldiver-beep. (#3277) - A Spring or Laravel test's request is now linked only to a route of its own app, not to a JavaScript or TypeScript server's route that happens to match the path, so
codegraph affectedno longer selects Java or PHP tests for a change to your web code. Thanks @jotder for the report. (#3320)
Indexing and sync
codegraph syncand the file watcher now follow an edit that adds, removes or repoints a member of an exported object, likeexport const api = { getUser, saveUser }, so a call such asapi.saveUser()in a file the edit didn't touch links to the new member, or back to the object, as a fresh index does. Thanks @inth3shadows for the report. (#3015)- A file whose parse never ends, like a
.tsxfile with a half-typed JSX attribute, no longer keepscodegraph initfrom exiting or leavescodegraph syncand the file watcher spinning at full CPU: its parse now stops at the file's parse time limit, and the file is listed as a parse that timed out. Thanks @inth3shadows for the report. (#3274) - After you upgrade,
codegraph statusand the first CodeGraph answer in each agent session now flag a project indexed by 1.6.3 or earlier as out of date, since this release reads code those indexes are missing, like Dart primary constructors, Elysia routes, PHP includes built from__DIR__and the methods of anexport defaultobject; runcodegraph indexin each project to rebuild it. (#3411)
JavaScript and TypeScript
- JavaScript and TypeScript event handlers registered with
on()are now linked only from code that emits on the same emitter, and to the handler defined where they are registered, so two modules that each keep their own emitter and use the same event name no longer cross-link. Thanks @inth3shadows for the report. (#2973) - In JavaScript, methods written the classic way,
Ctor.prototype.m = function () {…}and a staticCtor.m = function () {…}, are now indexed as methods of their constructor, and the functions of amodule.exports = {…}object as that module's exports, sothis.m()inside them reaches the constructor's or the object's ownminstead of an unrelated function of the same name elsewhere. Thanks @inth3shadows for the report. (#2966) - In JavaScript and TypeScript, the functions of an object a module default-exports, like a Vuex store split into
actions.js,getters.jsandmutations.js(export default { fetchUser() {…} }), are now indexed asdefault::fetchUser, socodegraph_explore,node,query,callersand impact find them, and a call through the module's default import,this.fetchUser()or a Vuexdispatch('fetchUser')links to them; a Vuexcommitnow always links to a mutation and adispatchto an action. Thanks @daniel-luan-tran for the report. (#3393) - In JavaScript and TypeScript,
this.findAll()in a class that wraps an imported helper of the same name now links to the class's own method instead of the imported helper. Thanks @inth3shadows for the report. (#2954) - In JavaScript and TypeScript, a call written on
this, likethis.cast()orthis.validate(), no longer links to aconst, arequirebinding or a function declaration that only shares its name, in the same file or another, because what the call reaches is a property of the object. - In TypeScript, a call on a parameter or local named like an import, like
stream.write()insidestream(c, async (stream) => …), now goes by that parameter or local, and a method called on an imported function no longer links to the function itself; the same mistake throughrequirewas already fixed in 1.6.3. Thanks @inth3shadows for the report. (#2953) - In JavaScript and TypeScript, a call to a name that a function around the caller declares for itself, like a helper an inner arrow function calls, now links to that local declaration instead of the file's import of the same name. Thanks @inth3shadows for the report. (#2949)
- In JavaScript and TypeScript, a call to a helper declared inside a
describe(…)block, or any other callback, now links to the helper that block declares instead of a same-named one from another block that happens to sit nearer. Thanks @inth3shadows for the report. (#2944) - In JavaScript and TypeScript, a call inside a spread, like
<input {...register('email')} />withregistertaken fromuseForm(), no longer links to an unrelated project function that shares the name. Thanks @inth3shadows for the report. (#2962) - In JavaScript and TypeScript, a module namespace that another module hands on by name, like zod's
import { z } from 'zod'ofimport * as z from './external'; export { z }, orexport * as ns from './schemas', now leadsz.string()to what that module exports, asimport * as zdoes, instead of a same-named method elsewhere. Thanks @inth3shadows for the report. (#2951) - In JavaScript and TypeScript, an import through a barrel of several
export *lines now links to the module that exports the name itself, whichever line comes first, instead of a same-named method of an object another module exports. Thanks @inth3shadows for the report. (#3233) - In JavaScript and TypeScript, a method called on a variable that a library call fills in, like
const root = createRoot(el)from react-dom,net.createServer()orcanvas.getContext('2d'), no longer links to the one project method that happens to share its name. Thanks @inth3shadows for the report. (#2947) - In TypeScript, a method called on a variable a class's static factory fills in, like
const writer = DatabaseConnection.initialize(path), now links to the method of the class the factory says it returns, instead of a class guessed from the variable's name. Thanks @inth3shadows for the report. (#2946) - In TypeScript, a call through an interface's function-typed property, like
matcher.snapshot(), no longer links to an unrelated class's method of the same name; a class that implements the interface, or builds it, is still linked. Thanks @inth3shadows for the report. (#3035) - In JavaScript and TypeScript, a call two or more fields deep from
this, likethis.cache.list.push(1)orthis.extractor.functionTypes.includes(type), no longer links to an unrelated project method named like JavaScript's ownpush,includes,hasorset, or to a property that merely shares the name. Thanks @inth3shadows for the report. (#2948) - In JavaScript and TypeScript, a
workspacesentry that points outside the project, like"../shared"inpackage.jsonorpnpm-workspace.yaml, no longer makes that folder's package count as part of the project, so a call through an import of it is no longer linked to an unrelated function of yours with the same name. Thanks @bompus for the report and @johnhldiver-beep. (#3093) - In JavaScript and TypeScript, a call on a local variable declared after another one in the same statement, like
let n = 0, ob = make(), or beside a default in a destructuring, likeconst { ob = make() } = o, links again when a variable of the same name outside the function holds a library's type, as it did before 1.6.3. Thanks @inth3shadows for the report and @mohitdixit02. (#3293) - In JavaScript, a call to a member a required module of your project doesn't have, like
utils.missing()afterconst utils = require('./utils'), no longer links to an unrelated class's method of that name. Thanks @inth3shadows for the report and @johnhldiver-beep. (#3272) - A
fetchor HTTP-client call to another company's API, likefetch('https://api.github.com/users/…'), no longer links to your own server's route with the same path; a call to localhost, to a host your code fills in, or through a client's base URL still links. Thanks @inth3shadows for the report and @johnhldiver-beep. (#2974) - In JavaScript and TypeScript, a call or
newof a global, likeparseInt(…),new Response(…)ornew URL(…), in a module that doesn't import that name no longer links to a same-named export of another file in your project. Thanks @inth3shadows for the report. (#3238) - In JavaScript, a
require()of a folder by a relative path, likerequire('..')from a package's tests, now loads the file the folder'spackage.jsonnames asmain, as Node does, so calls through it link to the function that file exports. Before, a folder without anindex.jswasn't followed, and the call linked to the variable holding therequire()result; on fastify, every test'sFastify()linked to its own test file. Thanks @inth3shadows for the report. (#2964) - In JavaScript, a variable that holds what a required module's function returns, like
const app = require('./app')(), no longer counts as the module itself, so a call likeapp.listen()no longer links to the module's factory function, and links to the method of the class the factory returns when that is known. Thanks @inth3shadows for the report. (#2964) - In JavaScript and TypeScript, a name imported from a package your
package.jsondoesn't list but your project has installed, likeimport { useForm } from 'react-hook-form'hoisted to a monorepo's rootnode_modules, no longer links to an unrelated function of the same name elsewhere in your project (#3271). Re-index JavaScript and TypeScript projects after upgrading.
Python
- In Python,
import timeno longer links the importing file to a project function that happens to be namedtime, so such a function stops listing every file that imports the standard library module among its callers and in its impact. The same goes forjson,copy,random,loggingand any other module, and for a fallback variable likebrotli = Nonebeside a guardedimport brotli. Thanks @inth3shadows for the report. (#3239) - In Python, a call to a function or method declared with
typing.overload, like click'scommandandprompt, now links to thedefthat runs instead of the first@overloadstub, so the implementation shows its callers and a call path goes on through it. A stub with no implementation below it, as in aProtocol, stays the target, and another library'soverloadwhose bodies all run is left alone. Thanks @inth3shadows for the report and @nilotpal-n7. (#2963) - In Python, a call like
self.create_app()on an attribute that holds a callable no longer links to a same-named function or variable in another file, nor, when the class sets that attribute itself, to another class's method of that name, so flask's app loading stops showing an example app as its callee. A method the class has, inherits or a subclass overrides still links, as does a function the class stores under that name. Thanks @inth3shadows for the report and @nilotpal-n7. (#2958) - In Python, a builtin written bare, like
raise TimeoutError(…),class Bad(ValueError)orsorted(rows), no longer links to a project class or function of that name in a file the code doesn't import, so a project's ownTimeoutErrorstops collecting every file that raises the builtin. A name the file defines or imports itself still links. Thanks @inth3shadows for the report. (#3232) - In Python, a call of a name the code around it binds itself, like a local
flat = lambda …, a parameter, a loop or comprehension variable, a lambda's parameter, or a local or parameter of an enclosing function, no longer links to a module-level function or variable of that name, whether it is in the same file or in one the code never imports. Thanks @inth3shadows for the reports and @johnhldiver-beep. (#3037, #3230, #3231) - In Python, a local built from a class through its module, like
client = httpx.AsyncClient(), or bound bywithorasync with … as client, now has that class, soclient.get()links toAsyncClient.getinstead of the method of a class named like the variable, such asClient.get. Awithwhose class hands out something else from__enter__, and a class from a module outside your project, still give the local no type. Thanks @inth3shadows for the report and @nilotpal-n7. (#2957) - In Python, a method called on a local bound from a call, like
made = make(q)ors = store.stage(), now goes by the type the called function or method declares it returns: aPath, astror another class from outside your project links nothing, where any project method that happened to share the name could, and one of your own classes links its own method even when other classes have one of that name. Thanks @inth3shadows for the reports and @johnhldiver-beep. (#3038, #3240) - In Python, a
from x import namewritten inside a function now applies to that function only, so calls ofnamein the rest of the file reach the file's owndef nameinstead of the imported function, as a wrapper that imports the original it wraps expects. Thanks @inth3shadows for the report. (#3229)
Java, Kotlin, C# and ASP.NET
- In Java, when two packages declare a class of the same name, a static call, a call on a new object or a call through a variable now reaches the one the calling file can see, including through a wildcard import, and a call written with the package, like
com.x.b.Util.log(…), reaches that package's class. Thanks @inth3shadows for the reports and @johnhldiver-beep. (#2976, #3290, #3291) - In Kotlin, an extension declared on an import alias of a library type, like
fun DeclAlias.pad()afterimport androidx.compose.ui.Modifier as DeclAlias, now links from calls on that type, whatever name the calling file imports it under. Thanks @mixxer for the report and the pull request. (#3084) - In C#, a method called on what a method of the same class returns, like
GetMailer().Send(), now links to the method of the type that method is declared to return. Thanks @Gobakabana for the report. (#2906) - In ASP.NET Core, attribute routes are now named the way ASP.NET serves them:
[controller]and[action]are filled in, each controller uses its own[Route](or its base controller's),~/paths stand alone, and actions marked[HttpHead],[HttpOptions]or[AcceptVerbs], with their own[Route], or in an attribute list are no longer missed. Thanks @Gobakabana for the report. (#2905) - In C#, an extension method is now matched by the type its
thisparameter takes, so"hi".Shout()andmailer.Shout()each reach their own extension, and a call of a string's own method no longer reaches a project extension of the same name. Thanks @Gobakabana for the report. (#2906) - In C#, a method called through
?.or!., like_mailer?.Send(), now links to the method of the receiver's type. Thanks @Gobakabana for the report. (#2906) - In C#, a method passed or stored as a value through its object, like
Task.Run(worker.Run)orAction later = worker.Run;, now counts as a use of that method, socodegraph callersand impact show it. Thanks @Gobakabana for the report. (#2906) - In Kotlin, a call named after a modifier keyword at the start of a statement, like
annotation("jakarta.persistence.Entity")in a GradleallOpen { }block or a class's ownopen(), is now read as the call it is, so a build script made of such calls no longer warns that it contributes nothing to the graph. Thanks @clayly for the report. (#3410)
PHP and Laravel
- In PHP, a method called on a freshly built object, like
(new SettingClient())->getSet(1), now links to the class the file's namespace anduseimports name, or to a method it inherits, so these calls show up incallersand impact. Thanks @holysor for the report. (#3244) - In Laravel, a route written like
[UserController::class, 'show']now links to the controller the routes file imports, through a plain or aliaseduse, a groupuse, an imported namespace or a fully qualified name, instead of a same-named controller elsewhere or nothing. Thanks @inth3shadows for the reports and @johnhldiver-beep. (#2975, #3292) - In PHP, a method called in a different letter case than its declaration, like
PriceConverter::CalcBasePrice(1)or$c->GetRate()forcalcBasePriceandgetRate, now links to that method, as PHP reads method names without regard to case, so those calls show up incallersand impact. Thanks @artisanya for the report and @johnhldiver-beep. (#3297) - In PHP code written for PHP 7 and older, a string offset in braces, like
$code{0}, no longer makes the function or class around it disappear from the index with its calls credited to the file; it now reads like$code[0]. Thanks @artisanya for the report. (#3299) - In PHP, a
requireorincludeof a file inside a function or method now counts as that function depending on the file, socallersand impact follow code in the included file back to the function and its callers. Thanks @artisanya for the report. (#3296) - In PHP, an include built from the file's own directory, like
require_once __DIR__ . '/inc/a.php'ordirname(__FILE__) . '/inc/b.php', now links to that file the way a plainrequire_once 'lib.php'does, and a path starting with./or../links only to the file named exactly, as PHP loads it, never one with.phpadded. Thanks @artisanya for the report and @inth3shadows. (#3298)
Rust
- In Rust, a call through a module that a glob
usebrings in, likegzip::write()in a test module withuse super::*, or that auseinside the function names, now links to that module's function again. Thanks @Egrn for the report and @mohitdixit02. (#3253) - In Rust,
codegraph_explore's blast radius now recognizes unit tests in a#[cfg(test)]module or atests.rsfile, instead of reporting "no tests found" for the functions they test. Thanks @moogiemode for the report and @maxmilian. (#3265) - In Rust, a function or method passed as a value through its path, like
g.map(Graph::counts)or.map(Self::helper), now counts in its callers and impact the way a function passed by name already did, linked only when the path names it for certain: never another type's method of the same name, and never a method of a trait implementation, since which one Rust uses there depends on the type of the argument. Thanks @Egrn for the report and @inth3shadows. (#3254) - In Rust, a call on a value whose type comes from outside your project, like an outside crate's builder chain or
stdout.flush(), no longer links to one of your methods that only shares its name, such as your ownimpl Write'swriteandflushor an associated function likeGraph::build(n), andRules::default()on a#[derive(Default)]type no longer links to another type'sdefault. Thanks @Egrn for the report. (#3252) - In Rust, a call written in the arguments of
format!,println!,write!,assert_eq!,vec!,matches!or serde_json'sjson!now links to the function or method it calls, as the same call outside the macro does, and a variant in amatches!pattern now counts as a use of its enum. Thanks @Egrn for the report. (#3251)
Go, Swift, Dart, C and C++
- A C++
.hheader that only declares functions andexternvariables, with no class, namespace or template in it, is now read as C++ when it uses a template type likeCComPtr<IDiaDataSource>, a reference parameter likebstr_t& pathorconst qstring &name, or a default argument likeint depth = 0, instead of as C, which dropped its symbols and warned "parse produced no symbols (tree has errors)". Thanks @sonyps5201314 for the report. (#3397) - In Swift, a type no longer picks up the inheritance of a type nested inside it, which linked a name used in the type to an unrelated type's nested type and put it in the wrong impact results. Thanks @bob-codedaptive for the report and @remote-controlled-man. (#3213)
- In Go, a method called on
new(T)ormake(T)now links to that type's method, not a same-named method of another type that happened to be found first. Thanks @inth3shadows for the report. (#3237) - In Swift, an
iforwhilewhose condition istry await f()no longer breaks the method around it: the next member landed inside that method, and calls were recorded under names made of source text. Swift files are now read with a newer Swift grammar, which also parses more Swift 6 code without errors. Thanks @bob-codedaptive for the report. (#3212) - In Dart, a class declared with a Dart 3.13 primary constructor, like
class Point(final int x, final int y) {…}orclass const Foo({required final int a}), is now indexed under its own name with its members, where it had been namedconstor dropped with the rest of its file; Dart files are now read with a newer Dart grammar, which also parses dot shorthands and other recent Dart syntax without errors. Thanks @cutehackers for the report. (#3270)
v1.6.3
2026年11月17日
[1.6.3] - 2026-11-17
Highlights
- Nine more agents and editors.
codegraph installnow sets up IBM Bob, Factory Droid, Windsurf, Qwen Code, DeepSeek Harness, Grok Build, Kimi Code, the Qoder CLI and Pi. - Security fixes. A sensitive folder such as
~/.sshcan no longer be opened as a project through a link, a junction or another spelling of its path, and the bundled Node.js moves to 24.22.1, which fixes CVE-2026-111497. - More accurate links in every language. Hundreds of fixes help calls, imports and types reach the code they mean, most of all in JavaScript and TypeScript, Go, C and C++, Rust, Python, C#, Java and Dart. Tauri, CodeIgniter 3, Drupal services and plugins, Next.js middleware and MediatR handlers are now covered too.
- Better answers for your agent.
codegraph_exploreno longer stalls on a large project, answers a pasted log or file in seconds, finds code named in Chinese, Japanese or Korean, and its Flow reaches every symbol your query names. - New commands.
codegraph cyclesfinds files that import each other in a circle,codegraph implementationslists what implements a type,codegraph files --format packagesplits a monorepo by package, andcodegraph init --local-onlykeeps.codegraph/out of git. - A steadier background server. A new session no longer waits minutes when the background server is stuck, upgrading during a session switches it to the new version, and
codegraph syncand the file watcher keep links right as files are added, deleted and restored. - Faster and lighter. Commands that only read the index start faster, and indexing takes less CPU and memory, most of all on small projects and on C and C++.
- Upgrading: re-index your projects after this release with
codegraph index. Most of these fixes are written while indexing, andcodegraph statusand your agent both tell you when an index was built by an older version.
Security
- A sensitive folder like
~/.ssh,/etcorC:\Windowscan no longer be used as a project through a link or junction, a differently capitalized name, a\\?\path or a path to a missing folder inside one. Before, any of these let an agent's query read the files inside. Thanks @mixxer. (#2929) - The MCP server no longer uses a sensitive folder such as
~/.sshor/etcas a session's default project, whether it came from the agent's workspace, the folder it started in or--path. Before, a session started in one that held an index answered from the files inside. (#3012) - The bundled Node.js runtime moves to 24.22.1, Node's October security release, which fixes CVE-2026-111497, a high-severity out-of-bounds write in its Brotli decoder, and every release now checks the Node it bundles against the checksums nodejs.org publishes. It also fixes a Windows crash as a command like
codegraph syncexits after its work is done. Thanks @Ancienttwo and @IdealBoy709. (#2617, #2780)
New Features
codegraph files --format packageandcodegraph_fileswithformat: "package"now group files by their nearestpackage.jsonorcomposer.json, so a monorepo splits into its workspaces. Thanks @LuisAlbertoMK. (#1871)- In C#, MediatR
SendandPublishnow reach handlers written against the project's own interfaces, likeICommandHandler<T>, or a package's, like the Mediator library's, with no setup. Thanks @PressXtoChris. codegraph files --jsonnow marks test files,--testsand--no-testsfilter the list, andcodegraph node --filesays "test file" in its header. Thanks @maxmilian. (#1877)codegraph installnow sets up IBM Bob, for Bob IDE and Bob Shell, adding the CodeGraph MCP server to~/.bob/settings/mcp.jsonor a project's.bob/mcp.json. Thanks @QuentinDstl.- ASP.NET Razor views now link to the JavaScript their inline
<script>blocks call, andcodegraph_explore's blast radius lists a symbol's views, like.cshtml,.razoror.vuefiles, on their own. Thanks @Johnny-Tsai. codegraph installnow sets up Factory Droid, adding the CodeGraph MCP server to~/.factory/mcp.jsonor a project's.factory/mcp.jsonand a short section toAGENTS.md. Thanks @Rubyj and @KrystianMarek.codegraph installnow sets up Windsurf, adding 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 frontend and Rust:
codegraph_explore, callers and impact followinvokecalls, tauri-specta's typed commands and your wrappers to their#[tauri::command], and events both ways. Thanks @vdavid and @nk33-dev. codegraph installnow sets up Qwen Code: it adds the CodeGraph MCP server tosettings.json, keeping its comments, and a short section toQWEN.md, and can auto-allow CodeGraph's tools. Thanks @ZevGit and @LiangshouX.codegraph installnow sets up DeepSeek Harness (dsh): one entry in~/.dsh/cordis.patch.ymlcovers every profile, plus a short section in~/.dsh/AGENTS.md. Thanks @hfldqwe.codegraph installnow sets up Grok Build, adding 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, adding the CodeGraph MCP server to~/.kimi-code/mcp.jsonor a project's.kimi-code/mcp.json, plus a short section inAGENTS.md. Thanks @zhouxbalabala.codegraph installnow sets up the Qoder CLI, adding the CodeGraph MCP server to~/.qoder/settings.jsonor a project's.qoder/settings.local.json. Thanks @greatjackzhou.codegraph installnow sets up Pi, adding the CodeGraph MCP server to~/.pi/agent/mcp.jsonor a project's.pi/mcp.json, plus a short section inAGENTS.md. 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. Thanks @fedosov.
- Commands that only read the index, like
codegraph callers,query,node,impactandexplore, now start faster and use less memory, as do the MCP server's first handshake and your agent's prompt hook. codegraph statusnow shows when only some of a language's files yielded symbols and warns when none did;codegraph status --strictexits non-zero on that warning or a missing, unfinished or out-of-date index. Thanks @ferrine. (#1658)- After an upgrade, your agent's first answer for a project whose index predates the engine now warns once, naming the version that built it and
codegraph index, andcodegraph_statusshows both versions. Thanks @cbeaulieu-gt. (#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. Thanks @danusha2345. (#1908)codegraph implementations <name>lists the types that implement or extend a trait, interface or class, with each one's file, line and whether it's test code;--depthfollows subclasses of subclasses. Thanks @danusha2345. (#2833)- Indexing is faster, most of all on C and C++ and a good deal on Rust, Java and TypeScript, because resolving a call repeats less 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 project-wide callback and event links, which on a large TypeScript or Vue repo happens on almost every edit. Thanks @danusha2345. (#2911) - Indexing a large project takes 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. Thanks @jiangyq9 and @goutham80808. (#888) codegraph init --local-onlykeeps.codegraph/out of git entirely, so nothing of CodeGraph's shows ingit status, and works on a project that's already set up. Thanks @jadchene, @jiangyq9, @Wood-Q and @walterf3. (#910)- CodeIgniter 3 projects are now understood: controller methods and
routes.phpentries become routes, HMVC modules included, and calls through what$this->loadloads link to the method they reach. Thanks @darkspock. - In Drupal, services from
*.services.yml, plugin definitions and#[Hook]methods are now in the graph, and a call through\Drupal::service('x')reaches 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, so impact, callers andcodegraph_exploreshow which routes a change to it reaches. Thanks @RIGOandre.
Fixes
Windows
- On Windows, deleting the folder a link in your project points to, like a junction to a library outside it, no longer makes CodeGraph's server use a full CPU core or stop picking up your edits. Thanks @L0garithmic.
- On Windows, a project at the root of a drive, like a mapped network drive such as
Z:\, asubstdrive or a network share's root, now indexes instead of refusing every file as "Path traversal blocked". Thanks @Kamilslaoui93. - On Windows, a temp folder on a drive that isn't there, like an unplugged disk or an unmounted RAM drive, no longer hangs every
codegraphcommand at start. - On Windows, a git worktree inside your main checkout, like one under
.claude/worktrees/, is now recognized however its path is written, such as with the lowercase drive letter VS Code and Cursor pass. Thanks @nk33-dev. - The Windows installer,
irm …/install.ps1 | iex, no longer stops with "(403) Forbidden" once GitHub's anonymous request limit is used up, and a version set without itsv, likeCODEGRAPH_VERSION=1.6.2, now installs. Thanks @hiyochi. - In JavaScript and TypeScript files with Windows (CRLF) line endings, a store exported on a later line, like
export default useStore;, now has its actions indexed, as with Unix line endings. - On Windows, a Swift call written after
try!, liketry! Settings.Defaults.load(), now links to what it calls, as it already did on macOS and Linux.
Setup, the background server and the CLI
- The Claude Code prompt hook now goes by what you typed, skipping the status notes Claude Code's desktop app puts before your prompt, and gives no context to a message from another session. Thanks @WonderMr and @yang0228. (#2635)
- Upgrading CodeGraph while an agent session is open no longer leaves the old version's background server in charge: the first session from the new install replaces it with a current one. Thanks @lipchey. (#2335)
codegraph indexno longer stops with advice to runcodegraph daemon stop, which doesn't exist, when a stale lock names a process that isn't CodeGraph; it clears that lock and rebuilds. Thanks @inth3shadows and @danusha2345. (#2770)- The shared background server is no longer killed with "Main thread unresponsive" while it updates another project's index, like one a session names with
projectPath. Thanks @mradwankhalil. (#2404) - A project a session queries through
projectPathis now let go once it has gone its own idle time without a query, instead of staying locked until another project's idle time ran out. Thanks @bompus. (#2087) - An MCP tool call whose
projectPathnames a file inside a project now answers from that project, instead of failing with "Path is not a directory". Thanks @inth3shadows and @maxmilian. (#2982) - An index left incomplete by an indexing run stopped partway no longer gets the background server killed with "Main thread unresponsive" on every start; it is now repaired in the background. Thanks @cbeaulieu-gt. (#1887)
- A new agent session no longer waits minutes for its first answer when the background server is stuck: it gives up within seconds, answers on its own and switches back once the server restarts.
- The background server now gives back the memory a burst of large queries left behind once it's idle, and the next call after a pause is still as quick as any other. Thanks @danusha2345 and @doomsday1906.
- An MCP session whose agent stops reading its answers now shuts down cleanly the next time it answers, instead of crashing with "Uncaught exception: Error: EPIPE". Thanks @iiijiashu. (#2991)
- A tool call whose arguments aren't an object, like
"arguments": "alpha", now gets the standard invalid-params error and no tool runs, instead of an internal CodeGraph error. Thanks @inth3shadows and @kjgggggg. (#2981) - Building CodeGraph from source with bun, as in
bun run build, no longer keeps starting itself over until it is stopped; building with npm is unchanged. Thanks @bompus. - When CodeGraph can't open a project's database, it now shows SQLite's error, the file's path and what to check, instead of always saying "CodeGraph requires node:sqlite (Node.js 22.5+)".
- When a git worktree is answered from another checkout's index,
codegraph statusand your agent's warning now suggest plaincodegraph initin the worktree, without the-iflag that no longer does anything. Thanks @GaoSSR. codegraph upgradeno longer wipes your agent instructions file, like a globalAGENTS.mdorCLAUDE.md, when a stray<!-- CODEGRAPH_START -->line sits above CodeGraph's section. Thanks @pzaj2. (#2506)codegraph install,upgradeanduninstallnow write through a symlinked instructions or config file, such as one from your dotfiles, instead of replacing the link with a copy. Thanks @jguerra6, @meganemura and @danusha2345. (#2721)codegraph installandupgradeno longer add a second[mcp_servers.codegraph]entry to Codex'sconfig.tomlwhen yours is written differently, and repair a file already broken. Thanks @dencoseca, @danusha2345 and @rudycelekli. (#2562)- For Hermes Agent,
codegraph installandupgradeno longer addmcp-codegraphtoplatform_toolsets.cli, which could hide your other MCP servers, or reset yourmcp_servers.codegraphsettings. Thanks @Huy3ko, @conifercone and @rudycelekli. (#2485) codegraph upgraderun from your home folder now upgrades a global npm install instead of putting a second copy there, and a pnpm, yarn or bun install gets the command that upgrades it. Thanks @timlincool and @maxmilian. (#2477)- After an upgrade,
codegraph statusand the upgrade reminder now tell you to runcodegraph index, instead ofcodegraph syncorcodegraph index -f. Thanks @Adam0120. codegraph statusno longer says the index is up to date while indexed files are missing their symbols: it now names them,status --jsoncounts them, andcodegraph files --jsonlists their errors. Thanks @lipchey. (#2336)codegraph syncno longer says "Already up to date" on an index built by an older CodeGraph: it syncs your changes, then warns that the files it didn't touch still need a fullcodegraph index. Thanks @bompus.codegraph affected --filternow matches its glob against whole names, sotests/**/*.pyalso finds tests directly insidetests/andtests/*.pyno longer countstests/x.py.bak. Thanks @Jseca666.- The time
codegraph initandcodegraph indexprint now covers the whole run, resolving references and linking included, andcodegraph syncreports its whole run too. Thanks @bompus for the report. (#2334) - The call paths
codegraph contextprints now name what bridges each dynamic-dispatch hop in the wordscodegraph_exploreuses, so a call through an interface no longer looks like an emitted event.
Indexing and sync
codegraph syncno longer fails with "FOREIGN KEY constraint failed" in a project that lazy-loads a workspace package, like() => import('@vben/layouts').then((m) => m.IFrameView). Thanks @bompus and @inth3shadows. (#2565)codegraph statusandcodegraph_statusnow report uncommitted edits, new files and deletions in a project inside a folder of its git repository, like a monorepo package. Thanks @innoxxicide. (#1636)- A file is no longer saved with no symbols when its language parser can't be loaded, as happened after an upgrade removed a running server's install; files emptied this way are re-indexed by the next sync. Thanks @lipchey. (#2335)
codegraph syncand the file watcher now link the files importing a file that was skipped, for its size or a parse failure, once an edit lets it be indexed, as a full index does. Thanks @inth3shadows. (#3016)- A program using CodeGraph as a library to index chosen files now keeps other CodeGraph processes, like a git hook's
codegraph sync, out of the index until those files are stored. - When several CodeGraph processes start at once after one crashed, only one now takes over the write lock it left behind, so two no longer write to the index at the same time. Thanks @inth3shadows and @vedantb7. (#2979)
- A program using CodeGraph as a library that re-runs a full index now keeps every symbol findable by the words in its name, which
codegraph_exploreand the prompt hook match questions against. Thanks @rudycelekli. - A program using CodeGraph as a library no longer crashes when a
watch()callback it passed,onSyncErrororonDegraded, throws; the error is logged and a failed sync still retries. Thanks @johnhldiver-beep. (#2643) - A long-running session now notices a framework added or removed while it runs, such as Express in a new
package.json, andcodegraph statusrecommends a full index. Thanks @nk33-dev and @inth3shadows. (#2516, #2519, #3007) - Running
codegraph statuswhilecodegraph indexrebuilds a project no longer makes the rebuild fail with "database is locked", and status now says when a rebuild is running. Thanks @sealad886, @danusha2345 and @KissFeng. (#2913) - Running
codegraph query,explore,node,callersand other read commands, or Claude Code's context hook, whilecodegraph indexrebuilds no longer makes the rebuild fail with "database is locked". Thanks @sealad886. (#2913) - Opening a project whose index needs a schema update no longer fails with "UNIQUE constraint failed" or "database is locked" when several CodeGraph processes open it at once. Thanks @inth3shadows and @johnhldiver-beep. (#2980)
codegraph initandcodegraph indexno longer report a deleted file git still lists, or a broken symlink, as one that "could not be read", and a sparse checkout's left-out files are no longer looked for. Thanks @xianzhi-xzw. (#2904)- A full index of a project holding a video named
.ts, like an MPEG-TS clip among test fixtures, no longer warns that the index is PARTIAL; the video now counts as skipped. Thanks @Hetox. (#1910) - Indexing a project that includes large bundled JavaScript files, such as a copy of pdf.js or d3, is fast again after slowing down in 1.6.2. Thanks @bompus for the report. (#2334)
- Indexing a project that ships a large minified JavaScript file, such as the GraphiQL bundle in go-ethereum, no longer stalls at "Resolving refs" on Node 22, and is faster on any Node version.
- Indexing JavaScript and TypeScript projects is a little faster when their code calls methods the project doesn't define, like
list.push(…). Thanks @luojiyin1987. (#2829) codegraph syncand the file watcher now link an import to its file when that file is added later or comes back after being deleted, in Dart, JavaScript, TypeScript, C, C++, PHP, Python, Lua and C#.codegraph syncand the file watcher now link a call that had two candidates once a sync deletes or renames away the file holding one of them, as a full index does. Thanks @inth3shadows. (#3006)codegraph syncand the file watcher now update the importers of a re-exporting module, like an__init__.pyorindex.tsbarrel, when it is deleted or added, in Python, JavaScript, TypeScript, Vue, Svelte and Astro.- Indexing no longer stops with
Invalid regular expression … Nothing to repeaton a method name that isn't a plain word, like a C++operator++, a Scala++or a Kotlin name in backticks. Thanks @Sven-lxw, @ArronLin, @daheix and @danusha2345. (#2457, #2482, #2636) - A folder whose name starts with two dots, like
..generated/, now counts as part of your project everywhere: intsconfig.jsonorjsconfig.jsonpath aliases, the file watcher,.gitignorerules andcodegraph.json. Thanks @amplifierplus. - A long-running session, like the background server behind your agent, now links an edit the way a fresh index does, for edits such as a Go file's
//go:buildline or a Vue or Svelte component's<script>block. codegraph syncnow follows an edit to aCargo.tomlor acompile_commands.json, linking again the imports a new workspace member, a renamed crate or another-Idirectory moves, in untouched files too.codegraph syncnow follows an edit to thepathsorbaseUrlof atsconfig.jsonorjsconfig.json, or to the module path in ago.mod, linking the imports they map again. Thanks @inth3shadows for the report and @danusha2345. (#2977)- Git sync hooks now refresh the project they were installed for, even inside a larger repository, no longer break an existing hook written in another language, and run even when your hook ends with
exit. - A folder named
buildinsidesrc/is now indexed for its TypeScript, JSX, Vue, Svelte, Astro, Go, C# and Rust files instead of being skipped as build output;buildfolders elsewhere still are. - A folder git ignores at the top of your project no longer hides every folder of the same name further down, like a package's own
lib/or an app'sstatic/. Thanks @Victor-Rodriguez-Garcia. (#2849) .gitignorerules andcodegraph.jsonpatterns now follow git's rules for escapes, character classes and triple asterisks, and a lone!line no longer brings back everything ignored. Thanks @johnhldiver-beep.
Better answers from codegraph_explore and the other tools
codegraph_explore,codegraph exploreand the prompt hook no longer stall on a large project after a full index when a few files are huge, like a generated AndroidR.java. Thanks @yangfengfan2011. (#2571)codegraph_explore,codegraph exploreand the Claude Code prompt hook now answer a long query, like a pasted log or source file, in seconds on a large project instead of minutes. Thanks @retsamekohC. (#2620)- A search with a
path:orname:filter, incodegraph queryor thecodegraph_searchtool, now finds the symbols it asks for at any limit, and an offset pages through those alone. Thanks @rudycelekli. - A search in
codegraph queryor thecodegraph_searchtool now finds the symbols a pasted call names, likeres.send(body)orleaf(entry). Thanks @inth3shadows and @kjgggggg. (#2971) codegraph_exploreandcodegraph contextnow find your project's busiest file, and favor the code around it, even when many test or generated files, like protobuf stubs, are busier still. Thanks @inth3shadows. (#2578)- A qualified name like
Format.Pricegiven tocodegraph callers,callees,impactorcodegraph_nodenow names only the symbol whose scope is spelled that way, notLegacyFormat.Pricetoo. Thanks @Gobakabana and @yang0228. (#2908) - Finding the path between two symbols no longer slows down sharply, or grows its memory use, when the path is long or the graph is densely connected. Thanks @danusha2345.
codegraph impactandcodegraph_impacton a very heavily referenced symbol now stop at a safety limit and say the answer was truncated, instead of exhausting the background server's memory. Thanks @danusha2345.codegraph callersandcodegraph_callersnow list each caller at every line where it calls the symbol, and include a function that calls itself, marked as such. Thanks @Gobakabana and @johnhldiver-beep. (#2909)codegraph_exploreandcodegraph contextnow include some of the subtypes and implementors of a class or interface, and the library'sgetTypeHierarchylists all of them. Thanks @jocax and @danusha2345. (#2833)- A file named the way Google names its tests, like
wire_format_unittest.ccor a Pythonfoo_unittest.py, now counts as a test, so search,codegraph_exploreandcodegraph affectedtreat it as one. - A file in a
unittests/folder, as in LLVM, or in a folder named like a unittest, such asdcheck_unittest/, now counts as a test, while a folder named justunittest/is still production code. codegraph_explorenow leaves out of its answers every file that search treats as a test or an example, likefoo_unittest.cc, so they no longer take the place of the code you asked about.codegraph_explore's Flow now goes through the implementation your query names when an interface method has several that lead to the same place, rather than whichever came first in the index.codegraph_explore's Flow now reaches every symbol your query names, even when a shorter route gets to one of them first through a function you didn't name. Thanks @inth3shadows for the report and @johnhldiver-beep. (#2970)codegraph_explore's "Dynamic-dispatch links among your symbols" list now shows every link on its own line, with both ends named with their type, likesetter.TrySet → formSource.TrySet.codegraph_explore,codegraph_node,codegraph_callers,codegraph_callees,codegraph_impactand thecodegraph callers,calleesandimpactcommands now find a symbol written with its package, likegin.Context.Next.- When a name has more definitions than one
codegraph_nodeanswer holds, every language and top-level folder it is defined in now shows up, incodegraph_nodeandcodegraph node. Thanks @ferrine. - When
codegraph_explorefinds more dynamic-dispatch links than its list shows, the symbols you named now take turns, so each one's links make the list. codegraph_explorenow shows a function you name even when it is too long for its share of the answer, with a note on the lines cut and the query that returns them. Thanks @Huy3ko for the report and @danusha2345. (#2486)- A
codegraph_exploreanswer now first lists names in its query that the index has never seen, and points tocodegraph statusand how to index a folder skipped by default. Thanks @tippmar-nr for the report. (#2462) codegraph_explore,codegraph exploreandcodegraph contextnow find code named in Chinese, Japanese or Korean, and explore's Flow traces call chains named that way. Thanks @andy-sg and @yimingll.
Across languages
- Long chains of type aliases in TypeScript or Pascal, long Lua re-export chains and a C
#definein an included source file now resolve the same way every time, so calls no longer go missing or differ between runs. - In Python, Scala and Java, a standard-library method called on a value of unknown type, like
options.setdefault(…)orm.getOrElse(…), no longer links to an unrelated project method of the same name. Thanks @danusha2345. (#1947) - Indexes built on machines set to different languages now agree: a tie in a TypeScript, C++ or React Native Swift lookup is broken the same way everywhere, not by the system's language settings. Thanks @bompus.
- A method that hands its call on to another object's method of the same name, like
form.validate()inside its ownvalidate(), no longer links that call back to itself, so it no longer looks recursive. Thanks @danusha2345. - In Java and Scala a call with no receiver, and in Python, TypeScript and JavaScript a call on
selforthis, now links to its own class's method or an inherited one, not a same-named method of another class. Thanks @danusha2345. (#1952) - In C++ and Rust, a call written with a qualifier, like
Status::OK(), now links to a method of the class it names, never to one of a class whose name only ends the same way. - In a repository that mixes languages, a web framework's naming conventions now link only code written in that framework's own languages, so Express's no longer link Go or Python code.
- A name that only one definition in its own file can mean is no longer marked as an uncertain match, and now wins over a framework's weaker same-named guess in another file. Thanks @danusha2345.
- When a project keeps copies of the same code in several folders, like Android build flavors, a call now links to the copy in the caller's own folder, even in deeply nested trees. Thanks @danusha2345.
- In Java, Kotlin, C# and Scala, each overload of an interface or base-class method now links only to the overrides with the same parameters. Thanks @hxj1225 for the report and @danusha2345. (#2663)
- In Java and TypeScript, a class that implements or extends a parameterized type, like
implements Store<String>, is now linked to it, so a call on the interface reaches the class. Thanks @danusha2345 and @paiyahooJay. (#2705) - In Java and C#, a method called on a newly constructed object, like
new SqlSessionFactoryBuilder().build(reader), now links to that class's own or inherited method. - In Java and C#, which nested types a class can name no longer depends on the order references are resolved in, so the same code always gives the same graph and one inherited from far up links every time.
- In Java, Kotlin and C#, a supertype written through its enclosing type, like
implements Api.Listener, now links to that nested type, and a Kotlin object expression is indexed as an anonymous class. Thanks @mixxer. - A call on a variable or attribute named after a class, like
clientornodelist, now prefers the class it spells whole,ClientorNodeList, over another that only shares a word with it, likeRedisCacheClient. - A call through an attribute of an imported value, like flask's
app.jinja_env.filters.keys(), no longer links to the value's ownjinja_env: the method called iskeys. - A call like
Logger.log()orlogger.log()now links to that class's own or inherited method instead of a same-named method of a class whose name merely contains it, likeFileLogger. Thanks @inth3shadows. - In JavaScript, TypeScript, Python, Go, Rust, Java and Kotlin, a function named in a top-level constant, variable or class field is now referenced only by what holds it, so callers and impact list each table once.
JavaScript and TypeScript, with React, Vue, Svelte, Angular, Next.js and more
- In TypeScript, an awaited call with type arguments, like
await api.get<T>(url), now links to the function it calls, so typed fetch wrappers no longer look like they have no callers. (#2586) - In JavaScript and TypeScript, a call or
newin a parameter's default value, likefunction renderWithNote(note = buildNote()), now counts as the function's own call. Thanks @inth3shadows. (#2588) - In React, a component rendered at module scope or in a test's
it(…)callback, likecreateRoot(el).render(<App />), now counts as rendered there, so an app's entry reaches its root component and tests show as callers. (#2587) - In JavaScript and TypeScript, react-dom's
root.render(<Popup />)no longer links to your class component'srender(), and a call on a variable declared outside its function now goes by that declaration's type. Thanks @inth3shadows. (#2589) - In JavaScript and TypeScript, a call on a browser object, like
window.open('/help')orlocalStorage.getItem('token'), no longer links to a same-named method in your own wrapper. Thanks @Gobakabana and @KissFeng. (#2907) - In JavaScript and TypeScript, a method called on a freshly constructed object, like
new Runner().run(), now links only to that class's own or inherited method, not an unrelated namesake. Thanks @danusha2345. (#1945) - In JavaScript, a call in a file that gives an object that method itself, with
Sha256.prototype.update = function…, no longer links to the only method of that name in some other file. - In JavaScript and TypeScript, a call in an
if,while,forordobody without braces no longer links to a same-named method in another file when the name is the file's own, like asetOpenfromuseState. (#2585) - In JavaScript and TypeScript, a method called on an element of a class field, like
this.items[0].save(), now links to the method of the field's declared type instead of any same-named method. Thanks @inth3shadows. (#2766) - In Vue and Nuxt components, calls in the template, like
@click="save(item)", and in a top-level destructuring likeconst { t } = useI18n()now link to the function they call. Thanks @deniskern, @drakeo338 and @L0garithmic. (#2340) - In Vue, a
<script lang="tsx">block is now read as TSX instead of JavaScript, so the interfaces and types it declares are no longer missing from the graph. Thanks @leadingGo, @maxmilian and @yanhongwang1017. (#2570) - In Astro, Svelte and Vue, a self-closing script like
<script src="./legacy.js" />no longer swallows the<script>after it, so that script's symbols and calls are indexed. Thanks @rezaularif and @maxmilian. (#2989) - In JavaScript and TypeScript, calls now reach the functions inside a named object literal, like
window.App = { init() {…} }, even when the object isn't exported. Thanks @tkhoaaa and @danusha2345. (#2300) - In JavaScript and TypeScript, a function exported with its name in quotes, like
exports["getItems"] = async (req, res) => {…}, is now a symbol named after the export. Thanks @johnhldiver-beep. - In JavaScript and TypeScript, a store whose name contains a
$, likeconst items$ = create(…)exported on a later line withexport default items$;, now has its actions indexed. - In JavaScript and TypeScript, an import whose name contains a
$, likeimport items$ from './store', now links the calls made through it, so the functions they call no longer look unused. - In JavaScript and TypeScript, a function declared inside another function now takes the calls to its name there, even when the file also imports that name from a package. Thanks @danusha2345. (#1715)
- In JavaScript and TypeScript, a store whose name starts or ends with a
$now has its actions indexed when anexport { … }list on a later line exports it, as inexport { items$ };. - In JavaScript and TypeScript,
codegraph syncand the file watcher now also link the imports of an added or restored file whose name many other imports share, like a project's ownutils.ts. codegraph syncand the file watcher now link an import of a folder two or more levels up, likeimport { Excalidraw } from "../..", to that folder'sindexfile when that file is added or restored.codegraph syncand the file watcher now link a navigation call to its page when the page or route is added or restored, in React Router, Next.js, Expo Router, Vue Router, TanStack Router, SvelteKit and Angular.- In Nuxt, a
navigateTo('/login')call now links to the page it opens, so a flow through a Nuxt redirect no longer stops there. Thanks @naashw for the report. (#2634) codegraph syncand the file watcher now link a route to the page or layout it loads lazily when that file is added, restored or gets the route's component in a later edit, in React Router, Vue Router and Angular.codegraph syncand the file watcher now link a default, namespace or aliased import and its uses when its module is added, restored or gets the export later, in JavaScript, TypeScript, Vue, Svelte and Astro.codegraph syncand the file watcher now also link a call on an imported name, likestore.get(key), when its module is added, restored or gets the export later, in JavaScript, TypeScript, Vue, Svelte and Astro.- In JavaScript and TypeScript,
codegraph syncand the file watcher now also link a call on a variable declared with an imported class, likecache.get(key), when its module is added, restored or gets the class later. codegraph syncand the file watcher now also link a name imported from a barrel module when an edit later makes the barrel re-export it, in JavaScript, TypeScript, Vue, Svelte and Astro.- In JavaScript and TypeScript,
codegraph syncand the file watcher now update a barrel's importers when an edit moves, removes or narrows one of its re-exports. Thanks @inth3shadows and @danusha2345. (#2978) - In TypeScript and JavaScript, an array method call like
items.find(…)on a variable or parameter annotated as an array of a class (items: Item[]) no longer links to the class's method of the same name. - In TypeScript and JavaScript, a call on a value annotated as a type's property, like
editor: IChatWidget['inputEditor'], now links only to a method of that property's declared type. - In TypeScript and JavaScript, a call on a callback's untyped parameter, on a variable set from a function's result, or on a value a type guard like
if (!editor.hasModel()) return;narrows now links to the method of the type the code gives it, not a namesake on a base type. - In JavaScript and TypeScript, a file that re-exports a module, like an
index.tswithexport * from './button', now counts as importing it, socodegraph affectedincludes the barrels that re-export it. codegraph syncand the file watcher now also update the files that import through anindex.tsre-exporting another barrel, likeexport * from './dropdown-menu', when that inner barrel is deleted or added.- An import in a Vue, Svelte or Astro component now links the component to the file it imports, as in a script, and so does an import of a scoped package that a
tsconfigpath or workspace maps to a project file. - In a pnpm, npm, Yarn or Bun workspace, packages reached by a deep glob like
packages/**/*or by part of a folder name now count as part of the project, and a negated glob now leaves packages out. - In a project that uses Vue, an import through an
@/or~/alias now links the file it imports, socodegraph syncand the file watcher update the importers when that module is added or deleted. - In JavaScript, TypeScript, Vue, Svelte and Astro,
codegraph syncand the file watcher now move an import written without an extension to a newly added file that comes first, such asbutton.tsnext tobutton.vue. - Support for frameworks such as Angular, React Router, Vue Router, SvelteKit and TanStack Router now switches on when an app's
package.jsonsits deep in the project, like an ASP.NET solution'ssrc/Web/ClientApp/. - In JavaScript and TypeScript, a subclass's
staticmethod no longer counts as overriding a base-class instance method of the same name, or the reverse. Thanks @inth3shadows for the report and @yang0228. (#2761) - In TypeScript and JavaScript, a class in a
.tsxor.jsxfile now links its base class's and interfaces' methods to its overrides, socodegraph_explorefollows a call through the base into the override. - In JavaScript and TypeScript, a
super.run()call now links to the parent's method, or the nearest ancestor's, socodegraph_exploreand impact follow an override into the method it builds on. Thanks @Puma7. (#2497) - In JavaScript and TypeScript, a named class expression, like
module.exports = class MultiCompiler {…}, is now indexed as a class with its own methods and the class it extends. Thanks @Puma7. (#2499) - In Angular templates, a property binding, interpolation, structural directive or control-flow block now links the component to the members it calls or reads, so one used only from a template no longer looks unused.
- React Router routes kept in a table of their own, like a
routesarray imported intouseRoutes(routes), are now indexed, each linked to the page itselementrenders, past guards and lazy imports. - In
.jsxfiles, the components and functions that read a constant or variable declared at the top of the file now show up in its impact, as they already did in.jsand.tsxfiles. - React Router routes written as JSX now read
<Route index>the way route objects do, as the page at its parent's address, and a parent route counts as the layout of the routes nested in it. - In JavaScript and TypeScript, a module loaded with
require('./x').defaultnow links to its default export when it is written as an ES module, so anewor a call made through it links too. - In JavaScript and TypeScript, a member of a module loaded with
require('./x')or a default import, likeutils.clean(), now links to what that module exports under the name, not to the first function it declares. - A React Router route that lazily loads a folder, like
lazy: () => import('@/pages/invocation_page'), now links to the page the folder'sindex.tspasses on, even through anotherindex.ts. - A React Router route whose
lazyloader picks its page from the module it loads, likeimport('./reports').then((m) => ({ Component: m.ReportList })), now links to that page rather than the module's default export. - A React Router route, or a page loaded with
lazy(() => import(…)), now links to its page when the folder it loads passes the page on through an import of its own, rather than to nothing. codegraph syncand the file watcher now link a lazily loaded React Router route to its page when the page appears, or gains the export the route reads, in a folder below the one the route loads.- React Router routes are now indexed when the router gets its table from a function through a variable, like
const routes = getRouteMap({ … })thencreateBrowserRouter(routes), as in Medusa's admin dashboard. - A React Router route written as
element: <Outlet />orComponent: Outletnow counts as rendering nothing of its own, rather than takingOutletfor its page and for the layout of the routes inside it. - React Router routes are now read from every table a route-building function returns, and never from a list a function written inside it returns, so an empty guard or a callback's list no longer hides an app's routes.
- In JavaScript and TypeScript, an import written
import { default as AppRoot } from './routes/app/root'now counts as the module's default import, in Svelte, Vue and Astro script blocks too. - In JavaScript and TypeScript, an import now links to what the module itself exports under that name, rather than to a method of the same name in an exported object. Thanks @inth3shadows. (#2945)
- In JavaScript and TypeScript, a top-level value that only hands a function on, like
const parse = marked, now links to that function, socodegraph_explore, callers and impact follow the flow through it. - In React, a component's JSX no longer links it to a class or component that only shares a name with one of its type arguments, like
useState<User>(), or with a variable of its own. - In React, Svelte, Astro and Vue, a component used without an import that has several definitions now prefers one in the using file's own folder or a folder below it, compared folder by folder. Thanks @Mubashirrrr.
- In React, a tag for a component a function destructures from its props or an object, like
({ Header, Footer, children }) =>, now links to nothing unless the function declares a component of that name inside itself. - In React, a tag for a component a file destructures at its top, like
const { Title, Text } = Typography;, now links to nothing in that file, unless a component there declares one of that name itself. - In React, a tag a component only mentions in a comment or a string, like a JSDoc example or an error message, no longer links it to that component, and nothing in a TypeScript
.tsfile is read as a tag. - In JavaScript and TypeScript, a name imported from a package your
package.jsonlists no longer links to a same-named project symbol whentsconfig.jsonorjsconfig.jsonhas a catch-all path alias. - In JavaScript and TypeScript, a
tsconfig.jsonorjsconfig.jsonpath alias with text on both sides of its*no longer matches an import that leaves nothing for the*, as TypeScript skips it too. Thanks @Dashsoap. - In JavaScript and TypeScript, a function the file imports from a package and passes along as a value, like react-router's
Linkinstyled(Link), no longer links to a project function that only shares its name. - In JavaScript and TypeScript, a function a file loads with a dynamic import from Node or a package no longer links to a project function that only shares its name. Thanks @Ancienttwo for the report. (#2491)
- In JavaScript and TypeScript, code outside your tests no longer links to a Jest or Vitest manual mock under
__mocks__/, so the real function keeps its callers. Thanks @Y-Osawa2022 for the report and @danusha2345. (#2455) - In JavaScript and TypeScript, an import of a package from your own repository, a
file:dependency included, now leads to the file itspackage.jsonnames. Thanks @elderbernardi, @Y-Osawa2022, @maxmilian and @danusha2345. (#2502, #2456) - In JavaScript and TypeScript, a call or
newno longer lands on an interface or a type alias, and a global likenew Response()no longer links to a project type that only shares its name. - In JavaScript and TypeScript, a value the file imports from your own project and passes along, like a constant, a class or a stylesheet, now links only to what it imports, not to a same-named function elsewhere.
- In JavaScript, a
.jsor.jsxfile's import of a TypeScript module written without an extension now links to that module, as it already did from a TypeScript file. - In TypeScript React code, a styled-components or emotion component declared with a type argument, like
styled(Base)<Props>, is now indexed as a component, socodegraph callersand impact find what renders it. codegraph syncand the file watcher now move a React Router route to its lazily loaded page when the page's file is added later, comes back after being deleted, or gets or changes its default export.codegraph syncand the file watcher now link a component to the JSX that renders it, like<Team />, when the component is added in a file with no JSX of its own, so it no longer looks unused.- In JavaScript and TypeScript, a default import now links to what the module's
export defaultstatement exports, wherever it sits, instead of the first function it exports, like a React Router page'sloader. - In JavaScript and TypeScript, a line like
export default Appinside a template literal, as code generators write, no longer counts as the module's default export. Thanks @inth3shadows and @johnhldiver-beep. (#2968) - In React and Vue, a tag for a component imported from a package, like
<Button>from antd, no longer links to a component, function or class in your repository that only shares its name. - In React with TypeScript, a component that renders a generic component with type arguments, like
<PaginatedList<Document> items={…} />, now links to it, so the generic component no longer looks unused. - In React, a component a file declares itself as a value, like a lazily loaded page, a wrapped component or an alias, is now what that file's JSX renders, not a same-named component elsewhere in the repository.
- In React, a JSX tag imported from one of your own modules now links to the component that module exports under that name, also through an
indexfile, a barrel or a wrapper, instead of being matched by name. - An Express route keeps its named handler when a middleware before it contains an arrow function, like
(req, res, next) => next(). - In TypeScript, a type re-exported through a barrel, like
export type { Foo } from, now links to its real declaration, and import lists with comments, string names or a JSDoc@importare read correctly. - In TypeScript, a file with
export type * from './types'now parses cleanly instead of being listed bycodegraph statusas unparsable. Thanks @gavinwilliams and @danusha2345. (#2474) - In TypeScript and JavaScript, a call through an inherited field, like
this._store.add(…), now links to the method of the field's class, and one typed by a package's class no longer links to a project namesake. - In TypeScript and JavaScript, a call on a variable, parameter or field whose class the file imports now links to that imported class's method, not to a same-named vendored copy, test mock or another app's class.
- In TypeScript and JavaScript, and in Vue, Svelte and Astro components, a call on a value another file exports now links to the method of the class that file imports or declares, not a same-named class elsewhere.
- In TypeScript, a call through a field a wrapper sets up, as vscode does for its event emitters, now links to the method of the class handed to the wrapper, when the wrapper hands back what it is given.
- In TypeScript and JavaScript, a class that constrains a type parameter is now read as extending the class after its type parameters, not the constraint's type, even across several lines or below a decorator.
- In TypeScript, an abstract method is now indexed as a method of its class, so a call through a value typed as an abstract class, common for Angular services, links to it and on to the classes that implement it.
- In TypeScript and JavaScript, a call on a field or variable whose class the file imports now looks through that class and the classes and interfaces it extends before any other class of the same name.
- In TypeScript and Flow, a call on a parameter, local or field typed by an alias of a class now links to that class's methods, also through a nullable alias or an alias of an alias.
- In TypeScript, a call on a value of an interface that extends one also declared as a constant, like vscode's
ITerminalLogService extends ILogService, now links to the method the extended interface declares. - In TypeScript, a field or variable set from Angular's
injector vscode'screateInstancenow has the class that call is given, so calls through it link to that class's methods. - In JavaScript and TypeScript, a call to a method whose name contains a
$, like RxJS-stylethis.organizationService.organizations$(userId), now links through its receiver's type like any other method call. - In JavaScript and TypeScript, an import written from a jsconfig or tsconfig
baseUrlor catch-all paths, as Create React App and Vite templates do, now links to its file instead of being taken for an npm package. codegraph syncand the file watcher now relink an import through a barrel that renames it, likeexport { default as MatxLoading } from './MatxLoading', once an edit gives the module what is imported.- In JavaScript and TypeScript, a barrel's
export { A, B as C } from './x'now links each name it passes on to what./xexports, following further barrels, rather than to a same-named symbol elsewhere. - In TypeScript and JavaScript, an import of a package your project declares with
declare module '…'in a.d.tsfile now links to that declaration, socodegraph callersand impact show the code using your typings. - In TypeScript, an interface that extends other interfaces is now linked to each of them, so the type hierarchy, impact results and calls on a value typed by it follow the interfaces it inherits from.
- In TypeScript and JavaScript, a declaration inside a
.d.tsfile'sdeclare module '…'now links only from files that use that module, not from any file using the same name. - In TypeScript and JavaScript, a call to a function's own parameter, like
compare(a, b), no longer links to a same-named function elsewhere or an import, such as a Promise executor'sresolve(…)topath.resolve. - In TypeScript and JavaScript, a name ending in
$, likesyncState$, is no longer read as declaringsyncState, so a call to an importedsyncState(…)beside it keeps its link. - In TypeScript, a type a file uses without importing it, like
Omit<T, K>or the DOM'sEvent, now links to the file's own type or a global one, not to a same-named type another module of your project declares. - In TypeScript React files, a type annotation no longer links to a component of the same name, so
codegraph callersand impact no longer list it as a use of the component. - In React, a component declared through a wrapper, like
styled(ActionButton)ormemo(Button), now links to the component it wraps, socodegraph_explore's render flows, callers and impact go on through the wrapper. - In TypeScript, a type written with a qualifier, like
React.ReactNode, now links to the member of what the qualifier names, not to a class or component of your own that shares its name. - In JavaScript and TypeScript, an import written from the app's root with a leading slash now links to the file it names when the app's
tsconfig.jsonorjsconfig.jsonmaps it, instead of being taken for a package. - In JavaScript and TypeScript, an import spelled with a trailing slash, a
./or../segment or a doubled slash now links like the plain spelling. Thanks @inth3shadows and @JiaMingWang-CN. (#2577) - In JavaScript and TypeScript, a call whose callee is not a name, like an immediately invoked function, no longer stores the callee's whole source text in the index, and
(fn)()now links tofnasfn()does. codegraph syncand the file watcher now follow an edit that changes which declaration a module exports as its default, or drops it, so imports and references through it match a fresh index.codegraph syncand the file watcher now relink a named import to its module once an edit makes the module export that name, instead of keeping a name match's link to a declaration elsewhere.
Python
- In Python,
import a.b as Xwritten inside a function now links its calls likeX.f(), as the same import at module level already did. Thanks @Egrn. (#2600) - In Python,
other.update(…)afterfrom pkg import otherno longer links into the module when a parameter, local or loop variable namedothergives it another value. Thanks @BGamboa13. (#2632) - In Python,
from app import emailno longer links the importing file to a project variable namedapp, such as a FastAPI or Flaskapp = FastAPI(). (#2584) - In Python, a from-import of a module with no dot in its name, like
from loader import Registry, now links the importing file to that module's file, socodegraph affectedand impact no longer miss its importers. - In Python, a call through a module-level instance, like
_svc.delete(obj)after_svc = SceneService(), now links to the method its class has or inherits, even when other classes have a method of that name. (#2582) - In Python, a call like
Repo.save()orrepo.save()withclass Repo(Base[User])no longer links to a method of the base's type argument, likeUser.save. Thanks @JosefAschauer. - In Python, a class with a parameterized base, like
class Leaf(Base[str]), is now linked to that base, asclass Leaf(Base)already was, and a call through a module global holding one reaches the base's methods. Thanks @JosefAschauer. - In Python, a class whose base list is wrapped over several lines, as black and ruff write a long one, now reaches the methods its bases declare, as a one-line base list already did. Thanks @JosefAschauer.
- In Python, a base class imported from outside the project, like
class Item(BaseModel)afterfrom pydantic import BaseModel, no longer links to a project class that only shares its name. - In Python, a call on a class whose base comes from outside the project, like
Color.name_of()withclass Color(Enum), no longer links to a method of a project class that only shares the base's name. - In Python, a class written with PEP 695 type parameters, like
class Repo[T](Base[T]):, now reaches the methods its bases declare, as a class without type parameters already did. Thanks @JosefAschauer. - In Python, a function handed on before its name is rebound, like
view = wrap(view), now always links to that function, so the graph of the same project no longer differs between runs. - In Python, a call to your own class's method named like a built-in one, such as
getorupdate, now links when the function says what the variable holds, likereg = SystemPackRegistry(). Thanks @inth3shadows. (#2583) - In Python, a call on a module imported from outside your project, like
subprocess.run(…)afterimport subprocess, no longer links to a project method that happens to share its name. Thanks @Egrn. (#2599) - Indexing large Python projects is much faster again and needs less memory: since 1.6.2, resolving Python references re-read source files over and over. Thanks @bompus. (#2332)
- In Python,
codegraph syncand the file watcher now link an aliased import, likefrom .models import User as UserModel, and every use of the alias when the module is added, restored or gets the name later. - In Python,
codegraph syncand the file watcher now link imports of a name a package re-exports when its__init__.pyis added or gains the re-export, and, in any language, no longer skip a module many references wait for. - Python calls through an attribute, like
self.sink.stop(), now reach the method of the class your code gives that attribute instead of one matched by name alone. Thanks @inth3shadows. (#1704) - A Python call through an attribute set by a factory or a base class's
__init__, or straight on a factory's result, likeClient.from_env().send(), now reaches the right method. Thanks @inth3shadows. (#1704, #750) - Python imports now resolve from your package roots, like
src/layouts and eachpyproject.toml, soimport requestsno longer links to a same-named file in a test fixture or vendored copy. (#1704)
Java, Kotlin and Scala
- In Play projects, a route or a call like
MediaType.parse(...)now links to a method of the class or object it names, and a call to an overloaded method to the overload its arguments fit. Thanks @danusha2345. - In Spring projects, a route now links to its handler when the method has no access modifier, like
@GetMapping List<Article> list(), so the handler no longer looks unused. Thanks @Liurchen. - In Scala, a call like
Uci.Move(from, to)now links to the case class or nested object it builds, rather than to nothing or to an unrelated Java constructor. Thanks @danusha2345. - In Java, a
recordis now indexed as a class with its methods, constructors, component fields and accessors, so calls on a record link and records show up in callers, impact and implementations. Thanks @danusha2345. - In Java, more calls now resolve on the type their receiver is declared with, and a call on a library type, like Android's
Parcel, no longer links to a same-named method of your own. Thanks @danusha2345. - In Java, a call now links to the overload its arguments fit, by how many there are and their types, and a lambda or method reference reaches the overload that takes a functional interface.
- In Java, a call on a value held in a static field, like an enum constant's
Color.RED.hex(), now links to the method of the field's type rather than being guessed by the method's name. Thanks @mixxer. - In Java, reading another class's constant, like
InferenceString.PARSER, no longer counts as reading a constant of the same name in the file doing the reading, so impact leaves out code that never touches it. - In Kotlin, a call on what one of your functions returns, like
repository().pending(1), now links to the method of the type that function declares. Thanks @mindcipherrr for the report. (#2805) - In Kotlin, a call through a property now links to the method of the type it is declared with, and a call on a type from outside your project no longer links to a same-named method of your own. Thanks @danusha2345.
- In Kotlin, a
fun interfaceis now indexed as an interface with its methods, rather than as a broken function that could also lose the declaration after it. Thanks @danusha2345. - In Kotlin, a
private valorprivate varproperty, and the members of aprivateclass or object, no longer take calls from other files. Thanks @danusha2345. - In Kotlin, a call on a library type you import, like Jetpack Compose's
Modifier.pad(), now links to the extension your project declares on that type when the calling file can see it. Thanks @danusha2345. - In Kotlin, when two packages declare a class of the same name, a call on a value of that type now links to the one the file imports, and so does a Java call on such a class. Thanks @arttttt. (#1942)
- In Kotlin and Java, a call through an import of a class written in the other language now links to that class, rather than to a same-named class in another package or to nothing. Thanks @mixxer.
- In Kotlin Multiplatform, a call through an import now reaches what the caller compiles against: the
expectfrom common code, the platform'sactualfrom Java or platform code. Thanks @inth3shadows and @johnhldiver-beep. (#3033)
C# and VB.NET
- In VB.NET, every member of a
Structureis now indexed, including its fields, properties, methods, constructors and nested enums, where before only the first one was. - In VB.NET and C#, what a property's
GetandSetcode calls, creates and reads now belongs to that property, so a method used only from a property no longer looks unused. - In VB.NET, a field or property initializer like
= Compute()orAs New List(Of Order)now links what it calls and creates, and so do aCustom Event'sAddHandler,RemoveHandlerandRaiseEventblocks. - In C#, a field or property initializer like
public List<Foo> Items { get; } = new();now links what it calls, creates and reads, so a method or class used only from one no longer looks unused. - In C# and VB.NET, a constant no longer stands in for a type with the same name, so
new Version(…)no longer links to aconst string Version. Thanks @EvanYu1980 and @drakeo338. (#2337) - In C#, a name written with type arguments now means a type with that many type parameters, so
new List<Brand>()inside a Blazor page calledListno longer links to the page. - In VB.NET, a call on a variable, parameter, field or property now reaches a method of its declared type, one it inherits or an extension method, instead of any project method that merely shares the name.
- In VB.NET, a call to one of .NET's own methods such as
Add,ContainsorDisposeon a value of unknown type no longer links to a project method of that name, unless the value is named after its class. - In VB.NET, a type name is now looked up the way VB.NET does it, through the namespaces around it,
Importsand the caller's own project, so a class declared in several places no longer draws every call to one copy. - In VB.NET, a call with no receiver, or on
Me, now reaches only a member of its own class, a class it inherits or a Module, not a nearby class's member of the same name. - In VB.NET, designer code such as
New System.Drawing.Point(…)no longer links to a project type or member that only shares the name, and a nested class is matched by its bare name only from inside its class or one that inherits it. - In VB.NET, reading or setting a
Sharedfield or property through its class or module name, likeAppSession.SessionId, now counts as a use of that member and the class. Thanks @serkanince and @ChrisPrapas. (#2305) - In VB.NET, a name that begins with a keyword, like
SharedCache, is now indexed whole, so reads of and calls to it link, and aPrivate Protectedmember counts as private instead of public. - In VB.NET, reading or setting a field or property through a variable,
Me,MyBaseor aWithblock, likex.Normal = 3, now counts as a use of that member incodegraph callers. - In VB.NET, a type or member read through a namespace now links to what it names, and a method called without parentheses links to the overload that takes no arguments. Thanks @serkanince for the report. (#2305)
- In VB.NET, a field, property or Module variable written by its bare name before a member, like
Button1inButton1.Text = "x", now counts as used, socodegraph callerslists the code that reads through it. (#2305)
Swift and Objective-C
- In Objective-C, a struct, union or enum defined in a variable declaration, or a typedef written after a line holding only a macro, is now indexed with its enum values, as in C and C++.
- In Objective-C, a macro alone on its line, like
NS_ASSUME_NONNULL_BEGIN, no longer hides the declaration below it, which left many classes and protocols missing from the index. - In Objective-C and the C and C++ headers beside it, an enum declared with Foundation's or CoreFoundation's macros, like
typedef NS_ENUM(NSInteger, SDImageCacheType) { … };, is now indexed with its values. - In Objective-C, the doc comment above a method, function or static written inside an
@implementationis now read as its description, so search andcodegraph_exploreshow it. - In Objective-C, file-scope constants and globals, like error domains, notification names and keys, are now indexed with their values, also when written inside an
@implementation. - In Objective-C, a message to an instance variable or a property now reaches a method of the class it is declared as, instead of one matched by the receiver's name.
- In Swift, a call written after
!or another prefix operator, or chained aftertryorawait, now links to what it calls, likeif !isReady()toisReady. - In Swift, a call on a local created through
try,try!,try?orawait, or with a generic type's constructor, now links to that type's method instead of being left unlinked or matched by name. - In Swift, a call now links to the overload that fits when two differ only in taking a closure, and a trailing closure now counts among the arguments, so
clearCache { … }reachesclearCache(completion:).
C and C++
- In C, C++ and Objective-C, a struct or class member declared as a pointer, reference, array or function no longer makes
codegraph_exploreand impact list the member's type as a base class. - In C, C++ and Objective-C, a struct, class or union now links to the types its members are declared with, and a
typedeforusingalias to the type it names, so impact on a type reaches every struct that holds one. - In C and C++, a function-pointer table's handler, like
.read = impl_readin an ops struct, now links to the C function the table names, not a Python or Rust function that only shares its name. Thanks @bompus. - In C++, a call through a template parameter now links to that member of each class the project writes as the template's argument, so
codegraph_explore, callers and impact follow a flow through the template. - In C++, a call on a variable, parameter or member declared through a
typedeforusingalias now links to the method of the type the alias names, with the alias looked up the way C++ does it. - In C++, indexing no longer fails with "Maximum call stack size exceeded" on a call whose arguments call the same overloaded method. Thanks @JosefAschauer.
- In C++, a call on a variable, parameter or member declared with nested template arguments, like
autovector<std::pair<int, FileMetaData*>>, now links to the method of the class it is declared as. - In C++, a base class now links to the class C++ itself would pick, not a class of the same name in another namespace or language, so
codegraph_explore's type hierarchy and impact show the right base. - In C++, a call through a class template's specialization written with its arguments no longer links to a member defined for another specialization or to another class's method of that name.
- In C++, a function is now named by its declarator, never by something written in the clauses after its parameters, like
throw(std::bad_alloc), so such functions are no longer missing or misnamed. - In C and C++, a header or source file named like a test, such as
conformance_test.h, now counts as part of the code that#includes it, so calls from that code into it link. - In C++, a class, struct or method now keeps the namespaces and the class it is declared in when the parser misreads something earlier in the file, such as an unknown macro in front of a member.
- In C, an
#ifgroup whose branches aren't whole statements no longer turns into functions namedif, so functions that were missing or nested inside another are indexed with their calls. Thanks @danusha2345. - In C++, a call on a variable, parameter or member declared as a standard-library or other outside type, like
std::stringorstd::vector, no longer links to a project method that only shares the method's name. - In C++, a class written with attribute macros the parser can't read, between
classand its name or on its members, now keeps its members, so protobuf's generated message classes are no longer missing. - In C++, a call on a range-based
forloop's variable now links to the method of the type the loop declares, rather than one matched by the variable's name alone. - In C++, a call made with
->on astd::unique_ptr,std::shared_ptr,std::optionalor a container's iterator, or on an element a container hands out, now links to that method of the type it holds. - In C++, a call a method makes with no receiver, or through
this->, now links to the method C++ itself would call, not another class's method of that name. Thanks @danusha2345 for the report. (#1952) - In C++, a call on the variable of a range-based
forloop overautoelements now links to the method of the type the loop goes over, and no longer to a project method when the elements are a standard-library type. - In C++, a call on a variable, parameter or member declared as one of your classes now links to the method of the class C++ itself finds for that type, or one it inherits, not a namesake nested elsewhere.
- In C++, a method defined by a macro of the same file is now indexed where the file invokes the macro, so calls to it link.
- In C++, an explicit specialization of a function or member function template is now indexed under its template's name, so search finds it and calls link to it.
- In C++, a call to an overloaded function outside a class now links to the overload its arguments fit, by their number and types, and never to one only another source file can see.
- In C, a call now links to the function of that name its own file can see: its own, else one a header it includes defines, else one another source file defines without
static. - In C, a function whose return type is written as a macro call, like
GIT_EXTERN(int) git_blob_dup(…);, is now indexed, and calls to it link to it. Thanks @xhoms and @danusha2345. (#2470) - In C++, text inside a string literal is no longer taken for a variable's declaration, so a later call on a variable of that name is no longer matched against the type that text seemed to name.
- In C++, a call on an
autovariable now links to the method of the class its initializer gives it, read from a cast,new,std::make_uniqueor a function's declared return type. - In C++, a call on a data member of the calling method's class, or of a class it derives from, now links to the method of the member's type wherever the class is declared.
- In C++, a member declared inside an anonymous union or struct is now found as a member of the class around it, so calls on it link to its type's methods, as in protobuf's generated messages.
- In C++, a type a header names for a class its source file defines, like the
Repof a pimpl'sRep* rep_, is now found for the code in that source file, so calls through it link to the right classes. - In C++, a
->on a value of one of your own classes now follows that class'soperator->, or itsoperator*, as C++ does, so calls through your iterators and smart-pointer wrappers link to the right classes. - In C++, a variable, parameter or member whose declaration puts a qualifier or an annotation around its name, like
Env* const env_;, is now read for its type, so calls on it link to the declared class's methods. - In C++, a call on a name a structured binding declares, or on what a
std::functionreturns, now links to the method of the type C++ gives it. - In C++, a call written without a receiver in a gtest
TEST_ForTEST_Pbody now links to the test fixture's method, its own or one it inherits, instead of a namesake in another class. - In C++, a call made with
->on anabsl::StatusOr, anabsl::optionalor anabsl::NoDestructornow links to the method of the class it holds, as one on astd::unique_ptrdoes. - In C and C++, a call or a type name no longer links to something only another source file can see, like a class a
.ccfile declares for itself or anything in its unnamednamespace { … }. - In C++, a call to an overloaded method, on a variable or without a receiver, now links to the overload its arguments fit, by how many there are and then by their types.
- In C++, a nested class defined outside the class it belongs to, like
struct BlockBasedTable::Rep { … }, is now indexed under its own name with its methods and members, so search andcodegraph_explorefind it. - In C++, a call whose receiver's type can't be read no longer links to a method of a class nested in the class the receiver's name suggests, or of a class whose name only contains that name.
- In C++, an alias that names a class through a class derived from the one that declares it now leads to that class, so objects created through the alias link to the class rather than the alias.
- In C++, a name written in a googletest
TEST_ForTEST_Pbody now finds the test fixture's nested types first, and a class declared inside a function is only found from that function. - In C and C++ tests, a name that several files declare now links to the one the test's own includes declare, when there is one, not one in a file the test never includes.
- In C and C++ code outside tests too, a name that several files declare now links to the one the file's own includes declare, when there is one.
- In C, C++ and Objective-C, a call into a function that another of the three languages defines now links to it even when the name has more than one definition. Thanks @ferrine. (#1662)
- In C and C++, a call of a function a header declares now links to its definition even when the file that defines it reaches that header only through other headers.
- In C++, a declaration continued on a line that starts with
*is now read rather than skipped as a comment, and code commented out in a/* … */block, or a string literal's text, is no longer read as a declaration. - In C++, a call with a comparison or a shift among its arguments, like
WriteVarint(num << 3, s), is now read with the right number of arguments, so it links to the overload that fits. - In C++, a call passing
nullptrnow links to the overload that takes astd::nullptr_trather than one taking a pointer, and a call no longer links to an overload declared= delete. - In C++, a variable or parameter declared over more than one line, with its type on a line above its name, now has its type read, so calls on it link to that class's methods.
- In C++, a variable initialized from a call of a member function template with explicit template arguments now has the type that template returns for them, so calls on it link to that class's methods.
- In C and C++, a call written from the global scope, like
::leveldb::RepairDB(…), now links to the function of exactly that name, and one through a namespace alias to the function in the aliased namespace. - In C and C++, a struct, class, union or enum defined in a variable declaration, like
struct Foo { … } foo;, is now indexed with its methods and enum values, and an unnamed one takes the variable's name. - In C and C++, a macro alone on its line right below an
#include <…>, like GLib'sG_BEGIN_DECLS, no longer hides the declaration that follows it, as it did in nearly every GLib header. - In C++, every name a declaration lists, like
data_inTable *index_, *data_;, now has the declaration's type, so calls on it link to that class's methods, not just calls on the first name. - In C++, a call on a parameter, a local lambda or functor, a lambda's parameter or a range-
forvariable no longer links to a function or method elsewhere that only shares its name. - In C++, a call through a class the index doesn't hold, like protobuf's
FeatureSet::descriptor(), no longer links to the same-named method of a class that only shares a word with it. - In C++, a call through a namespace, like
fmt::ptr(p), no longer links to a class's method that only shares its name, and a call through a namespace a macro opens now links to what that namespace declares.
Go and Rust
- In Go, calls through a receiver or parameter of an unexported type, the usual shape of gRPC and HTTP handlers, now resolve within that type's own package, including methods it gets by embedding. Thanks @GoDiao. (#2323)
- In Go, a type a file gets from a dot import is now looked up in that package, not a same-named type elsewhere, and a name from an outside package's dot import no longer links to a project type. Thanks @GoDiao. (#2323)
- In Go, a call through a type assertion, like
srv.(KVServer).Range(ctx, in)in generated gRPC code, now links to the asserted type's method, so gRPC handlers no longer point at theUnimplemented…Serverstub. - In Go, a call through a variable that holds a type assertion's result, like
st.Fetch(key)afterst := v.(storage.Store), now links to that method of the asserted type, as a call through the assertion itself does. - In Go, a method called on an element of a slice, array or map, like
pods[i].DeepCopy(), now links to that method of the element's type, and to nothing when that type is built-in or from outside your project. - In Go, a method called further along a chain, like
WhereandFirstin a GORM query, now resolves through the type the chain has reached, not by its name alone. Thanks @BX-D and @inth3shadows. (#2543) - In Go, a method called on a variable holding a call's result, like
r.Reset()afterr := newRing(), now links to the returned type's method, not one that only shares its name. Thanks @danusha2345. (#1954) - In Go, a conversion like
Category(s)now counts as a use of the type, and calls from external tests or to a per-platform definition now link where Go says they go. Thanks @inth3shadows for the report. (#2581) - In Go, a method declared in a file too large to index, like a Kubernetes API type's
String, is no longer replaced by the same-named method of a type it embeds, likeTypeMeta'sString. - In Go, calls into a module whose
go.modisn't at the project root now resolve, and a name written through a package links to that package's symbol. Thanks @GoDiao and @danusha2345. (#2322) - In Go, an exported type written without a package, like
Nodeinfunc Walk(v Visitor, node Node), now links to the type of that name in its own package, not a same-named struct in an unrelated package. - In Go, a function or method passed as a value, like
sync.Pool{New: wm.new}, now shows the function that passes it among its callers even when it is namednewornil, so it no longer looks unused. - In Go, a type in a parameter, a result or a composite literal now always links to a type, never to a method or function that shares its name, and to its own package's type when there is one.
- In Go, a type declared on its own now keeps the comment above it as its documentation, as one in a
type ( … )group did, and a comment at the end of a code line no longer documents the declaration below it. - In Go, a declaration's documentation is now just the comment right above it, as
go docshows it, so a banner, TODO or commented-out code separated from it by a blank line no longer becomes part of it. - In Go, a comment directive above a declaration, like
//go:embed static, is no longer part of its documentation, asgo docshows it. - In Go, a constant in a
const ( … )group now keeps the doc comment written above it, instead of the group's comment, so searching for what a constant means can find it. - In Go, variables declared in a
var ( … )block, like gin'sbinding.JSONor prometheus's metric counters, are now indexed with their doc comments, so the calls and types in their values are recorded. - In Rust, code that uses an enum only through its variants, like a
Mode::B =>match arm, now counts in that enum's callers and impact, linked to the enum declaring the variant. Thanks @mg-mg-mg and @danusha2345. (#2328) - In Rust, a call through a module path, like
crate::util::take(3), and auseof a function now link to the function that module declares, not a same-named method or nested function. Thanks @danusha2345. (#2308) - In Rust, a renamed
use, auseinside a function and a path through apub usenow reach the item they name, and a call to a local or parameter named like a function no longer links to it. Thanks @danusha2345. (#2308) - In Rust, a call through a type that a path or
usenames, likeItemPool::for_def(…), now links to that type's own function or variant, even when a same-named type elsewhere has one too. Thanks @BGamboa13. (#2631) - In Rust, a module loaded with
#[path = "…"], like tests kept in another folder, is now part of the module that declares it, so itsuse super::*,super::andcrate::start from there. Thanks @seonghobae. (#1892) - Axum and Actix routes now link to their handler when rustfmt puts it on a later line or its name also appears elsewhere on the line. Thanks @mg-mg-mg and @danusha2345. (#2326)
- In Go, an interface that embeds another, like gin's
IRouterembeddingIRoutes, now links to it, socodegraph_exploreand impact show the embedded interface as its base. - In Go, working out which structs implement an interface now counts the methods of the interfaces it embeds and those a struct gets from the types it embeds, so
codegraph_explorelists the right implementations. - In Go, the methods a type gets from an embedded standard-library type, or from the built-in
error, now count when working out which types implement an interface. - In Go, a call through an interface now reaches a method that the implementing struct gets from a type it embeds, picked the way Go picks it, so
codegraph_explore's call path no longer stops at the interface. - In Go, a type defined over a slice, map, function or basic type now counts as implementing the interfaces its methods satisfy, just as a struct does, so calls through the interface reach its methods.
- In Go, a type now counts as implementing an interface only when its methods take and return the interface's types, not just as many of them, so a call through the interface no longer goes to a method it never reaches.
- In Go, a type alias is now indexed and links to the type it names, so impact on that type reaches code using the alias, and a method called on a value of the alias's type reaches the aliased type's method.
- In Go, a struct that embeds another is no longer treated as overriding the methods it redeclares, so
codegraph_explore's call path and impact no longer go from gin'sRouterGroup.UseintoEngine.Use. - In Go, a call through a struct field that holds a function, like prometheus's
d.refreshf(ctx), now reaches the functions put in that field, socodegraph_explorefollows the flow and names where each is wired in. - In Go, a type defined from other types, like gin's
type HandlersChain []HandlerFunc, now links to the types it is built from, so impact on those types reaches it and the code that uses it. - In Go, a struct now links to the types its fields are declared with, not only the ones it embeds, so impact on a type reaches every struct that holds one, and
codegraph_nodelists a struct's field types. - In Go, an unexported name used in another file of its package now links to the package's own declaration even when a package nested inside it declares the same name. Thanks @inth3shadows. (#2580)
- In Go, a method whose name starts with an uppercase letter is now marked exported, so dead-code results no longer list exported methods that code outside the project may call. Thanks @danusha2345. (#1734)
- In Go, a package-level variable or constant whose name starts with an uppercase letter is now marked exported, so a call through it from another package now links to it. Thanks @ericquan8. (#1521)
- In Go, each use of a package function as a value, like
apply(run), is now read on its own, so a same-named local elsewhere in the function no longer hides it. Thanks @inth3shadows for the report. (#2596) - In Go, a method an interface declares now links to the types its parameters and results name, so impact on a type like etcd's
PutResponsereaches the interface method and every caller that goes through it. - In Go, a package imported under an explicit name, like
v3 "go.etcd.io/etcd/client/v3", now owns that name even when another import's path ends in it. - In Go, a struct or defined type now counts as implementing an interface only when its methods take as many parameters and return as many results as the interface's, not just by matching names.
- In Go, an interface with an unexported method now counts as implemented only by types that declare that method in the interface's own package, as Go requires, or get it from a type they embed.
- In Go, a call through an import whose path ends in a version, like
klog.V(2)afterimport "k8s.io/klog/v2", no longer links to a project symbol that only shares its name. Thanks @danusha2345. (#2374) - In Go, a call is now matched to the package or variable it is actually made on, and a parameter or local named like an import now counts as that variable, so its calls link to its type's methods.
- In Go, a call through a parameter or local variable named like a standard-library package, such as
contextorlog, now links to the method it calls rather than being taken for a standard-library call. - In Go, a call into one of your own packages that shares its name with a standard-library package now links to your function rather than being taken for the standard library's. Thanks @danusha2345. (#2368)
- In Go, a call of a method name nearly every type has, like
err.Error(), now links to that method of the variable's declared type, and to nothing when that type is built into Go or from outside your project. - In Go, a call on a parameter or variable declared with a type from another package now links to that type's method, and to nothing when the type comes from outside your project. Thanks @danusha2345. (#1954)
- In Go, a method call on a package-level variable or constant now links to the method of the type it is declared with, from any file of the package, and to nothing when that type comes from outside your project.
- In Rust, a call written
Self::new(…)orSelf::Text(…)now links to that function or variant of the type whoseimplit is written in, even when other types have one of the same name. - In Rust, a call through a generic type parameter, like
Key::get(…), now links to the method its trait bound declares, andT::default()underT: Defaultno longer links to one of your types'defaultfunctions. - In Rust,
String::from("…")no longer links to your ownimpl From<YourType> for Stringunless it passes aYourType, andfiles.iter()links to your trait's implementation only where the trait is imported. - In Rust, a method called through
self: Pin<&mut Self>,self: Box<Self>,self: Rc<Self>orself: Arc<Self>now links the way Rust looks it up, to the type's own method before a trait's of the same name. - In Rust, a method called on what
.as_mut()or.as_ref()hands back now links by the type its receiver is declared with, or for a generic type to the method of the trait that bounds it, and one on anOptionno longer links to an unrelated project method. - In Rust, an item declared without
pubnow links only from its own module and those inside it, and a name ausebrings in from a workspace crate links only to that crate or one it depends on. - In Rust, a name a
usebrings in, likeuse crate::sync::watch::Receiver, now links to the item in the module its path leads to, found the way Rust finds it, not to any item of that name in the crate. - In Rust, a name brought in only by a glob
use, like dioxus'suse dioxus::prelude::*, now links to the item that module passes on, following its re-exports, and only to what the module makes public. - In Rust, a name like an
Err(…)call or aResponsereturn type no longer links to atypeorconstdeclared inside animpl, which only a path likeSelf::Errnames; those are now listed under their type. - In Rust, a name written through a path, like
std::ffi::OsStrorast::Pattern, now links to what that path names, or to nothing for the standard library or another crate, not to a same-named item in the same file. - In Rust, a trait's associated type written as
<T as Trait>::Name, or bound likeIterator<Item = &str>, now links only to what it can name, and to nothing through a generic parameter or from a binding. - In Rust, a path through a module declared inline in the same file, like
inner::Cellfor amod inner { … }above it, now finds the item however the code is indented, and no longer one in a module nested inside it. - In Rust, a method call on a local or parameter, like
opts.build(), now links to the method of the type it is declared or built with, not a same-named method elsewhere. Thanks @Egrn and @danusha2345. (#2614) - In Rust, a variable holding what a method call returns, like
let settings = config.load()?;, now has the type that method is declared to return, so calls on it link to that type's methods. - In Rust, a
forloop's variable now has the type of an item of what it goes over, and each name in a tuple pattern the type of its part, so calls on them link to that type's methods. - In Rust, a call on a field of
self, likeself.store.save(), now links to the method of the field's declared type, and a field typed from the standard library or a dependency no longer links to a project namesake. - In Rust, a method called through a chain of fields, like
self.inner.config.port(), or on a struct literal now links to the method of the last field's or the literal's type. Thanks @Egrn and @danusha2345. (#2614) - In Rust, a call on what a method returns, like
self.store().put(…), now links to the method of the type it returns, and calls through several fields keep their whole receiver. Thanks @jocax for the report. (#2836) - In Rust, a call written with a turbofish, like
parse_config::<Settings>(), now links to the function it calls. - In Rust, a call through a value's declared type now reads the declaration in scope at the call, not a same-named
letin an earlier block or a struct literal's field above it.
Dart, Delphi, Ruby, Shopify Liquid, CFML, PHP, Erlang and COBOL
- In Dart, reading a getter, like
box.area, now counts as calling it incodegraph callersand impact, and a method an extension adds to an enum now links too. Thanks @brookly255-lv for the report. (#2338) - In Dart, a type is now linked from more places it is written, like an
extension … ontarget, a field or a generic argument, socallersand impact reach the code using it. Thanks @mg-mg-mg for the report. (#2327) - In Dart, a
typedefnow links to the types it is built from, and an old-style typedef with a return type is indexed under its own name instead of its return type's. Thanks @mg-mg-mg for the report. (#2327) - In Dart, what a top-level variable's or a field's initializer calls, creates and reads is now linked, so in Riverpod apps
callers, impact andcodegraph_explorefollow a provider to the code it builds. - In Dart, a call further down a chain, like Riverpod's
FutureProvider.autoDispose.family(…), now links to the method of the type the chain before it produces, or to nothing when that can't be worked out. (#750) - In Dart, calling a parameter or a local variable, like a Bloc handler's
emit(…), no longer links the call to an unrelated function of that name or to an inherited method likeBloc.emit. - In Dart,
constconstructors and redirecting factories, like flutter_bloc'sconst BlocProvider.value(…), are now indexed, and a call through a class name reaches only that class's constructors and static members. - In Dart, a call that passes a type argument, like
ref.read<Repo>(repoProvider), is no longer read as two comparisons, so it links to the method or class it calls and the type counts as used. - In Dart, a constructor or member written without a body, like
Foo._();or an abstract method, now keeps the///documentation and annotations above it, as one with a body already did. - In Dart, a function or method now keeps the
///documentation written above its annotations, like the doc on a widget's@override Widget build(…), so searching for words in it finds the symbol. - In Dart, a call on what a generic lookup returns, like Provider's
Provider.of<CartModel>(context, listen: false).add(item), now links to that method of the type in the angle brackets. (#750) - In Dart, a comment inside a chain of calls no longer loses part of it, so a call like
box.grow /* by */ (3)links to its method and a getter read after a comment counts as a use. - In Dart, a call, constructor call or type written without a receiver now links only to a declaration the file can see, following
exportchains,show,hideandasprefixes as Dart does. - In Dart, an
importorexportnow links to the file it names instead of any project file with the same name, socodegraph affectedand the files listed as using a file are no longer thrown off. - In Dart, a
partdirective, likepart 'user.g.dart';, now links a library to the part's file, so a change to a part reaches the library and the code that imports it incodegraph affected. - In Dart, a private name declared in another file of the same library, like json_serializable's
_$UserFromJson(json)in a.g.dartpart, now links again. Thanks @libin1528 and @maxmilian. (#2466) - In Dart, an annotation now links to the constant or constructor it names, like
@riverpodto Riverpod'sconst riverpod = Riverpod();, instead of a method or getter that only shares its name. - In Dart, an annotation is no longer lost when a comment sits between it and the declaration, like
@overridefollowed by// ignore: must_call_super. - In Dart, a call through an import prefix, like
http.get(…)afterimport 'package:http/http.dart' as http;, now links to what that library exports, or to nothing for a package outside your project. - In Delphi, a routine with an attribute on a parameter, like
const [ref] AValue: Integer, is now indexed with its calls, and so is every class member declared after it. Thanks @stalexteam. (#2545) - In Delphi, a
for … inloop that declares its variable inline, likefor var lItem in AList do, now has its calls indexed, and a call on a typed loop variable reaches that type's method. Thanks @stalexteam. (#2546) - In Delphi, a call made on another call's result, like
List[IndexOf(Name)].Free, now has its inner calls indexed too, and a typecast likeTButton(Sender).Captioncounts as a use of the type. Thanks @stalexteam. (#2547) - In Delphi, a routine called without parentheses now counts as a call, and a method given to an event, like
OnClick := ButtonClick, is linked as a reference. Thanks @OleksiyPenkov, @equipados and @drakeo338. (#2514) - In Delphi, a call to something the compiler provides, like
SizeOf(X)orInc(N), in any letter case, no longer links to a project method, field or variable that shares its name. Thanks @OleksiyPenkov. (#2514) - In Delphi, a routine declared inside another is now indexed as a routine of its own, like
TFoo::Bar::Inner, with the calls its body makes. Thanks @OleksiyPenkov. (#2550) - In Delphi, a call through a chain of fields and methods, like
TLogger.Create.Write('x'), now links to the method of the class each step is declared to give, not any method that shares the last name. Thanks @OleksiyPenkov. - In Delphi, a unit with a re-published property like
property OwnsObjects;, a conditional after a routine header, a bareraiseor an unnamed record field is now indexed whole, instead of losing the code after that line. - In Delphi, a constant read in a routine's body is no longer credited to the last routine nested inside it.
- In Ruby, a call on a class written with its namespace, like
Billing::ChargeCard.call(…), now links the caller to that class and to the class method it calls. Thanks @james-jang and @drakeo338. (#2503) - In Ruby, a call to a method ending in
!or?now links when its receiver's class is known, and so does a method called straight on a new object, likeCacheWriter.new(key).write_cache. Thanks @ricobl. - In Ruby, a call on an instance variable, like
@writer.flush, now links to the method of the class the variable holds when the class'sinitializesets it to a new object of one class. - In Ruby, a call now follows a class's real ancestors in the order Ruby looks a method up, as the calling file's test suite loads them, and a call on a class reaches what it
extends and what the concerns it includes add to it. - In Ruby, a class name like
Topicnow links to the class Ruby's constant lookup finds where the name is written, and a call with no receiver to the method Ruby runs first, so classes of one name in different test suites or namespaces are no longer mixed up. - In Ruby, a call on a method's parameter now links to the right class when every call of that method in the project passes a value of one class.
- In Ruby, a class method,
def self.buildor adefinsideclass << self, is now told apart from an instance method of the same name, so a call on the class or on an instance links to the right one. - JSON files in a
templatesorsectionsfolder are now read as Shopify Liquid only inside a Shopify theme, so a .NET project template'stemplate.jsonno longer shows up as an empty Liquid file. - In a repository with more than one Shopify theme, a theme's
{% render %},{% include %}and{% section %}tags now link only to that theme's own snippets and sections, where Shopify looks for them. - In Shopify themes,
codegraph syncand the file watcher now link a section or snippet to the files that name it when it is added after them or comes back after being deleted, so it no longer looks unused. - A Shopify JSON template or section group saved by the theme editor, which writes a comment at the top, now links the sections it lists, so they no longer look unused. Thanks @Puma7. (#2494)
- In Liquid, a variable declared with
{% capture %}is now indexed like one declared with{% assign %}, so search andcodegraph_explorecan find it. Thanks @Puma7. (#2498) - In Liquid, a variable whose name has a hyphen, like
{% capture icon-cart %}, is now indexed under its whole name, so search andcodegraph_explorefind it. Thanks @Puma7. (#2498) - In CFML,
createObjectnow links to the component it creates, found by its path the wayextendsfinds one, and a chainedcreateObject(…).init()reaches that component'sinit. Thanks @HarryMuc. (#2652) - In CFML, a
<cfquery>or<cfscript>block the parser can't read no longer marks its whole file as contributing nothing, socodegraph initandcodegraph statusno longer flag the file. Thanks @HarryMuc. (#2654) - In CFML, a dotted
extendslikeextends="contenscms.core.basecore"now links to the component it names even when a test suite mirrors its folder and file name. Thanks @HarryMuc for the report. (#2650) - In CFML,
<cfinclude template="formlistshared.cfm">and its script forms now link the component, function or template they are in to the file they include. Thanks @HarryMuc for the report. (#2651) - In PHP, a class written through a namespace alias in a different case than its
usestatement now links to that class, since PHP reads namespace names without regard to case. Thanks @danusha2345. (#2369) - In PHP, a call on a variable now reaches the method its class really has, found through the file's namespace and
useimports, and a Laravel facade's static call reaches the class itsgetFacadeAccessor()names. - In PHP,
parent::,self::and$this->inside an anonymous class, likenew class extends ArrayStore { … }, now reach what that class extends and the traits it uses, not those of the class whose method creates it. - In Drupal, an import of a class whose short name another class shares, like
use Drupal\commerce_price\Price, no longer also links to that other class. - In Erlang, a comment inside an argument or parameter list no longer counts as an argument, so the call links to the function of its real arity. Thanks @Dshuishui. (#1619)
- In COBOL, asking
codegraph_exploreabout a copybook by name, likeCVACT01Y, now answers with its source and everyCOPYorEXEC SQL INCLUDEthat includes it, instead of "No relevant code found". Thanks @popolusiak. (#2342)
v1.6.2
2026年10月03日
[1.6.2] - 2026-10-03
Highlights
- Far fewer wrong links, in every language. A call, import or type now resolves the way its language scopes names — through imports, packages, namespaces and the class it is written in — so it stops landing on an unrelated symbol that only shares its name. This covers TypeScript and JavaScript, Python, Java, Kotlin, Scala, C#, VB.NET, Swift, Objective-C, Go, Rust, C and C++, PHP, Ruby, Dart, Lua, R and more, and makes callers, impact and
codegraph_exploreanswers more trustworthy. - Overloads,
superand recursion resolve correctly. A call reaches the overload its arguments fit, asupercall reaches the parent's method, and a method that calls another overload, or another object's method of the same name, no longer looks like it calls itself. - Routes for more frameworks. Angular (including Nx libraries), Vue Router admin apps, Rails nested routes, Flask's
add_url_rule, ASP.NET FastEndpoints, Play subprojects, Vapor closure routes and Expo Router API routes are found. NestJS and Laravel routes are named by the path a request actually takes, and a Spring or Laravel test that calls a route by URL counts as covering it. - More of your code in the graph. Vue Options API components, Java and Kotlin enum constants with bodies, Flow-typed JavaScript, Kotlin infix calls, React Native native views and events, Expo modules, tag-based CFML and Delphi
.incfiles are all indexed now. - Windows: no flashing windows, no random crashes. The background server no longer pops up console windows while it works, sporadic access-violation crashes (exit code 3221225477) while indexing or shutting down are fixed, and
codegraph upgradeworks while an agent session is using CodeGraph. - A steadier background server. Newer MCP clients such as Antigravity connect again, Claude Code sees the full text of
codegraph_status, a session that lost the shared server reconnects by itself, and a project queried throughprojectPathis released after 10 idle minutes. - Indexing that finishes. Large C and C++ projects no longer run out of memory while resolving references, a COBOL file can no longer stall indexing, and
codegraph synckeeps every caller of a name that is defined more than once. - Upgrading: re-index your projects after this release — most of these fixes are written while indexing.
New Features
- In Nuxt and Astro projects, a file-routed page is now linked to the component its file defines. An Astro endpoint is linked to the HTTP-verb handlers it exports, like
export const GET. Before, a page route like Nuxt'spages/admin.vueor Astro'ssrc/pages/about.astrolinked to nothing, so callers, impact and flows stopped at the route. - React Router links and
navigate(…)calls written through a route-config object, like bulletproof-react'spaths.app.discussion.getHref(id), now reach the route they open. A<Link>with an arrow-function attribute before itsto, such asonMouseEnter={() => …}, is read too. - React Router data-router routes are named by their full path: nested
childrenpaths are joined to their parent's,path: paths.app.root.pathconstants are read, andlazy: () => import('./routes/x')routes link to the module's component. A guard wrapper like<ProtectedRoute>no longer stands in for the page. On bulletproof-react, every route now has its real path and page. - Vapor routes whose handler is a trailing closure, like
app.get("hello") { req in … }, WebSocket routes likeapp.webSocket("chat") { req, ws in … }, androutes.on(.POST, "x", use: handler)registrations are now found, and a closure route links to what the closure calls, the way an Express inline handler does. Before, only routes with ause:handler were read, and a closure route linked to nothing, so callers, impact and flows stopped at it. - Flow-typed JavaScript files (those with
@flowin their header comment) are now parsed like TypeScript, so type annotations likerender(): React.Nodeno longer cut classes short. This mostly affects React Native code: on React Native's own libraries the graph gained over 8,000 links, and component classes keep their methods. Files without the pragma are unchanged. Re-index after upgrading. - A link made by a framework or bridge resolver now records which one made it (
metadata.framework, such asswift-objc-bridgeorreact-native-bridge), as the README describes. Before, only synthesized event and view channels were named. - ASP.NET apps built with FastEndpoints now have their routes: each endpoint class's
Get(…)/Post(…)inConfigure()becomes a route linked to its ownHandleAsync/ExecuteAsync, including paths kept in a request class'sRouteconstant. ardalis/CleanArchitecture went from no routes to 24. Minimal API routes written without a leading slash (app.MapGet("api/todos", …)) are now named/api/todos. - Play projects kept in subdirectories are recognized, so each one's
conf/routesis read. A repository with no Play build at its root, like playframework's samples, went from no routes to over 130. - Rails routes are now read with their nesting:
namespaceandscopeadd their path and controller module, nestedresourcessit under their parent's:id, andmember/collectionblocks add their actions. A namespaced route now links to its own module's controller. Routes in a Rails engine'sconfig/routes.rbare found too: solidus went from no routes to over 600, and mastodon's route-to-action links nearly tripled. - Flask routes registered with
add_url_rule(…)are now found and linked to their view function or class-based view. So are routes registered through a project's own helper that passes a list of paths and aview_func=. flaskbb, which registers every view that way, went from no routes to over 100. - Vue components written with the Options API (
export default { methods: {…}, computed: {…}, watch: {…}, mounted() {…} }), as every Vue 2 app is, now have their methods, computed properties, watchers and lifecycle hooks in the graph. Each one has its own callers and calls, and a template's@click="handleLogin"links to the method it runs. On vue-element-admin that's over 800 new links, where a component's calls used to belong to the whole file. - React Native events whose name is held in a constant now link native code to the JavaScript that listens for them, like NetInfo's
addListener(PrivateTypes.DEVICE_CONNECTIVITY_EVENT, …)or a Java.emit(PROGRESS_EVENT, …). The constant is read the way the language scopes it, from the same file, an import or its owning class, so a parameter that happens to share a constant's name is never mistaken for it. - React Native views declared with
requireNativeComponent('X'), the older Paper style that react-native-maps and segmented-control use, now link from JavaScript to their native iOS and Android implementations, as Codegen specs already did, including in plain.jsfiles. A JSX tag written under a different name than its component, like<Autocomplete>forimport Autocomplete from './autocomplete.vue', now links to the component it renders. - Expo Router API routes (
app/hello+api.ts) are now endpoints, one per exported method, likeGET /hello, bound to the function that handles them. They used to show up as a screen named/hello+api. In a repository whose root declares Expo Router for an example app, a Next.js app in its own folder, like react-native-true-sheet'sdocs/, no longer gets Expo screens made from its files. - Calls into an Expo module now reach the module's native functions even when the JavaScript names the module something else, like expo-camera's
CameraManagerforrequireNativeModule('ExpoCamera'). Both the iOS and the Android implementations are linked. expo-camera's calls used to link back to the same-named method making the call, so a method looked like it called itself. - Angular apps split across Nx libraries, like angular-spotify, now have their routes and navigation. A lazily loaded route written
async () => (await import('@app/home')).HomeModuleis followed through the library'sindex.tsto the module it re-exports, and arouterLinkin one library now reaches a screen declared in another. Route paths built from a class constant (RouterUtil.Configuration.Lyrics,`issue/:${ProjectConst.IssueId}`) or an enum are now read. A redirect in a routes file that only lazy-loads others now counts, androuter.navigate(['project', 'issue', id])withoutrelativeTois read from the root, as Angular does. Re-index Angular projects after upgrading. - React Router apps now show navigation written as React Router v5's
<Redirect to="/login" />and through a styled link, like react-boilerplate'sHeaderLink = styled(Link)used as<HeaderLink to="/features">. Apps built this way had routes but no links between their screens. - SvelteKit routes are now named by the address a browser asks for. A
(group)folder like(app)or(marketing)is no longer part of a route's path, and a parameter with a matcher, like[id=integer], is just:id. Sogoto('/blocks')and<a href="/blocks">now reach a page that lives insrc/routes/(app)/blocks/, where before they reached nothing and the app's screens showed no navigation. Re-index SvelteKit projects after upgrading. - Vue Router apps built like vue-element-admin, vue-admin-template or vben now have their routes and screens. Routes declared in a named table (
export const constantRoutes = [...],const routes: RouteRecordRaw[] = [...]), in per-module route files, or throughnew Router(...)are now read. Child routes are joined onto their parent's path, and the parent's component is the layout around them. A lazily loaded view (() => import('@/views/dashboard/index')) is bound to the file it names, andthis.$router.push(...)counts as navigation. Nuxt's file-based routes now come only from a Nuxt app, so a plain Vue app'spages/folder no longer turns into made-up screens, and a Nuxt app at the root of its repository now gets its routes. Re-index Vue projects after upgrading. - NestJS routes are now named by the path a request takes: the global prefix from
app.setGlobalPrefix('api')is applied, along with itsexcludelist, and so is URI versioning fromapp.enableVersioning(...), with@Version,VERSION_NEUTRALand a controller's ownversiontaken into account. A route that used to appear asGET /useris nowGET /api/v1/user, so a front end'sthis.http.get('/api/v1/user')orfetchcall connects to the controller method that serves it. Re-index NestJS projects after upgrading. - Laravel routes are now named by the path a request takes: a leading
/is added where the routes file leaves it out,Route::prefix()andRoute::group(['prefix' => …])groups are applied, and routes inroutes/api.phpcarry the/apiprefix Laravel serves them under, read from yourRouteServiceProvider,bootstrap/app.phpor any file that mounts a routes file. A front-endfetch('/api/…')now connects to the Laravel route that serves it. Re-index Laravel projects after upgrading. - Controllers that Spring or Laravel tests exercise by URL now count as tested. That covers MockMvc's
perform(post("/owners/new")), WebTestClient, TestRestTemplate, RestAssured, Laravel's$this->postJson('api/me'), Pest'sget('/about'), and a project's own request helpers built on them.codegraph_explorenow names the test suite that reaches such an endpoint, where before every one of them looked untested. Re-index Spring and Laravel projects after upgrading. - In an Angular app, a method a template calls, like
(click)="toggleFavorite()"or(ngSubmit)="submitForm()", is now linked from its component. These methods used to show no callers at all, so impact and callers questions stopped at them, and dead-code checks could list them as unused. Re-index Angular projects after upgrading. - Angular apps now have routes and navigation in the graph. Each screen in a
Routesarray is a route named by its full path, including children, lazily loadedloadChildrenfiles and NgModules, paths written as route constants or$localizestrings, and redirects. Each route is linked to its component.router.navigate([...]),navigateByUrl, a guard'screateUrlTreeand everyrouterLinkin a component's template link to the screen they open, and a template's child components (<app-article-list>) are linked to the component that renders them. Questions like "where does this button go" and "what renders this component" now have answers incodegraph_explore. Re-index Angular projects after upgrading. - Delphi and Free Pascal include files (
.inc) are now indexed as Pascal. Before, they were read as PHP and came up empty. A.incfile with a<?phptag is still PHP, and acodegraph.jsonmapping for.incstill wins. Thanks @ijbranch for the report. (#2279) - In tag-based CFML, calls written in tags are now linked: in
<cfset>,<cfif>/<cfelseif>,<cfreturn>,<cfloop condition>and#…#expressions. Before, only<cfscript>and<cfquery>code was read, so callers and impact found almost nothing in tag-based components. Functions wrapped in tags like<cfprocessingdirective>or<cfsilent>are now indexed too, and a<cfinterface>is indexed as an interface thatimplementslinks to. Re-index CFML projects after upgrading. Thanks @HarryMuc for the report. (#2091) - Java enum constants and Kotlin enum entries with a body of their own now have their methods in the graph. Examples are
PLUS { int apply(…) { … } }andNewBuffer { override fun pipe() … }. Before, those methods were missing and every call inside them was dropped. jsoup's HTML tokenizer and tree builder are written this way, so over 2,000 of their calls were invisible. Re-index to pick this up. - Kotlin infix calls, like
Users.id eq id1or koin'ssingle { … } bind MyApi::class, are now recorded as calls to the infix function. Before, they had no callers at all. On Exposed,eqnow shows over a thousand callers. Bit operations on numbers (x and 0xff,h shr 8) are left to Kotlin's own operators, even where the project defines a same-named extension. Re-index after upgrading.
Fixes
Windows
- On Windows, terminal windows no longer flash open and closed while CodeGraph runs in the background. Since 1.6.1, a background MCP server popped up a console window (a full Windows Terminal window when that is the default terminal) several times when it started and again every time it re-synced a changed file. All of CodeGraph's git calls now run hidden. Thanks @Suharaz, @23q3, @A-Van-Gestel, @HarryMuc and @MzaGuille. (#2094, #2096, #2312)
- On Windows, a project opened with a different drive-letter or folder-name case, like
d:\work\appandD:\Work\App, now joins the CodeGraph background server that is already running for it. Before, each spelling started a server of its own that exited at once, so the session quietly served the graph by itself with no shared file watching or auto-sync, andcodegraph listshowed the project twice. Thanks @greatjackzhou. (#2278) - On Windows,
codegraph upgradeno longer breaks the install while an agent session is using CodeGraph. It used to stop partway and leave CodeGraph unable to start; it now swaps the new files in with CodeGraph running and puts the previous version back if anything fails, and re-running the PowerShell installer works the same way. If an earlier upgrade already broke your install, re-runirm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iexto repair it. Thanks @tippmar-nr for the report. (#2185) - On Windows, CodeGraph no longer sometimes crashes with exit code 3221225477 (an access violation) on a busy machine: right after parsing in
codegraph init,codegraph indexand background syncs, or as the background server shuts down. Stopping one of its helper threads (the ones that parse files, resolve references, write the index and count changes forcodegraph_status) while it was still starting up, or before it had finished cleaning up its memory, took the whole process down. Threads now finish starting and clean up before they exit.
The background server, sessions and the CLI
- The Claude Code prompt hook no longer runs on the messages Claude Code uses to hand a subagent's report back to the main session. Before, such a long report could keep the hook busy past Claude Code's 30-second hook timeout and inject context unrelated to what you asked. Thanks @danusha2345, and @tippmar-nr for the report. (#2184)
- Newer MCP clients such as Antigravity 2.5 connect again: the server now answers their
server/discoverprobe right away with "method not found", so they go straight on to the regular handshake instead of waiting on a reply that could take seconds or never come. Thanks @danusha2345, and @samem26 for the report. (#2084) - A CodeGraph session that queried another project through
projectPathno longer keeps that project locked for as long as it runs: after 10 minutes without a query it lets the project go, so the project's own session andcodegraph indexcan take over again (tune withCODEGRAPH_PROJECT_IDLE_TIMEOUT_MS,0keeps it open). Thanks @danusha2345, and @bompus for the report. (#2087) - Claude Code now shows the model the full text of
codegraph_statusand of explore's stale-index refusal. Both results also carriedstructuredContent, and Claude Code shows a result'sstructuredContentin place of its text, so the model saw only a freshness JSON object: no refusal message, no retry guidance and no status report. Both results are now text only. Thanks @bompus. (#2088) - When an agent asks CodeGraph about a separate git repository nested inside an indexed project, one the project's index leaves out (for example because the parent's
.gitignoreexcludes it), it now gets the usual "isn't indexed" guidance instead of answers from the parent project's code. Nested repositories the parent does index, such as submodules, work as before. Thanks @wstczyw for the report. (#2110) - An agent session that lost its connection to CodeGraph's shared background server, or couldn't reach it at startup, no longer stops that server from running for the rest of the session. It reconnects on its own once the server can start, so other sessions on the same project get auto-sync back instead of running read-only. Thanks @ijbranch for the report. (#2277)
codegraph indexno longer gives up with "Could not verify that the active CodeGraph daemon has stopped" while the background server is still finishing its shutdown, andcodegraph daemonno longer reports such a server as one it could not stop; both now wait for it to exit, for up to about 20 seconds. An agent session that is serving CodeGraph by itself, because the background server was unavailable, now also waits for that work to stop before it exits instead of exiting partway through, which could crash on Windows. Thanks @bompus. (#2311)- Anonymous usage telemetry now sends one daily count per tool or command, as documented, instead of one per codegraph process. Before, every MCP server launch, CLI command and prompt hook queued its own entry, so a busy machine uploaded thousands of copies of the same count each day. If you have telemetry turned off, nothing changes.
Indexing and sync
- A COBOL file whose last line ends inside the sequence area (columns 1-6), such as a closing period indented only four spaces, no longer stalls indexing for over a minute and then ends up in the index with no symbols.
- Editing a file that defines the same name more than once, like two classes that each have an
executemethod or a method's overloads, no longer moves every caller from other files onto one of them duringcodegraph sync. A sync interrupted partway through a file also no longer loses those callers until a full re-index. Thanks @ijbranch for the report. (#2276) - Indexing a large C or C++ project no longer runs out of memory partway through "Resolving refs". Headers whose include guard is written as
#define X_H 1, as in OpenSceneGraph and osgEarth, or that are included under a build flag codegraph cannot know, used to be re-read on every include path, which grows exponentially with the depth of the include tree. Each is now read once per include state, and a hard limit stops the check on any include tree that is still too large. Thanks @danusha2345, and @coolhitmanleon for the report. (#2127) - On a busy machine, indexing or syncing a small project no longer starts extra background threads for resolving references that it can't use. Under heavy load the slower pace made a ten-file project look big enough to need them, which added seconds to the run and held extra memory.
Across languages
- A type that extends another type of the same name now links to that other type instead of to itself. When the source spells out the qualifier, that qualifier picks between same-named candidates. Before, cats'
trait BigDecimalInstances extends cats.kernel.instances.BigDecimalInstancesand everytrait AllOps … with Functor.AllOps[…]pointed back at the declaring trait, and Newtonsoft.Json'sJsonConverter<T> : JsonConverterextended itself. - Framework name conventions for Django, FastAPI, Flask, ASP.NET, Gin, SwiftUI and Vapor now only pick a class the reference can see. Examples of these conventions are "a
…Viewis a view", "a…Serviceis a service" and "a capitalized name is a model". The pick starts from the reference's own file and then its package, and never takes a class declared inside some function or nested in another file's class. Before, Django REST framework's tests linked each file's ownMockViewandSerializerto another file's, and netbox's tests linkedTestForm()to a form declared inside a different test function. - A method that calls a same-named method on another expression's result is no longer linked to itself in any language. Examples are Scala's
requestToArmeria(request).execute()insideexecute(), Rust'sself.0.into_route(state)insideinto_route(), and Kotlin'sthis@Buffer.write(…)from an inner object. A value whose initializer chain calls a same-named method, like sttp'sval response = basicRequest.get(…).response(…), no longer links to itself either. - A method that hands its call on to another object is no longer linked to itself. In TypeScript and JavaScript, a call through
this.<field>orwindow.<x>counts as recursion only when the field is declared as the method's own class. A guess from a receiver's name alone never lands on the calling method. Before, BookStack'stoggle()doingthis.container.classList.toggle('open'),listen()doingwindow.$events.listen(…), andFileStorage::deletedoing$storage->delete($path)each pointed at themselves. - A function or name passed as a value now resolves to what is in scope where it's written. A function nested inside another function is only reachable from inside it. In Python, a parameter or local of the same name is that local. A pytest fixture is a test's parameter only in its own module or under its
conftest.py. Before, httpx'sself._build_auth(auth)linked to anautha test defines inside another function, andauth_flow(self, request)handingrequeston linked to the package'srequest()function. - In Java, C#, Kotlin, Swift, Scala, Dart and VB.NET, a call now reaches the overload whose parameters fit its arguments, not whichever same-named overload was indexed first. For example,
HashCodeBuilder.reflectionHashCode(this)now reaches the one-argument overload with varargs, not a three-parameter one. Each overload's callers are now its own. - A method that calls another overload of itself now links to that overload rather than to itself. An example is
toInstant(instant)returningtoInstant(instant, Instant.EPOCH). The fuller overload now lists its convenience overloads among its callers, so its impact includes them. This applies to Java, C#, Kotlin, Swift, C++, Scala, Dart and VB.NET. Real recursion is unchanged. - Production code no longer links to a same-named symbol inside a test suite, since tests aren't built into the program. Before, typeorm's
Record<string, …>types reached a test entity calledRecord, and okhttp's sample@Overrideannotations reached a test's nestedOverrideclass. Test-support code a project ships, such as atesting/folder or a*-testmodule, stays in reach. - A method call on a variable is no longer guessed to be a test double's method just because the double has the only method of that name. That covered classes named
Mocked…,Fake…,Stub…orDummy…: django-allauth'sresp.json()calls had all gone to itsMockedResponse. A test that names the double still calls it. - A call through a class name, like
THorse.Get(…),MyView.as_view()orColorChoices.values(), now reaches the class method that class inherits. The inheritance is read from the class declarations themselves, in Pascal, Python, Ruby, PHP, TypeScript/JavaScript and the Java family. Before, such a call was resolved by guessing from the name. On Horse,THorse.Get('/ping', …)used to land on a route-group interface'sGet120 times. Re-index after upgrading. - A method guessed from a receiver's name no longer lands on a request handler the web framework dispatches to, such as a Django or DRF view's
post/getor a controller'supdate/destroy. It also no longer lands on a test double the calling file never mentions. On django-allauth, tests'client.post(…)used to land on aClientRegistrationView425 times. On mealie,response.json()used to land on a test's_FakeHTTPResponse424 times. In Python,site = Site.objects.create(…)now makessiteaSite, sosite.save()reaches the model's ownsave. Re-index after upgrading. - In C#, Java and Kotlin, a call through a field, property or parameter now lands on the method of the type it is declared with. That includes a type inherited from a base class with its type argument filled in, a generic or
for-each declaration, a C#usingalias, and a type parameter's bound. A call no longer falls back to a guess at some project class's same-named method, and a type from outside the project gives no link. On Newtonsoft.Json,_innerWriter.WriteValue(…)inside a writer wrapper used to land on the wrapper's ownWriteValue, and aTextWriter'sWrite(…)on a test writer's. On commons-lang, aDateFormatfield'sparse(…)used to land on the project'sDateParser284 times. - A call on a variable declared with a type from outside the project (
List<String> list,var sb = new StringBuilder(),signer = TimestampSigner()) no longer lands on a project type's method with the same name. On gson,list.add(…)used to land on a project list wrapper; on commons-lang,s.length()andbuffer.append(…)on project classes. In Python, a keyword argument inside a call (prefix=IPNetwork(…)) is no longer taken for an assignment to that name. - A call on a type from outside the project, like
Integer.valueOf(…),Arrays.asList(…),Object.assign(…)or Delphi'sException.Create(…), no longer lands on the project's own method with that name. On commons-lang,Integer.valueOfused to land onStringUtils.valueOfover 800 times. Go's exported variables and Pascal's capitalized parameters and locals are not mistaken for type names. - In PHP, CFML, Pascal, COBOL and VB.NET, a call written in a different case than its definition now resolves, like
formatprice()forFormatPriceor CFML'sToMatchWithCase()fortoMatchWithCase. These languages ignore case in names, but such calls used to be dropped before resolution. - In Java, Kotlin, Swift, C#, C and C++, Go, Scala, Ruby, Dart and the other case-sensitive languages, a name no longer links to a symbol whose name differs only in case. On jsoup, JUnit's
@Testhad linked every test to atestmethod;new CookieManager()had linked to acookieManager()getter, and aMethodtype to amethod(). PHP, Pascal, CFML, COBOL and VB.NET, whose names really do ignore case, are unchanged. - A
supercall in an overriding method, likesuper.viewDidLoad(),[super init],base.Handle(),parent::setUp()orsuper().dispatch(…), no longer makes the method look like it calls itself. The call goes to the parent's version, so an override stops showing up as recursive and no longer lists itself among its own callers. - A generic type parameter, like
Aindef zipWith[A, B](…),Tin<T> T max(…)orclass Foo<T>, no longer links to a project symbol that happens to share its name. On cats, oneimplicit def Ahad thousands of made-up dependents from everyAin the library. The same goes for Rust, Dart, TypeScript, Java, Kotlin, Swift, Go, C# and C++. A class or other type declared inside a function is only linked from inside that function. In Scala, adef's own parameter, likefin(f: A => B), no longer links to a same-named field elsewhere. A bare name no longer reaches a type nested inside another type unless the code is inside that type, extends it or imports its members; the type in scope is linked instead, like cats' ownFlatMapin place ofEval's nestedFlatMap. Re-index projects in these languages after upgrading.
JavaScript and TypeScript, with Vue, Svelte, Astro, React, Express, NestJS and Hono
- In Vue, Svelte and Astro files, a component now owns its script, and what a
<script setup>, a Svelte instance script or Astro frontmatter does at its top level is the component's doing. That covers a Nuxt page'suseAsyncData(…), a Svelte page'sonMount(…)and Astro'sawait getCollection(…). Imports and a module-level script stay with the file. Before, those calls belonged to the file, so callers and flows from a component found nothing. The component was also recorded as containing its own file, and a file with no script had no file node at all. - In JavaScript and TypeScript, a CommonJS
require('./application')now counts as an import of that file, the way an ESMimportdoes. A module path also resolves the way Node and bundlers find it: extensions,indexfiles and path aliases. Before, a CommonJS file depended on nothing at file level, so Express's ownlib/express.jsshowed no imports and impact analysis missed the files it loads. An extensionless side-effect import likeimport './polyfills'also stopped at its own import statement instead of reaching the file. - An Express route whose handler is written inline as
function (req, res) {…}, the form Express's own examples use, now links to what that handler calls, just like an arrow handler does. The handler is the route's last argument, so an inline middleware before a named handler no longer stands in for it, and a wrapper likeasyncHandler(async function (req, res) {…})and a trailing comma both work. Before, a route such asPOST /loginlinked to nothing. - In NestJS projects, the provider naming convention (
…Service,…Controller, …) now picks a class only from the reference's own file. Another file's provider is reached through its import, or by ordinary name matching that prefers the nearest declaration. Before, the convention's preference for*.service.tsfiles sent Nest's own specs'TransientServiceandTestServiceto same-named classes in unrelated sample apps. - In Astro projects, the component-name convention now applies only inside
.astrofiles, where components are used. Before, a TypeScript type with a component's name was linked to that component: astrowind'simage?: ImageandcallToAction?: CallToActionin its type declarations, and starlight's Playwrightpage: Pagein its tests. - In JavaScript and TypeScript, the Express conventions for middleware (
validate…,auth,logger, …), controllers and services now pick only the calling file's own declaration. Another file's is reached only through animportorrequire. Before, SvelteKit's remote functions linkedvalidate(arg)to its config loader'svalidatein another package, and Express's examples linkedlogger('dev')to one example'slogger. - In JavaScript and TypeScript, the React conventions for hooks (
use…) and contexts (…Context,…Provider) now pick only from the reference's own file. Another file's hook or context is reached only through an import. An optional call likeonSuccess?.(…)now gets the same scope rules as a plain call. Before, trpc's WebSocket adapter'screateContext?.(…)option linked to an example app'screateContext, zod'sschemas.ParseContextlinked to the v3 copy instead of v4's, and bulletproof-react's apps linkeduseUser()to one another's. - What a Svelte component's instance
<script>or a Vue component's<script setup>declares is now private to that component. Only a Svelte<script module>, a plain Vue<script>, or a type a<script setup>exports can be reached from another file. Before, shadcn-svelte's<Item.Root>linked to atype Itemthat one example component declares for itself, and halo'sisActiveimported from its editor core linked to a tab component's local value. - In JavaScript and TypeScript, a name the calling function binds itself, as a parameter or a plain
var/let/constabove the reference, now means that local instead of a same-named function elsewhere in the file. Before, every lodash helper'sobjectparameter linked to afunction object() {}declared insiderunInContext, and zod'snew Class(…)linked to an unrelatedClasswhenClasswas the function's parameter. Destructured hook results likeconst { t } = useI18n()still link to the function they come from. - In a project with a React front end, the React rules for hooks (
use…) and contexts (…Context,…Provider) no longer apply to backend code. In halo, a Spring app with a React UI, Java imports such asSecurityContextandObjectProviderhad been handled as React contexts. - In a project with a Vue front end, the backend's calls no longer land on Vue components. mealie's Python
QueryFilterBuilder(…)had been linking to theQueryFilterBuilder.vuecomponent. The Vue rules (compiler macros, Nuxt auto-imports, components by name) now apply only to the app's scripts. - Calls in your own JavaScript no longer link to a same-named function inside a vendored minified script, like a
*.min.jsor a bundle made of a few enormous lines. Those names are mangled. In healthchecks, every jQuery$(…)call had gone to a one-letter helper insidebootstrap-native.min.js. - Calls inside an inline route handler now keep their receivers, so they resolve like any other method call. Before, Hono's
app.get('/', (c) => c.text('Hello'))linked the route to the one othertextmethod in the project, its client'sClientResponse.text; that happened in over 400 routes. A call likeuserService.lookup(id)reaches the service it names. - A barrel's
export * as core from './core'now exports onlycore, not everything in./core. In zod,z.string()andz.number()had been landing on same-named regex constants deep in its core module instead of the schema functions. Calls throughimport * as nsalso find members a barrel forwards by name (export { safeParse } from '../core'). They follow a namespace path likez.coerce.number()too. - JavaScript calls through CommonJS
requirebindings now reach the right function.var express = require('../')followsmodule.exportsthrough anindex.jsto the function it exports, and every binding in avar a = require('x'), b = require('y')list is read.require('./utils').setCharsetmeans that module'ssetCharsetrather than its first export, and a call to a package from outside the project (supertest,node:assert) is no longer an edge to the local variable. On express, over 700express()calls now reachcreateApplication. - Imports through a tsconfig or jsconfig path alias now use the config nearest the importing file, so each app in a monorepo resolves its own
@/…or~/…alias. On bulletproof-react and trpc's examples, those imports used to fail or land in a different app. - In JavaScript, TypeScript and Vue, a call through a name destructured from a composable or custom hook, like
const { getDefaultActivityRoute } = useDefaultActivity()orconst { t } = useI18n(), now reaches the function the hook returns. These calls used to resolve to nothing. mealie, elk, halo and excalidraw each gained dozens to over a hundred such links. - In JavaScript and TypeScript, a module's top-level function, variable or type that the module doesn't export is no longer linked from other files. Every form of export still counts: the
exportkeyword,export { … }lists,export default, and a default-exported object. On typeorm, test fixtures' localColumnMetadataused to captureimport { ColumnMetadata } from "typeorm"; on sveltekit, an unexportedresolvecollected other files'resolve(…)calls; on zod, a localzcollected thezodpackage imports. - A JavaScript or TypeScript call on something the file imports, like
fireEvent.click(…)orutil.omit(…), no longer links to a same-named method declared in the calling file itself. - TypeScript's
import type { X }no longer reads as an import of something namedtype, andimport { a, type B }bindsB, nottype B. So a type-only import now links to the module it names, where it used to link to whatever project symbol had that name. A type imported from a package, likeRsbuildConfigfrom@rsbuild/core, no longer links to a project symbol, and JavaScript and TypeScript names no longer match a symbol whose name differs only in case (Mockis notmock). - In a monorepo with an Expo app next to a Next.js app, like create-t3-turbo or tamagui's starter, each router now reads only its own app. Expo Router used to read the Next.js app's files too, so
layout.tsx,page.tsx, a_componentsfolder and an API route showed up as screens named/layout,/pageor/_components/posts, and a shared package's files became screens as well. Re-index such monorepos after upgrading. - Calls in Vue, Svelte and Astro components now follow the same rules as JavaScript and TypeScript. A
t('…')fromuseI18n()or aref(…)fromvueused to link to an interface property or a local variable of the same name elsewhere in the project, so on halo two unrelated symbols had over a thousand made-up callers each. A call imported from a package is also no longer mistaken for a project symbol when the package is declared in a nested app'spackage.jsonor a Deno import map. An import through an alias CodeGraph can't follow, like SvelteKit's$lib/…or a nested Nuxt app's~/…, is still treated as project code. Re-index Vue, Svelte, Astro and JavaScript/TypeScript projects after upgrading. - A minified or bundled JavaScript file is now recognized as generated even when it isn't named
.min.js, for example a docs site'sbundle.js, a readable webpack build or a vendoredunderscore-min.js. Its one-letter functions now rank below your own code in search andcodegraph_exploreanswers. - JavaScript and TypeScript calls are no longer linked to a class member that merely shares their name. A call on a namespace import, like zod's
z.string()(import * as z from 'zod'), or on something imported from an npm package, used to link to whichever class in the project had astringmember, and a bare call like mocha'sit(…)ordescribe(…)to an interface'sitproperty or a class'sdescribefield. On zod one test helper's getter had thousands of made-up callers and topped the most-depended-on list. A React hook or component imported from a package, likeuseQueryfrom@tanstack/react-query, no longer links to a same-named one in the project, and a hook nested inside another function is no longer a target at all. Re-index JavaScript and TypeScript projects after upgrading.
Python
- A Python module member used through the imported module, like
generic.ObjectEditViewafterfrom netbox.views import generic,serializers.ValidationErrororutils.assert_deserialize(…), now also follows the package's re-exports to its definition. Before, netbox's view classes lost theirgeneric.*base classes, and mealie's test helpers called throughutils.went unresolved. - A Python name imported from a package now follows the package's re-exports to where it's defined. That covers both
from .users import *andfrom .tokens import Tokenin its__init__.py. Before, httpx's own tests'httpx.Client(…)andhttpx.URL(…), pytest'spytest.raises(…)andpytest.param(…), and netbox'sfrom users.models import Userwent unresolved or to a same-named class elsewhere, such as a test'sUseror an Alembic migration's copy of a model. - In pytest tests, a parameter now takes the class its fixture returns, so a call on it reaches that class's method. If the class comes from a library, the call no longer reaches the project's only method of that name. Fixtures a
conftest.pypulls in withfrom … import *orpytest_pluginsnow count as in reach. Before, flask'srunner.invoke(…)on click'sCliRunner()linked to the project'sFlaskCliRunner.invoke, and@app.get(…)on aFlask(…)fixture linked to an unrelatedget. - In Python, an attribute passed as a value through an object nothing types, like netbox's
device=self.parent.device, is no longer linked to the project's only method of that name when the object isn't named after the method's class. Before, netbox's model-field reads went to a GraphQL filter'sdevicemethod, and healthchecks'check.last_pingwent to a notification transport's. - A Python call to a name the function or module binds itself now means that local value, not a same-named function in another file. In Django REST Framework's tests,
view = SomeView.as_view()followed byview(request)had pointed at one test file'sdef view. The same goes for a parameter or afor/with … astarget. A pytest fixture a test takes as a parameter is still the fixture. - Python calls like
User.objects.get(…),self.client.login(…)orrequest.POST.get(…)no longer link to whichever class in the project has a method of that name. Such a call now links only to a member of what its receiver names, likehelpers.slugify()toslugifyinhelpers.py, and a bareget(1)never links to a method. A name the file imports from a package outside the project, likefrom django.shortcuts import render, no longer links to a same-named project function. In Django projects these made-up links had given single test or serializer methods thousands of callers, for example netbox's.all()calls on oneUserConfig.all. Re-index Python projects after upgrading. - In Python, a call written on the instance, like
self.get_breadcrumbs(...), now links to the class's own method even when the file also imports a function of the same name. Before, the import claimed it: Django REST Framework's renderers, netbox's change logging and django-allauth's account adapter all linked their own method calls to an imported helper. - In Python, a method passed as a value through a module-level variable that a setup function assigns, like
settings.docStoreConn.delete_payload_fieldsafterglobal docStoreConn; docStoreConn = QdrantConnection(), now links to that class's method. When several backend classes can be assigned, it links to the declaration they all inherit. Thanks @JosefAschauer. (#2074) - In Python, an import split over several lines in parentheses,
from x import (A, B)written one name per line, is now read in full. Before, its names were invisible to resolution, so Django REST Framework'sserializers.CharField()and netbox's model mixins linked to the wrong class or to nothing. Thanks @JosefAschauer.
Java, Kotlin and Scala
- In Java, a bare type name now resolves only to a type in reach. That is a type in the same package, one imported by name or with
.*, or a nested type used from inside its owner, from a subclass (anonymous classes included), or written through its owner as inOuter.Inner. A constructor no longer stands in for its class, and an enum constant is reached by bare name only inside its enum, in acaselabel, or through a static import. Before, retrofit'snew Retrofit.Builder()linked toRequestFactory.Builder, halo's micrometerCounterto its ownCounterclass, and jsoup'sjava.lang.Class<?>to a nested selector class. - Bare calls in Gradle Kotlin scripts (
build.gradle.kts), likeplugins { },dependencies { }orapi(…), are no longer linked to a method or property of one of the project's own classes. Build logic's extension functions on Gradle's types still resolve. Before, nowinandroid's build scripts pointed everyplugins { }anddependencies { }block at its build logic'sGraphclass, and everyapi(…)at a lint registry'sapiproperty. - In Scala, a package object's member now resolves only where it is in scope: in its own package, the packages under it, or a file that imports through that package. Before, cats' laws resolved
Eq,OrderandMonoidto thealgebrapackage object's aliases rather than thecatspackage object's, and sttp's akka tests reached a zio package object'swhenRequestMatches. - In Spring projects, a class name now resolves to the one in the reference's own file or package before any guess by folder convention. A class nested inside another file's class is never reached by its bare name. Before, every MyBatis
Exampleclass'snew Criteria()in mall linked to the firstExample's nestedCriteria, and halo's Lombok@Builderlinked to a nestedBuilderclass elsewhere. - In Scala, a kind-projector placeholder in a type, like
Align[Either[A, *]], is no longer linked to an operator method named*. A symbolic name in a type, like cats'F ~> G, now resolves only to a type. - Kotlin calls inside a DSL lambda now reach the lambda's own receiver. That receiver comes from the function the lambda is passed to, even through a typealias like koin's
Definition<T> = Scope.(…) -> T. It also wins over other types the project uses as lambda receivers elsewhere. On koin, over 2,000get()calls insingle { … }now reachScope.getinstead ofKoin.get; on Exposed,varchar(…)inside a table object reachesTable.varchar; on kotlinx.coroutines,launch { }reachesCoroutineScope.launch. - A Scala chained call like
xs.map { … }no longer lands on an object that happens to be namedmap, as with cats'alleycats.std.mapand itssyntax/instancesobjects. A type or object in a chain is only matched when the receiver names what holds it, as insttp.client4.Response(…). - Kotlin imports now decide what a name means, as Java imports already do.
import java.net.Proxyorimport org.mockito.Mockito.mockno longer links to a same-named project symbol, and a member the file declares itself still comes first. Animport x.Foopicks the right one of several same-named classes: on okhttp,MockResponse.Builder()andRequest.Builder()now reach their classes. A renaming import likeimport …internal.unsafeFlow as flowmeans the function it names. - In Java, a class you import from outside your project now owns its name. After
import java.lang.reflect.Field;the file'sFieldno longer links to a project class that happens to share the name. In gson that was a test's nestedFieldclass; in jsoup's W3C converter it was jsoup's ownDocumentandElement. A static import likeimport static org.mockito.Mockito.verify;is covered the same way. - Scala calls no longer land on another test's local value. A
val fwritten inside onetest("…") { }block was being picked for a lambda parameterfin another suite, and even forf(…)in cats' core library. A package import likeimport cats.syntax.all._no longer puts every class's members in scope. Members that really are in scope now resolve: those of an imported package object's parent types (import sttp.client4._givesSttpApi'smultipart), and of the file's own package object. - Kotlin files using newer syntax now keep their classes intact. That covers
whenguard conditions (is X if cond ->),..<ranges, multi-dollar strings ($$"…") and nullable receivers in function types (T?.() -> R). Before, the class around such code could come out as a scatter of loose functions. On Exposed, files with a parse error dropped from 65 to 43, and on kotlinx.coroutines from 50 to 46. Re-index after upgrading. - Kotlin code using an infix function whose name starts with
e, like Exposed'sUsers.id eq id1, now parses cleanly. Before, the rest of such a line was a parse error, and in a file with many of them the whole class around it could be lost. On Exposed, files with a parse error dropped from 229 to 71. Re-index after upgrading. - In Kotlin, a call with no receiver now reaches a method of another class only when that class is in reach. That means a class, an anonymous
object : Base()or an extension function's receiver around the call, what those inherit, or the receiver of a DSL lambda (koin'ssingle { get() }runs on aScope, Exposed'swithTables { … }on a transaction). An object member the file imports is in reach too. Kotlin's ownerror(…),require(x >= 0) { … }andcheck(…)no longer land on a project class's method of that name. On koin,module { … }in one test used to land on another test class's privatemoduleover 260 times, and inside a lambdaget()landed on the wrong class'sget. Re-index after upgrading. - Kotlin classes whose primary constructor sits on the line after the class name, before a supertype list (
expect open class ByteString/internal constructor(…) : Comparable<ByteString>, common in Kotlin Multiplatform code), no longer lose their members to loose functions. A call later in a chain to a Kotlin standard-library function (apply,let,toString,map,contains…) no longer lands on a project type's same-named method. On okhttp,.apply { … }used to land onConnectionSpec.apply. Re-index after upgrading. - In Scala, a call reached by its name alone now stays in reach. A name that the enclosing function binds as a parameter or local (
f(true)forf: A => B) is that local. A call later in a chain, likefa.iterator.map(…), reaches only a member of what its receiver is named after. A plain call reaches only the enclosing class and its supertypes (an anonymous subclass's base included), a companion, or an imported object. On cats, parameter calls likef(a)used to land on a case class's fieldfover 400 times, and chained.map(…)on one ops class'smap. - In Kotlin, a call to a top-level or extension function now resolves only to one the file can see: one in its own package, one it imports by name, or one from a package it imports with
*. On Exposed, tests that imported kotlin.test's or JUnit'sassertEquals, or the JDBC suite's helper, used to land on the R2DBC suite's helper over 3,000 times. On okhttp, tests that importmockwebserver3.MockResponseused to construct the deprecated class of the same name. A function type with a qualified receiver, like(DatabaseConfig.Builder.() -> Unit)?, no longer breaks the parse of the class around it. Re-index after upgrading. - A bare Java call like
verify(mock),assertThat(x)orhashCode()now links only to a method of the class it's in, of that class's parents, or one the file imports statically. It used to link to any class's method of that name: in halo, Mockito'sverifyandeqgave one service'sverifyover a thousand made-up callers, and in retrofit Truth'sassertThatdid the same to a test helper. Calls to inherited methods and static imports from the project now link to the right one, like jsoup'sattr(…)throughLeafNodeor halo'sand(…)/equal(…)throughimport static …Queries.*. Re-index Java projects after upgrading.
C# and VB.NET
- C# names now follow the language's scopes. A block
namespace X { … }qualifies only the types inside it, so a type declared after the block, or in a file's second namespace, is no longer filed under the first. A namespace written inside another isOuter.Inner. Ausinglinks to the project's namespace instead of another file'susingof the same name. Aglobal usingapplies only within its own project. A nested type is reachable by bare name only from inside its owner or a type deriving from it, including through another partial part. Before, serilog'sGuardwas filed underJetBrains.Annotations, its tests'Some.InformationEvent()went to the performance tests'Some, and AutoMapper's same-filenew Source()could reach another test class's nestedSource. - C# type names now follow namespaces. A type is in reach from its own namespace or one nested inside it, or through a
usingof its namespace. Also counted: a project-wideglobal using, the project's<Using>entries, the SDK's implicit usings, or an alias that names it. Before, Newtonsoft'sasync Tasktests linkedTaskto a test class of that name in another namespace, and AutoMapper's DTOs linked to another namespace'sBaseEntity. - C# members of an interface are now public and types declared without a modifier are now internal, as the language defines. A call on an interface-typed field now reaches the interface's method, where it used to find nothing. A guess from a receiver's name now weighs only the owner type's own name, not its namespace. Standard .NET names like
ToString,AddandWriteneed a receiver named after the owner. In every language, a guess from production code no longer lands on a mock or helper defined in a test suite. Re-index after upgrading. - In C#, a bare name like
TestContext,EasingorHelper()now resolves only to a member of the class it's written in, its outer classes, their base classes, or a type brought in withusing static. That includes aglobal using staticand a project file's<Using … Static="true"/>. On eShop, test classes'TestContextused to land on one other test class's property; on Newtonsoft.Json,TypeNameHandling.Allnow reaches the enum rather than a same-named property. - In VB.NET, a call through a receiver like
Me.Panel.Controls.Add(…)orNew System.Drawing.Size(…)no longer lands on an unrelated class's member with the same name. It now resolves only throughMe,MyBaseorMyClass, through the member's own class or module (Logger.Log(…)), or through a service lookup's type (GetService(Of Notifier).Notify()). On SCrawler, the Windows Forms designer code used to link over 700Sizecalls to a nested enum's case and over 500Controls.Addcalls to a collection class. - In C# and VB.NET, a type written in code, like
Type sourceType,List<int>,new TypeMap()orDictionary<string, Type>, now links to the type and no longer to a property, method or field that shares its name.List<…>used to link to some test class'sListproperty,Typeto an attribute'sTypeproperty, and a parameter of typeTypeMapto aTypeMapproperty instead of theTypeMapclass. Those members showed up with hundreds of made-up dependents. Reading a property or passing a method, likeBuilder.ServicesorMapGet("/x", GetItems), still links as before. Re-index C# and VB.NET projects after upgrading.
Swift and Objective-C
- An Objective-C class that conforms to a protocol of its own name now links to that protocol instead of to itself. Swift's naming conventions for views, models and controllers also no longer apply to Objective-C code. Before, every one of SDWebImage's
@interface SDDiskCache : NSObject <SDDiskCache>-style classes implemented itself. - In Swift, a call to an overloaded method now reaches the overload whose argument labels it spells, with defaulted parameters optional. Before, only the argument count was compared. Alamofire's
self.tableView(tableView, numberOfRowsInSection:)inside anothertableViewoverload linked to itself, andcancel(optionallyProducingResumeData:)linked tocancel(producingResumeData:). - A Swift call on a property declared with a type, like Kingfisher's
var cache: ImageCache!orself.storage.write(…), now reaches that type's method or one it inherits. It no longer lands on a subclass override in a test, or on another type's method of the same name. - A Swift call on a value built on the spot, like
JSONDecoder().decode(…)orRealm().create(…), now resolves to that type's method, or to one it inherits. It no longer lands on some other type's method of the same name: Vapor'sJSONDecoder().decodecalls had gone to a request's private container. - In Objective-C,
[super init]and other messages tosupernow reach the superclass's method, never the sending class's own override. This also works where the index lost the@implementation's range. On SDWebImage,NSObjectsubclasses'[super init]used to land onSDDiskCache'sinit, and[self class]in tests on a proxy class'sclass. On AFNetworking, a serializer's[super encodeWithCoder:]now reaches its superclass. Re-index after upgrading. - In Swift, a call written with no receiver, or through
self.orsuper., now reaches only a member of the type around it or of what that type inherits or conforms to, and the nearest override wins. A standard-library name later in a chain (axis.entries.removeAll(),names.contains(x)) no longer lands on a project type's method, unless the receiver or the call's argument label points to it. On Charts,min(a, b)andmax(a, b)used to land on a range type'sminfield and aSequenceextension, andsuper.init(…)on an Objective-C demo'sinitover 170 times. A global in a playground or a test target is no longer linked from the main code. Re-index after upgrading. - In Objective-C, a message now reaches a method only when it could really be sent there. A message to
selforsuperreaches only the sender's class and its superclasses, including categories on UIKit and AppKit views. A C-style call likecompletionBlock()is never taken for a method or property. A message to a local variable uses the variable's declared type (FMResultSet *rs). On SDWebImage,[self class],respondsToSelector:andisKindOfClass:used to land on a proxy class's overrides over 150 times, and on fmdb[rs close]now reaches the result set. - A Swift call through a nested type, like
API.PackageController.GetRoute.query(on: db), now links to that type's method. Onlyqueryused to be kept, so the call linked to whichever type'squerycame first; in a Vapor app every route type has one, so callers, impact andcodegraph_exploreanswers pointed at another endpoint's code. The same applies to nested types' initializers (API.PackageController.Model(name:)), to enum cases (Gitlab.Error.requestFailed(status:)), to types declared in anextension API.PackageController { … }, and to The Composable Architecture'sPath.State.detail(…). A call on a type path that names no type in the project, such as an SDK'sPlot.Node.footer(…), is left unlinked. Re-index Swift projects after upgrading. - A SwiftUI view, a
@mainapp, a view controller and a UIView subclass are now indexed once. Each used to get a second, one-line copy with no callers or calls, which showed up next to the real type in search andcodegraph_exploreanswers as a dead end. Re-index Swift projects after upgrading. - A Swift class or struct that declares a protocol composition across lines, like
typealias Client = AutocompleteService.Clientfollowed by& PostingService.Clienton the next line, is now indexed whole. That line used to break the parse of the entire enclosing type, so its methods, initializer and properties went missing, and calls into them landed on same-named methods elsewhere. Re-index Swift projects after upgrading. - A Swift reference to a type now links to the type's own declaration, not to a file that extends it. An
extension View { … }orextension Text { … }used to stand in for SwiftUI's type, so every view, everyText("…")and everyColor.redin an app linked to whichever file happened to extend it. Those files topped the most-depended-on lists and their impact reached the whole app. A bare name like@State,@TestorResult<…>no longer links to some other type's nestedStateorResult, and a qualified name likeBuild.Idlinks to theIdit names. Methods declared in an extension of an SDK type still resolve on the types that conform to it, and a protocol's methods declared in any of its extensions now connect to each conforming type's own implementation. Re-index Swift projects after upgrading. - A Vapor route now links to the handler it names.
use: SearchController.showused to link to whichever controller'sshowcame first, so routes with a common handler name, likeshow,indexorget, pointed at another endpoint's code in callers, impact andcodegraph_exploreanswers. Nested types likeAPI.PackageController.getand handlers declared in an extension of the controller now resolve too, anduse: self.indexresolves to the collection's ownindex. Re-index Vapor projects after upgrading.
C, C++, Go and Rust
- A call in C code is no longer linked to a C++ class's method, since C has no methods and can't call one. Before, redis's POSIX
read(fd, buf, n)calls and hiredis'sc->funcs->read(…)function pointer pointed at a Qt adapter'sreadmethod. - In Go, a name written through an imported package from outside the module, like
context.Context,http.ResponseWriteror testify'srequire.Contains, is no longer linked to a project symbol of that name. Before, fiber'scontext.Contextparameters pointed at a methodStream.Context, itsrequire.Contains(…)assertions at an extractor'sContains, and gin'shttp.ResponseWriterat its ownResponseWriterinterface. - In Rust,
Self::Errorin a signature now resolves to the enclosing impl's or trait's own associated type. A path through a generic parameter, likeV::Value, no longer resolves to an unrelated struct of that name. Before, serde'sSelf::Errorsignatures pointed at its onestruct Error, and axum'sSelf::Errorataxum-core's error type. - In Rust projects, a struct, handler or service name no longer resolves to an item declared inside some function body, and a file's own item comes before any other crate's. Before, axum's examples'
Urilinked to astruct Urideclared inside a routing test, tokio's runtimeHandlelinked totokio-test's, and ripgrep'sGlob { … }in globset linked to the CLI flags'Glob. - Rust type and function names now follow Rust's scoping. A name from another file counts only when a
usebrings it in (or a*glob over its module). One imported from outside the project, likeuse std::task::{Context, Poll}oruse futures::Stream, means that outside item. A path names its module:io::Resultisn't an unrelatedResultalias elsewhere, andstd::io::Erroris std's. On tokio, over 1,200io::Resultand 600Contextreferences had been landing on private project types. - A C++ call into a macro-opened namespace, like
fmt::format("{}", x), now picks the overload its arguments fit. Before, the first overload indexed won: fmt's 1,400fmt::formatcalls all reached thetext_styleoverload incolor.h. A narrow string literal now fits a narrow format string, a wideL"…"fits the wide overload, and the argument count has to fit too. - C++ classes written around macros and preprocessor conditionals now keep their members. These include an access specifier spelled as a macro (
JSON_PRIVATE_UNLESS_TESTED:), an attribute macro after a template head or a doc comment, and an#ifin the middle of a declaration, such as inside a constructor's initializer list. The first branch of a mid-declaration#ifis the one indexed. nlohmann/json'sbasic_jsonclass used to be lost whole and now has its roughly 390 members. Files with a parse error dropped on redis, curl, pybind11 and leveldb, and no file got worse. Re-index after upgrading. - Calls on a library's own types and modules no longer land on a project method that happens to share the name. In Rust,
Vec::new(),String::from(…)and module paths liketask::spawn(…)stay the standard library's. A later link of a multi-line Rust or Go chain now counts as a chained call, named after the chain's first line. In Go,w.Header().Get(…)is net/http's. In R, a plain call likerange(x)is a function, not an object's method. In JavaScript,response.text()/.json()is fetch's. On tokio,task::spawn(…)used to land onTaskTracker::spawn300 times. On ggplot2,range(…)used to land on a coordinate system'srangemethod. Re-index after upgrading. - In C and C++, a qualified name like
fmt::formatnow reaches a declaration inside a namespace the library opens with a macro, like fmt'sFMT_BEGIN_NAMESPACE, pybind11'sPYBIND11_NAMESPACE_BEGIN(…)or rapidjson's and spdlog's…_NAMESPACE_BEGIN. It also works through a namespace alias likenamespace py = pybind11;. On fmt, 1,728fmt::format(…)calls used to link to nothing, and so did about 1,400py::…calls on pybind11. - In Rust and Go, a call later in a chain, like
sym.filename().map(…)orc.Flags().String(…), no longer lands on the project's own method of that name when the name is a standard-library one (unwrap,clone,map,iter, Go'sStringorError). A plain call likeget(handler)ordrop(x)never lands on a method. On tokio,.map(…)on anOptionused to land onMutexGuard::map; on axum, the router'sget(handler)on a cookie jar'sget; on ripgrep,.clone()on an error type. - In Rust, a bare
Ok(…),Some(…),Err(…),Result<…>,Option<…>,Vec<…>ordrop(…)now means the standard library's, unless the file defines or imports a project item of that name. These used to link to any same-named enum variant or struct in the project: everySome(x)in ripgrep to one enum'sSomevariant, and everyOkandResultin serde to structs its macro-hygiene tests declare. An enum variant is now reached by a bare name only where the fileuses it or its enum's*, and a variant never stands for a type. Re-index Rust projects after upgrading.
PHP, Ruby, Dart, Lua, R, Solidity, Erlang and CFML
- In Laravel apps, a route whose controller is named by string now links to its handler, without needing a
Controllersuffix and keeping the namespace it's written with:'Common\Uploads@inline', andRoute::resource('companies', 'Common\Companies', [...])with an options array. Two same-named controllers in different namespaces are told apart by that namespace. Before, akaunting linked 304 of its 313 routes to nothing. - In Rails apps, a
resourcesline'sonly:andexcept:are now read in every form Rails accepts:%i[new create index],%w(index show), a quoted name, and the older:only => [...]. Before, only a bracketed list was read, so maybe'sresources :family_exports, only: %i[new create index]became all seven routes, four of them to actions the controller doesn't have. - In PHP, a class written with a namespace in its name now links to that class. After
use App\Fields as Field;,new Field\FirstName(),extends Field\BaseandField\FirstName::make()all nameApp\Fields\FirstName, as doFields\FirstNamewritten insidenamespace App;and a fully qualified\App\Fields\FirstName. Before, none of these had a link, so callers and impact missed every class reached that way. Thanks @drakeo338. (#2256) - In Solidity, a call to an overloaded function now reaches the overload whose parameter count it fits, as in the other languages with overloading. Before, OpenZeppelin's
_checkRole(role, _msgSender())inside the one-argument_checkRole(bytes32 role)was linked to itself. - In R, a call like
c(1, 2)is no longer linked to a data variable that happens to share a base function's name, since R skips non-function bindings when it looks up a call. Before, ggplot2's facet tests boundc <- data_frame(b = 3), and everyc(…)call in those files pointed at that data frame. Functions built by a factory, like ggplot2'sgeom_point <- make_constructor(…), still resolve. - A Dart
extension on X { … }with no name is no longer mistaken for the typeX, and its members are reachable only inside the file that declares it, as in Dart. Before, bloc's linter linked analyzer'sTokenand Dart'sUrito small extension blocks, and every flutter_testfind.text(…)call linked to atextgetter on another example'sTaskStatus. - In PHP, an unqualified class name now resolves to the current namespace's class or the one a
useimports, as PHP does. If the imported class comes from a library, it resolves to nothing in the project. Before, koel's form requests linkedextends Requestto whicheverRequestclass was indexed first, and BookStack's controllers linkedRequest $request(Laravel's, by import) to BookStack's ownRequestsubclass. - A Dart call like
ext.endsWith(".avi")ormap.putIfAbsent(…)on a value whose type isn't known now counts as Dart's own String, List or Map method. It no longer lands on a project method of the same name. A Dart extension is also matched by the type it extends, not by its own name, so getx'sext.endsWithon a String stopped reachingextension RxStringExt on Rx<String>. - A bare Lua call like
ipairs(t),error("…")or busted'ssetup()now means Lua's own function unless the file defines one. It no longer lands on a table method of the same name: telescope'sipairscalls had gone to a linked list'sipairs, and kong'serrorcalls to its response module. A function's own alias of a host table member, likelocal get_query = kong.request.get_query, is now followed as well. - Lua calls made through a
localalias now reach the function it names. That coverslocal splitn = require("kong.tools.string").splitn, a module member such asutils.select_listener, and a function a module exports under another name (return { check = check_phase }). Aliases of Lua's own functions, such aslocal type = typeorlocal fmt = string.format, no longer show up as calls into your project. On Kong that is over 1,000 calls that now reach their real function, and about 5,000 fewer dead-end edges. - In Solidity, a call with no receiver now reaches a function of the contract around it or of one it inherits. On OpenZeppelin,
_msgSender()in contracts built onContextused to land onERC2771Context's override 83 times. In Erlang, a call to another module's function now follows the file's-import(Mod, [f/N]). On cowboy,-import(req_SUITE, [do_get/3])calls used to land on another suite'sdo_get/3. A bare call with no such import no longer links to some other module. Re-index after upgrading. - In Lua and Luau, a call through a standard or host library table (
string,table,io,vim,ngx, busted'sassert…) or a string method likeline:find(…)no longer lands on the one project method with the same name. Functions the project itself defines on those tables still link. On kong, the specs'assert.truthy(…)andassert.falsy(…)used to land on a condition helper over 1,700 times; on telescope,line:find(…)on the picker'sfind. - In PHP, a call through a variable nothing types no longer lands on an unrelated class's method just because it's the only method with that name. The variable now needs to be named after the method's class, or after a class that inherits it (
$page->save()wherePageextendsEntity). On guzzle, the tests'$response->getHeaderLine()used to land on a test double; on symfony/console,$e->getMessage()on a progress bar. - In CFML, a call no longer lands on an unrelated component's method just because the name matches. A call with no receiver inside a component now reaches only that component's methods and those of the components it extends, so built-ins like
now()stay built-ins. A call on an untyped variable now needs the variable to be named after the component, soserver.keyExists(…)is no longer taken for some component'skeyExists. On coldbox,now()used to land on a date helper over 200 times, and TestBox'sfail(…)in specs now reaches the spec base class. - In Ruby, a call no longer lands on an unrelated class's method just because it's the only method with that name. A call on an untyped receiver now needs the receiver to be named after the method's class, like
web_push_request.legacy_encrypt. A call with no receiver inside a class now reaches only that class's methods, its superclasses' methods, and those of the modules it includes, extends or prepends. On rubocop,node.locon a syntax node used to land on the project's onelocmethod over 1,200 times, and Kernel'sformat(…)on the language server'sformat. On mastodon,renderin controllers used to land on an inline renderer, andauthorizenow reaches the authorization concern. - In Dart, a call written without a receiver now reaches only a method of the class it's written in, of a class it extends, mixes in or implements, or of an extension on one of those types, and picks the nearest one. On riverpod, package:test's
test(…)in the test files used to land on a container class'stestmethod over 1,100 times, shelf's and getx'sexpect(…)on unrelated classes'expect, and bloc'semit(…)in a Cubit on the wrong base class. Classes declared asclass A = B with C;are now indexed under their name, with what they extend and mix in. Re-index after upgrading. - In R, a variable assigned at the top of a test file is no longer linked from the package or from other tests, because testthat runs each test file in its own environment. On ggplot2, a test's
c <- ggplot(…)used to collect 2,455 of the package'sc(…)calls. Variables inhelper-*.Randsetup-*.R, which testthat loads for every test, are still shared. - In Lua and Luau, a
localvariable or function is no longer linked from other files, since it's only visible in the file that declares it. On kong, a spec helper'slocal it = itused to collect every other spec file'sit(…)(over 4,000 links), and one module'slocal ipairs = ipairstook the whole project'sipairs(…). Global functions are still linked across files. - PHP calls on
$this,self,staticandparentnow reach the method of the class they're written in, a class it extends, or a trait any of them uses, with parent classes and traits found through the file'snamespaceanduseimports. On Drupal core,$this->assertEquals()(PHPUnit's) used to link to an unrelated comparator class 8,832 times,$this->assertSession()to a JavaScript-test base class, and$this->t()toViews::t. They now reachUiHelperTraitandStringTranslationTrait, or nothing when the method lives in a package outside the repository. A call inside a trait, and a base class calling a method its subclass defines, keep their links. Re-index PHP projects after upgrading. - A PHP function call written after
=>in an array, like'count' => count($items),'by' => user()->idor'label' => trans('…'), is now read as a plain function call. It used to be taken for a method call and linked to whichever class had a method of that name. On BookStack, that meant 166 wrong links. - A PHP call written without a receiver, such as
redirect($url),view('books.show'),auth()orbasename($path), is a function call, and no longer links to a same-named method, field or class elsewhere in the project. These wrong links showed up in callers, impact andcodegraph_exploreanswers wherever a Laravel helper or PHP built-in shared its name with a project member. Re-index PHP projects after upgrading.
v1.6.1
2026年09月29日
[1.6.1] - 2026-09-29
Highlights
- Sharper answers from
codegraph_explore. It returns the functions and methods you name — even from a very large file, or one full of same-named overrides — honours line numbers in a query, and says when it shortened an answer instead of calling it complete. - Your app's navigation and requests are in the graph. Expo Router, Next.js, React Router, TanStack Router, Vue Router / Nuxt and SvelteKit pages and the links between them are routes and
navigatesedges, and a page'sfetchreaches the route that serves it, so "where does this go" and "what calls this endpoint" are one question tocodegraph_explore. - Explore says when a call happens. Each hop in
codegraph_explore's Flow section carries the condition it runs under, for JavaScript, TypeScript, Swift, Python, Java, Kotlin, C#, Go and C. - Fewer wrong links. Many fixes to how calls, imports and inheritance resolve in TypeScript, JavaScript, Python, Java, Kotlin, Go, Rust, Scala, PHP and C/C++, so a call stops landing on an unrelated symbol that happens to share its name.
- Live sync you can rely on. The MCP server follows a rebuilt index after
codegraph index, a sync interrupted halfway recovers what a clean index would have, symlinked folders stay in sync, and a WSL project on a Windows drive gets an index of its own. - Lighter on big repositories. Repeated explores from the MCP server no longer rescan the whole graph, and oversize files and
.tsvideo fixtures are no longer read or parsed while indexing. - Upgrading: re-index your projects after this release — several fixes and the new navigation links are written while indexing.
New Features
-
Codex and Astra read project guidance from
AGENTS.md. The canonical agent guide now lives inAGENTS.md(with a nesteddocs/AGENTS.mdfor long validation notes);CLAUDE.mdis a thin@AGENTS.mdwrapper for Claude Code. Codex/Astra no longer miss the old CLAUDE-only instructions. -
Next.js pages and their navigation are in the graph. App Router pages (
app/(group)/blog/[slug]/page.tsx→/blog/:slug) and Pages Router pages are routes bound to the component they export, and<Link href>, an internal<a href>,router.push/router.replace(next/navigationandnext/router),redirect()/permanentRedirect()and the middleware'sNextResponse.redirect(…)arenavigatesedges between them.app/api/**/route.tsexports (GET,POST, …) are endpoints bound to their functions, andpages/api/*handlers areANY /api/…. Re-index after upgrading. -
TanStack Router routes and navigation are in the graph. Routes are read both ways a TanStack app declares them — file-based, where
createFileRoute('/posts/$postId')carries the whole path, and code-based, where eachcreateRoute({ path, getParentRoute })is composed through its parent — andnavigate({ to }), a thrownredirect({ to })and<Link to>/<Navigate to>arenavigatesedges to the route they name. A pathless_authlayout, a(group)folder and__rootare not pages, and a computed destination is left out rather than guessed. Re-index after upgrading. -
Vue Router, Nuxt and SvelteKit navigation is in the graph. Vue: routes are read from
createRouter({ routes: [...] }), including a lazycomponent: () => import('@/views/Login'), androuter.push/router.replace/$router.push, Nuxt'snavigateToand<router-link>/<RouterLink>/<NuxtLink>arenavigatesedges, resolved by route name as well as by path. SvelteKit:goto('/login'),redirect(303, …)from a load or a form action, and a plain<a href>arenavigatesedges, and a page is joined to the page file that serves it and the+page.server.jsbeside it. A computed destination or a path nothing declares is left out rather than guessed. Re-index after upgrading. -
React Router navigation is in the graph.
history.push/history.replace,navigate(…)fromuseNavigate,redirect()in a loader or an action, and<Link to>/<NavLink to>/<Navigate to>/ react-router-bootstrap's<LinkContainer to>are nownavigatesedges to the route they open, and a route with an optional parameter (/cart/:id?) is reached by both/cartand/cart/5. A computed destination or a path no route serves is left out rather than guessed, and an ordinarypaths.push('/x')on an array is never mistaken for navigation. Re-index after upgrading. -
codegraph_explorefollows a web app across its tiers. A page'sfetch('/api/users', { method: 'POST' })— or anaxios/ky/got/$fetchcall, including one through anaxios.create({ baseURL })instance — now reaches the route that serves it in the same index. A job put on a BullMQ / Bull queue reaches the@Processmethod,Workerorqueue.processhandler that consumes it, a NestJSEventEmitter2event its@OnEventlisteners, a socket message the gateway's@SubscribeMessagehandler and back, and a Next.js server action called from a client file is a crossing to the server. Each is a synthesized hop that the Flow section names, with where it was wired up. Only a literal path or event name pairs. Re-index to pick the new edges up. -
codegraph_exploresays when each call happens. Every hop in the Flow section carries the condition its call site sits under —↓ calls (when isCollected)— read from theif/else,switch/when/match, ternary,tryand&&/andbranches around the call and the early returns before it (if (busy) returnreads as!busy, Go'sif err != nil { return }aserr == nil). It works for JavaScript, TypeScript, Swift, Python, Java, Kotlin, C#, Go and C, is read from the source as it stands, and a language without rules says nothing rather than guess. -
React Native apps: Swift native modules and their events connect end to end. A JS call like
captureView.finalizeCaptureSession()— wherecaptureViewis bound toNativeModules.CaptureViewand the module is a Swift class exposed through anRCT_EXTERN_MODULEshim — now resolves to the Swift method itself instead of stopping at the constant, socodegraph_explorefollows the code into native. Native → JS events now also land on listeners written inline (addListener('onZipComplete', (data) => { … })), attributed to the component that registers them. Re-index after upgrading to pick the new edges up. -
Expo Router apps: screens and navigation are in the graph. Every screen file under
app/(orsrc/app/) is now a route node named by its path —/object-detail,/item/[id], with(group)folders stripped — linked to the component it renders. Calls likerouter.push('/object-detail?…'),router.navigate({ pathname: '/item/[id]', params }), template-literal hrefs, an href held in a localconst, androuter.push(await pickRoute())where the helper returns screen paths (one edge per screen it can return) resolve to the screen they open as a newnavigatesedge that remembers the href, so "where does tapping this go" and "who opens this screen" are one hop incodegraph_exploreandcallersinstead of a dead end at a string. Re-index after upgrading to pick the new edges up.
Fixes
-
The Claude Code prompt hook no longer runs on the task-notification messages Claude Code injects when a background agent finishes, removing a multi-second stall on every such turn. (#1832)
-
Rust calls on
selfnow stay with the enclosing type instead of linking to an unrelated type’s same-named method. Thanks @L4XB. (#1861) -
Turning telemetry off now resets its identity and stops running processes from recording, sending, or restoring unsent data. (#1869)
-
Calls between JavaScript, JSX and TypeScript files keep their callers and callback flows.
-
Zustand actions keep their callers when read through typed stores, destructured from store state, or selected by a hook.
-
Direct React Native bridge calls retain their native implementations and cross-platform relationships.
-
Dart extension-type getters remain searchable when using the WebAssembly parser.
-
Calling a built-in method on an awaited value no longer records a call into an unrelated class that happens to declare a method of the same name, and a variable bound to an awaited call now resolves methods on the type that call returns. Thanks @maxmilian. (#1840)
-
Spring mappings now include every declared path combination and resolve constants declared in the same file, while unresolved paths no longer appear as false root routes. (#1461)
-
codegraph nodenow accepts a file reference that carries a line number —src/app.ts:42,src/app.ts:42-80,src/app.ts#L42,src/app.ts#L42-L80— instead of reporting the file as not indexed; the line range becomes the window that is read, and an--offset/--limityou pass yourself still wins. A path that really is named that way is still looked up as written. (#1831) -
codegraph callers,codegraph calleesandcodegraph impactnow resolve qualified names, group results and JSON edges by definition, and accept--fileto narrow ambiguous names; thanks @ferrine. (#1512, #1656) -
codegraph callers,codegraph calleesandcodegraph impact(CLI and MCP) now report missing names with did-you-mean suggestions instead of another symbol's results, and exact matches with no callers stay empty; thanks @uvmplus. (#1473, #1481) -
When
codegraph_exploretrims a large file, the gaps in its source now name the symbols that were left out, using only room the file's budget has left, so the names never push out the code itself. (#1711) -
codegraph_exploreno longer reports "runtime dispatch" through a base class that doesn't declare the method, so a common name shared by many unrelated subclasses no longer opens an answer with a list of thousands of implementations. -
When you name several functions in one file and unrelated code sits between them,
codegraph_explorenow returns the functions you named before the code around them, instead of spending the file's room on that code and leaving one of the functions you asked for with no source at all. -
codegraph_explorenow returns the body of a method you name together with its class, such asSQLCompiler.as_sql, even in a file full of same-named overrides. It used to shrink the method you asked for to its signature line while smaller methods around it came back in full. A method too long for the answer now comes back as its opening lines plus the places it calls the other symbols you named, with the exact follow-up query that returns the rest. -
codegraph_explorenow honours line numbers in a query:compiler.py:776returns the method containing that line, andcompiler.py lines 900-1003(or:900-1003,#L900-L1003,L900-L1003) returns exactly those lines. It used to pin the file and ignore the numbers. -
When a file name in a
codegraph_explorequery matches files in more than one folder, only the ones defining a function or class the query also names are pinned, and the summary line lists the files left out. Every match used to be pinned, so the file you meant got half the room it gets when you leave its name out; a name shared by many files, likemodels.py, now resolves the same way instead of being reported as ambiguous.
MCP / indexing
-
On Windows, the shared MCP daemon now waits longer for another program — an antivirus scan, an indexer, or another session reading its lock file — to let go of that file, so it starts instead of leaving the session to fall back to a slower in-process server. (#1773)
-
A file over the size limit is no longer read before it is skipped. Large committed video and blob fixtures used to be loaded into memory in full, once per indexing pass, only to be discarded; indexing and change detection now go by the file's size instead. Thanks @danusha2345. (#1910)
-
An MPEG transport stream video that happens to be named
.ts(golden fixtures undertestdata/, e2e clips) is now recognised from its first bytes and skipped instead of being fed to the TypeScript parser, which spent a long time on each clip for no symbols. Real TypeScript files are still indexed. Thanks @danusha2345. (#1910) -
Repeated
codegraph_explorecalls from a running MCP server no longer re-rank the whole graph each time to find the project's core file; the answer is reused until the index changes. Thanks @danusha2345. (#1864) -
File watching no longer drops the full re-scan a removed directory asks for when that sync fails, so the deleted files leave the index instead of lingering. (#1964)
-
Running
codegraph indexwhile the MCP server is running no longer leaves live auto-sync writing into the old, replaced index: the server now switches to the rebuilt index before its next update and catches up on everything it would otherwise have missed. Thanks @danusha2345. (#1902) -
Daemon startup and cleanup now preserve live legacy PID-only locks while still reclaiming dead or identity-disproved records, preventing two writers from serving the same project.
-
An empty or table-less
codegraph.dbleft behind in a parent directory (by an interruptedcodegraph init, or a never-populated~/.codegraph/) no longer counts as an initialized project, so it can no longer hide the real index of every project beneath it. Only a database that actually carries the codegraph schema is treated as initialized, andcodegraph initin the directory with the broken file now repairs it instead of refusing with "Already initialized". Thanks @danusha2345. (#1895) -
Incremental sync now keeps edge rebinding crash-safe: replacing a resolved edge with its recovery reference commits atomically, so an interruption cannot permanently remove the relationship.
-
Status now detects committed but unindexed changes and restored edits without scanning every source file; thanks @inth3shadows. (#1829)
-
The prompt hook no longer injects unrelated projects when run from your home directory or a broader directory containing a stray workspace manifest. (#1454)
-
codegraph_explorenow says so when a query names an extension-less file the index doesn't hold. A path likescripts/deployhas no extension on its last segment, so it failed the shape test that decides a span is a path beyond doubt — the name was left in the query, shredded intoscriptsanddeploy, and the answer came back as a pile of unrelated source with no hint that the file you named was never consulted. Such a span is now checked against the project directory: if it is a real file, the answer carries the sameNo indexed file uniquely matches ...note a misspelledsrc/foo.tsalready got. Slashed prose —and/or,input/output,gen_server:call/2— has no file behind it and is still left in the query untouched. (#1830) -
Indexing now succeeds when Node.js's SQLite lacks FTS5, with search falling back to name and fuzzy matching; thanks @aniruddhaadak80. (#1532)
-
codegraph_explorenow makes clear that suggested call counts are advisory, so agents keep exploring when an answer is incomplete; thanks @rongbc. (#1504, #1570) -
C++ functions following anonymous namespaces containing raw-string templates are now indexed correctly, even when template text resembles an unfinished macro call. (#1505)
-
Indexing now warns when parser errors leave a file with no symbols, including C++ raw strings with 16-character delimiters, so missing code is no longer silent. (#1522)
-
codegraph index <path>now refuses uninitialized paths and names the nearest initialized parent instead of silently rebuilding it; thanks @danusha2345. (#1524, #1689) -
Sync now recovers the same connections as a clean index after interrupted reference resolution, including inherited calls and callbacks that previously stayed missing. (#1577)
-
codegraph_explorenow re-serves source to fresh subagents and after context compaction, with cross-call dedup available only through an explicitCODEGRAPH_EXPLORE_DEDUP=1opt-in; thanks @danusha2345. (#1620, #1624) -
Watcher scope now matches
git ls-files --exclude-standard(#1728).buildDefaultIgnore/buildScopeIgnoreread.git/info/excludeandcore.excludesFile(not only the root.gitignore), and seed directories git reports as ignored-untracked so nested.gitignoreeffects prune the live watcher the same way the indexer skips them. Single-file auto-sync was already incremental (pendingFiles→ scopedsync({ paths })); the remaining gap was watching trees git had excluded. -
Live sync no longer lets the write-ahead log grow without a bound when a reader is holding it open (#1539). Incremental sync now uses the same writer pause that full indexing already used, and if checkpointing still cannot finish once the log is past its documented size limit — typically because the query pool is reading at the same time — sync stops with a clear error instead of keeping writing until the disk fills. The previous behaviour could leave a multi-tens-of-gigabyte log beside a few-gigabyte index on a large project. Close concurrent readers and retry, or raise
CODEGRAPH_WAL_VALVE_MBif the limit is too tight for the project. -
A second
codegraph serve --mcpon the same project no longer silently kills auto-sync (#1740). Direct mode (CODEGRAPH_NO_DAEMON=1or proxy→in-process fallback) now takes an exclusive.codegraph/writer.pidlock; a second writer exits immediately with guidance to stop the other server or unsetCODEGRAPH_NO_DAEMONso clients share the daemon. The shared daemon already multiplexes N clients onto one watcher — this closes the same-OS dual-direct gap the docs warned about for Windows/WSL but did not guard. -
Indexing no longer checks whether files outside your project exist. A relative import that points above the project directory (
../../something) made CodeGraph probe that location on disk while resolving it. Nothing outside the project was ever read, and no such file was ever added to the index or linked to, but the check itself should not have happened — such an import now simply resolves to nothing. Symlinks inside your project that point at code kept elsewhere are unaffected and still index as before. Thanks @ErQrYfkrju. (#1631) -
codegraph installnow honorsCLAUDE_CONFIG_DIRandCODEX_HOMEfor global Claude Code and Codex setup so CodeGraph loads in your chosen profile (thanks @seanchann; #1627). -
codegraph install --refreshno longer leaves a.backupfile beside the config of an agent it isn't set up for. Checking whether an agent already has CodeGraph meant reading its config, and a config that wasn't valid JSON — an emptymcp_config.jsonnext to an Antigravity install, say — got copied aside with a warning that CodeGraph was about to overwrite it, even though the agent was then skipped untouched. Checking is silent now; a config that can't be read is still backed up, but only when CodeGraph really is replacing it. Thanks @Gotman08. (#1870) -
Files opted in with
includeIgnorednow stay indexed on Git older than 2.36, and embedded repositories remain visible to the watcher (thanks @maxmilian and @newshowardz777; #1549). -
codegraph initandcodegraph indexnow list unsupported file extensions and explain that CodeGraph is inactive when no supported source files are found (#1502). -
codegraph_explorenow flags a dynamicimport()/require()built from a template literal with a substitution or from string concatenation, while an escaped\${…}stays a plain string. Thanks @inth3shadows. (#1967) -
The stale-file warning no longer names a pending file just because its path is a prefix or suffix of a path the answer shows (
src/app.tsvssrc/app.tsx). Thanks @inth3shadows. (#1968) -
When
codegraph_explorefinds nothing, it now says that matching is lexical, lists the query words the index doesn't contain, and suggests real symbol names to retry with. Thanks @iacore. (#1904) -
codegraph_explorenow finds a file when the query is its exact Chinese filename, with or without the extension. Thanks @Syh1906. (#1372) -
codegraph_explorenow returns the methods and types you name from a large file instead of a few lines around one call. When a file's symbols sat close together, and whenever you named the file by path, the answer could show only its first lines and a window on one call site, leave out the bodies you asked for, and still call the file complete, so your agent read it back. A genuinely long function on the call path is still shortened to its signature and the call that matters, and the answer now says when it did. -
When your question names symbols concentrated in one file and the answer has room to spare,
codegraph_explorenow uses that room for the file you named instead of stopping at a fixed share of the response, so every body you asked for fits. Other files in the answer keep the space they were given. -
codegraph_exploreno longer tells your agent an answer's source is complete when part of it was shortened to fit. On larger projects it now names the files it trimmed and the functions it left out, so your agent asks for those by name instead of reading the file, and it no longer suggests reading a file as a fallback. -
Java, Kotlin and Scala packages named
buildunder a source root are indexed again, while real build-output directories stay excluded. Thanks @CmmVoid for the report and @danusha2345. (#1642) -
Files over the 1 MB source limit, such as a package archive an import points at, are now rejected before they are read during resolution, removing a multi-gigabyte memory spike at startup. Thanks @hcg1023 for the report and @danusha2345. (#1553)
-
codegraph syncnow reports that the index is busy and exits non-zero when another process holds the write lock, instead of printing "Already up to date". Thanks @inth3shadows. (#1361) -
codegraph syncnow reports the pending references it resolved instead of printing "Already up to date" while it did that work. Thanks @inth3shadows. (#1360) -
An incremental sync now refreshes event, callback and cross-tier links when a change touches a registration, a handler or a file that feeds them, so the graph matches a full re-index; ordinary edits stay as fast as before. Thanks @bompus. (#1988)
-
Edits inside a symlinked directory now auto-sync on macOS, Windows and Linux, including links added, removed or retargeted while watching. Thanks @ztibeike for the report and @dengzhongyuan365-dev. (#770)
-
A project queried through
projectPathnow catches up on first access and stays in sync like the default project, coordinating with any daemon that already owns it. Thanks @nakisen for the report and @danusha2345. (#1835) -
Two spellings of one repository (a symlink, or different casing on a case-insensitive drive such as WSL
/mnt/c) now share one index connection instead of opening it twice. Thanks @yjtdkj for the report and @inth3shadows. (#1057) -
In WSL, a project on a Windows drive (
/mnt/c/…) indexed for the first time now gets its own.codegraph-wsl/index, so it never shares one with CodeGraph on Windows; an index you already have in.codegraph/stays where it is, andCODEGRAPH_DIRstill picks the name when set. Thanks @Jek-Mena for the report and @inth3shadows for narrowing it down. (#995) -
In WSL, a project on a Windows drive whose
.codegraph/index CodeGraph on Windows also uses no longer fails with a bare "disk I/O error": the CLI, and your agent through MCP, now explain that Windows and WSL can't share one index there and that settingCODEGRAPH_DIR=.codegraph-wslin WSL gives it its own. (#995) -
Direct (non-daemon) MCP sessions now serve concurrent calls from a small off-thread query pool (2 workers by default;
CODEGRAPH_QUERY_POOL_SIZEchanges it). Thanks @blabla-yy. (#1465) -
impact --depth N, and callers/callees at a depth, now find every dependent within N hops even when a longer path reaches one of them first. Thanks @inth3shadows for the report and @danusha2345. (#1974) -
Path finding no longer re-queues the same node many times through a dense fan-in hub. Thanks @inth3shadows. (#1359)
-
Everyday Portuguese/Spanish "como" and German "wie" no longer escalate a prompt to a full code search on their own. Thanks @AndreLFSMartins. (#1654)
-
The Antigravity installer now saves the permanent path of
codegraphrather than fnm's per-shell directory, so the command keeps working after the installing shell exits. Thanks @kevocodes. (#1443) -
A live writer's index lock is no longer treated as stale after two minutes, and the file watcher re-arms and reconciles after lock contention instead of leaving
serve --mcpanswering from a frozen index; the non-git scan fallback keeps honoring.git/info/exclude. Thanks @LunarWerxs for the report and @danusha2345. (#1959) -
A shared daemon now closes connections that are still mid-handshake when it stops, a peer that disconnects mid-handshake no longer leaves a phantom client that blocks idle exit, and a fallback that finds another process holding the writer lock serves reads instead of refusing. Thanks @bompus and @inth3shadows for the reports and @danusha2345. (#1963, #1356)
-
A query worker whose database open fails is now retired and replaced instead of answering every routed call with an error. Thanks @inth3shadows. (#1357)
-
Very large watchdog or startup-handshake timeouts are now capped at the largest delay a timer can hold, so they no longer fire after about 1 ms. Thanks @inth3shadows. (#1966)
-
codegraph indexnow coordinates with a running MCP daemon — it stops the daemon cleanly (refusing rather than guessing if it cannot verify it stopped) and then rebuilds — so it no longer fails with "database file is in use" on Windows, and MCP calls made during the rebuild are told to retry. Thanks @bithy0825 for the report and @hbui290. (#1325) -
The local MCP proxy now arms the same liveness watchdog as the other launch modes, so a wedged proxy exits instead of lingering and piling up across client restarts on Windows. Thanks @Neurotoxin0 for the report and @snvtac. (#943)
-
On Windows, simply reading a file no longer shows up as a pending edit: watcher events whose file still has the indexed size and modification time (NTFS access-time notifications) are ignored. Thanks @radeilic for the report and @JJordan0C. (#1451)
-
The Windows bundle now includes an extensionless
codegraphlauncher, so Git Bash — and the Claude Code prompt hook that runs through it — can findcodegraphinstead of failing with exit code 127. Thanks @Dj-Khalle. (#1278) -
Running
install.shfrom Git Bash, MSYS or Cygwin on Windows now prints the PowerShell install command instead of failing with "unsupported OS". Thanks @Dnllns. (#1294) -
Indexing no longer hangs at full CPU when a database write fails partway through; it now stops and reports the error. (#1773)
Links and navigation
-
A
<Card/>is the Card that file imports, not the first one in the repo. When two components share a name —Section,Picker,FrameCard, one per feature folder — the render link out of a component picked whichever happened to be indexed first, ignoring what the file actually declares or imports, so a component gained a link to something it never renders and callers and impact dead-ended at the one it does. It now follows the file's own declaration or import, and a JavaScript tag prefers a JavaScript component over a same-named class in a mobile app's native half. Re-index after upgrading. -
A navigation that goes to one of several places now links to all of them. A destination written as a choice — a paginator's
!isAdmin ? keyword ? \/search/${keyword}/page/${x}` : `/page/${x}` : `/admin/productlist/${x}`,redirect(307, user ? `/profile/@${user.username}` : '/login')in a loader,router.push(cond ? '/a' : '/b')— used to produce no edge at all, because one edge carried one destination and picking an arm would have been a guess. Every arm is now its ownnavigates` edge to the route it names; arms that name the same route still make one. -
A conditional inside a conditional no longer reads the wrong arm. A paginator written
!isAdmin ? keyword ? '/search/…' : '/page/…' : '/admin/…'was split at the first:rather than the matching one, so an admin's page links pointed at the storefront's pagination. The arms are paired properly now, and a three-way choice — which is more destinations than one link can name — is left alone. -
In a repository with several apps, a link no longer points into a different one. Every app has a
/and most have a/login, and the route table was built for the whole repository at once, so whichever app was indexed first claimed each address — a<Link to="/posts">in one app resolved to another app's/posts. Measured on a monorepo of 477 apps: 82% of navigations pointed at a route belonging to a different app, and all of them now point within their own. -
A client call with a type argument —
useSWR<Team>('/api/team', fetcher),ky.get<User>('/api/users/1')— now reaches its route like the untyped form.
Routes and framework detection
-
A SvelteKit layout is no longer a second route at a page's address.
+layout.svelteand+error.sveltesit at the same path as the+page.sveltebeside them and were each indexed as a route, so one address appeared in the index two and three times over. Only a page is a route now. -
A framework whose package lives in a subfolder is detected again. In a project that keeps its dependencies one level down — a
frontend/and abackend/, or anapps/web/— the framework check ran once before any file had been indexed, found no folders to look in, and remembered that empty answer for the rest of the run. Every React, React Router and Next.js behaviour that depends on knowing the framework is there silently did nothing for those projects. -
Express routes behind
app.use('/api', router)are named by the path a request takes. A router mounted at a prefix — through as manyrouter.use('/users', usersRouter)levels as the app nests, by import orrequire— now names its routesPOST /api/usersinstead ofPOST /, and the chained formrouter.route('/:id').get(getProduct).put(protect, updateProduct)(split across lines or not) registers one route per method. A client's request is paired with its route by that real path too. -
An Express handler written through a wrapper is the endpoint's handler.
const authUser = asyncHandler(async (req, res) => { … })— theexpress-async-handleridiom — is now the handler its route is bound to. -
A framework declared in a workspace's
package.jsonis detected. React, Next.js, Expo Router, Express and NestJS are found when their dependency lives infrontend/,backend/,apps/web/orpackages/api/rather than at the repository root, so a monorepo's pages and endpoints exist in the index. -
FastAPI routes are named by the path a request takes.
APIRouter(prefix="/items")and a literalapp.include_router(router, prefix="/api/v1")— nested through an aggregate router, through a module import or an alias — now compose onto the route names (GET /api/v1/items/{id}instead ofGET /{id}); a prefix that is a setting rather than a string leaves that mount alone rather than guessing. -
ASP.NET Minimal API endpoint groups are routes. The handler-first form —
groupBuilder.MapPost(CreateTodoItem),MapPut(UpdateTodoItem, "{id}")inside anIEndpointGroup/EndpointGroupBaseclass (the Clean Architecture template and its descendants) — now registersPOST /api/TodoItemsandPUT /api/TodoItems/{id}, with the/api/head read from the app's ownMapGroup($"/api/{groupName}")and a class'sRoutePrefixhonoured, each bound to its handler. -
A FastAPI service that lives in one directory of a monorepo is detected.
backend/pyproject.tomlandbackend/app/main.pycount, not only files at the repository root, so the official full-stack template's routes are indexed. -
React Router routes are now read from each
<Route>tag's own attributes and each route object's own fields, so anelementno longer bleeds into a sibling or parent route. Thanks @inth3shadows. (#1348) -
MyBatis mappers with whitespace inside a closing tag, and
<include refid>references to another namespace, are now extracted correctly. Thanks @ESPINS for the report and @fengshao1227. (#1209) -
render,include,sectionandassignwritten inside a{% liquid %}block are now extracted with their real line numbers, and commented or raw content is ignored. Thanks @Puma7. (#1906) -
Rust functions annotated
#[tauri::command]are no longer reported as dead code. Thanks @vdavid. (#1543)
Symbols and tests
-
Kotlin functions and methods now carry their signature —
(params): ReturnType— incodegraph_exploreandnode, instead of no signature at all. Re-index Kotlin projects after upgrading. (#1495) -
TypeScript/JavaScript value aliases —
export const alias = fn,export { fn as alias }, object-literalapi = { run: fn }, and same-fileconst local = fn— now forward calls edges to the aliased function, so callers and impact on the implementation include consumers that call through the alias instead of stopping at the binding. Genuine wrappers (() => fn()) are unchanged. Re-index after upgrading. Thanks @valkyriweb. (#1482, #1485) -
codegraph affectednow finds Go, Python and JVM test files that previously went unreported, while preserving custom--filterbehavior (thanks @danusha2345; #1507, #1688). -
Calls inside declaration initializers in Kotlin, Java, TypeScript, JavaScript, Scala, Rust and Python now appear under the declaration that owns them, making callers and impact results more accurate after re-indexing with
codegraph index -f(thanks @danusha2345; #1510, #1511). -
Java fields initialized with anonymous classes now expose their methods and calls in the graph.
-
Kotlin property accessors, initialization blocks and destructuring declarations now retain their calls with the correct owner.
-
codegraph_exploreagain lists a dynamic-dispatch link when the same two symbols are also joined by an ordinary call. -
Rust unit structs (
struct Unit;) and their trait implementation relationships now appear in the graph after re-indexing. (#1513, #1514) -
Imports from Node built-ins or npm packages no longer connect to unrelated type members with matching names; re-index after upgrading to clear existing false dependencies. Thanks @ctype-lab. (#1537)
-
Inheritance relationships no longer attach external Rust or npm supertypes to unrelated local symbols with the same name, including in Svelte, Vue and Astro components; re-index after upgrading to clear existing false relationships. A TypeScript class implementing a service that is declared as both a value and an interface under one name, the pattern VS Code uses for every service, now links to the interface instead of the value. Thanks @ctype-lab. (#1536)
-
Spring's dependency-injection resolution patterns no longer capture inheritance references or references from other languages. In a polyglot repository where Spring is detected (a sibling Java module is enough), a Scala or Kotlin
extends/implementsreference could be resolved by Spring's directory-convention heuristics to an unrelated same-named class — for example a test fixture — corrupting the inheritance graph thatcodegraph_impactandcodegraph_explorewalk. Inheritance now always resolves through imports and name matching, and the Spring DI patterns only apply to Java/Kotlin references. Re-index after upgrading. (#1825) -
PHP static calls through imported class aliases now reach the correct class when services and repositories share method names, so callers and impact analysis show the right dependencies after re-indexing. (#1545)
-
TypeScript/JavaScript: a call through a field of the enclosing class —
this.mailer.send()— now resolves on the field's declared type, so a delegating wrapper that shares the method's name no longer records itself as its own callee andcallers,impactand trace stop lying on that shape. A field whose type is external or a builtin stays unresolved rather than guessed. Re-index after upgrading. (#1496) -
TypeScript and JavaScript collection calls through local variables and their nested properties no longer link to unrelated project methods; re-index after upgrading. (#1566)
-
Objective-C headers now index in a project that has no
.mfile. A.hfile is read as C from its name alone, and only later — once its contents are read — recognized as Objective-C; the grammar for that was never loaded up front, so the file failed with a parser error and nothing in it reached the index. Adding any.mfile used to make the same header work, which is what made this look arbitrary. Thanks @Juddd. (#1628) -
TypeScript interface methods and properties are now indexed, so
node,callersand impact can find platform.d.tsAPIs while declaration-only files keep their lower ranking on flow queries, and an interface's members don't pull unrelated files into answers to plain-English questions; re-index TypeScript projects after upgrading. (#1638) -
Lua and Luau function expressions assigned to locals, table members, or keyed table fields are now indexed as callable nodes. Calls from
local f = function() ... end,M.f = function() ... end, and callback tables such asM.handlers = { onClick = function() ... end }are attributed to the named function or method instead of collapsing onto the file node, so callers and impact no longer omit these handlers. Re-index after upgrading. (#1616, #1650) -
Functions bound with
constinside another function are symbols now.const handleClear = () => {…}inside a React component — every handler that skipsuseCallback— was invisible tocallers,calleesand impact, answering "Symbol not found" exactly the way a function with no callers would. It is indexed like its module-level twin, contained by the enclosing function, with its own calls. Re-index after upgrading. (#1669) -
codegraph callers,callees, andquerynow clearly report when their result limit hides additional matches, including exact totals in callers/callees JSON output; thecodegraph_callersandcodegraph_calleesMCP answers carry the same "showing N of M" note. (#1639, #1674) -
CommonJS controllers written as
exports.getItems = async (req, res) => {…}ormodule.exports.x = function () {…}are now indexed as exported functions, sonode,callersand impact find every Express handler in that style and the calls inside them belong to the handler instead of the file. Re-index JavaScript projects after upgrading. (#1675) -
Python parameters annotated with a quoted forward reference —
def f(o: "Alpha"), or anything underfrom __future__ import annotations— now resolve the methods called on them, the same as the unquoted annotation. Re-index Python projects after upgrading. (#1684) -
A C macro call written with designated initializers no longer swallows every function after it. Betaflight resets each config struct with
RESET_CONFIG(type, dst, .field = value, …), a shape the C grammar cannot parse; past a hundred or so fields its error recovery ran the enclosing function to the end of the file, the next function vanished from the index and every later one was filed under the first, where name matching then treated it as an unreachable closure. The argument list of such a call is now blanked before parsing, offsets kept, so the file's functions come out with their real extents. On that tree 45 functions inpid.calone moved back to top level and their 117 callers resolve at exact-match confidence. Re-index after upgrading. (#1729) -
A method called on the result of another call —
d.setdefault(k, []).append(v),make().run()— no longer produces a call edge to an unrelated top-level function that merely shares the name, in Python and JavaScript/TypeScript. The receiver is kept so the inner call still resolves; the outer method stays unresolved rather than guessed. Re-index after upgrading. (#1683, #1681) -
A Python call through an imported project module whose name collides with a builtin collection method —
ledger.append(row)afterfrom . import ledger— is no longer dropped aslist.append. The builtin-method filter now lets the receiver through when it is an imported module that resolves to a file in the project, soresolveViaImportcan attach the real edge; a stdlib/PyPI receiver (os.remove) still produces none. Re-index after upgrading. (#1681, via #1704) -
Python method calls on module-scope builtin collections no longer create false calls or file dependencies to unrelated project methods with the same name; re-index after upgrading. (#1652)
-
A definition its language makes file-local no longer captures calls from other files. A C
staticin another source file (.c/.cc/… — not a header'sstatic inline, which is textually included), a Kotlin/Java/C#/Swift/Scala/Dart/PHPprivatemember, a Go unexported name in another package, and a Rust non-pubitem outside its module subtree cannot be what a name in another file means, but name matching accepted them whenever the names agreed: an Androideditor.apply()onto an unrelated class'sprivate fun apply, a JavaScriptfail(...)onto a Gofunc fail, a Rust.count()onto a privatefn countin another crate, and C USB helpers onto astaticin a.cthey never link. Such a target is now declined after the whole name-matching pipeline settles — the reference stays unresolved rather than falling through to a fuzzy namesake. Same-file definitions, a child Rust module reaching its ancestors' private items, and Rustimpl Trait for Typemethods stay resolvable. Re-index after upgrading. (#1730, #1731) -
A binding in a module that exports nothing is no longer a cross-file target. On vite, every
import { defineConfig } from 'vite'across the playground resolved onto aconst vite = await createServer(…)sitting at module scope inplayground/ssr-html/test-stacktrace.js— a file with an import and no export, so that binding is reachable from nowhere but itself. Name matching commits as soon as one candidate survives, and nothing asked whether an import could reach the survivor; that one binding took 157 edges. A JS/TS file holding animportand no export of any kind now offers its locals to no other file. Classic scripts, CommonJS (includingexports["x"] = …), a laterexport { … }, and names contributed throughdeclare globalare all unaffected. Across vite this removed 320 wrong edges and added 18, each addition a reference that was previously ambiguous rather than newly invented. Re-index after upgrading. (#1719) -
A bare call inside a JavaScript or TypeScript method no longer resolves to the method itself. When a method and a module-scope function share a name,
serialize(this.raw)written insideRecord.serializemeans the function, but the nearest same-named definition won the tie and the graph recorded the method calling itself. A call written without a receiver can never reach a method in JS/TS, so methods are no longer candidates for it;this.serialize()andother.serialize()resolve as before. (#1714) -
Fuzzy matching no longer lands on a closure it cannot reach. A function nested inside another function is only callable from inside its container, and exact-name matching already declined such candidates; the fuzzy fallback did not, so a builtin method call (
res.text(),items.push()) whose only same-named project symbol was some file's closure resolved onto that closure. The fallback now checks that the one candidate it would commit to is reachable, and declines otherwise — it does not filter the candidate list first, which would turn a crowd of same-named definitions into a single "unique" survivor and hand it every call of that name. On vite that removes the 12 edges onto nested functions and adds none. Re-index after upgrading. Thanks @bompus. (#1708, #1709) -
An import that names the emitted extension resolves to its source. Under
moduleResolution: node16 | nodenext | bundlerTypeScript requiresimport { x } from './util.js'forutil.ts, and no file of that name exists, so the import resolver returned nothing and every name imported that way fell through to bare-name matching: a method wrapping the same-named helper it imports (renderDockStyles() { return renderDockStyles(); }) resolved to itself, and cross-module edges in such projects were name guesses..js/.jsx/.mjs/.cjsspecifiers now retry with the source extensions TypeScript compiles from when the emitted file is absent; a real.jsbeside the.tsstill wins. On a 582-file repo whose.tsfiles import this way, import-backedcalls/importsedges went from 4,002 to 7,312 and the eight wrapper-method self-edges disappeared. Re-index after upgrading. Thanks @bompus. (#1705, #1706) -
Files under an
e2e/directory now count as tests. -
Production code under a
samplesorexamplespackage path is no longer treated as test code. A Kotlin or Java project whose package path runs throughcom/google/samples/…(Now in Android, for one) had nearly every file counted as a test fixture. Only the project layout above asrc/folder decides now; the package path below it never does. -
React handlers written with
useCallbackare now symbols.const handleSubmit = useCallback(() => {…}, [])— the way nearly every handler in a React or React Native component is written — is extracted as a function named by its binding (alsoReact.useCallback,useEffectEvent), soonPress={handleSubmit}andaddListener('x', handleSubmit)resolve to it, its calls are its own rather than the component's, and a tap's handler shows up incodegraph_explore. A JSX attribute value (onPress={handleSubmit},renderItem={renderRow}) and a handler a hook hands back in an object (return { handleSubmit, handleRetake }) are now function-as-value references from the component or hook, so the graph knows which functions are wired as handlers. -
Stores exported on a later line are read like any other.
const useStore = create((set, get) => ({ … }))followed byexport default useStore(orexport { useStore }) now has its actions extracted as functions, the same as anexport conststore — previously the two-statement form, common in React Native apps, left every action invisible. -
API objects exported as a default namespace resolve through to their functions.
import Api from './api'+Api.upload()where the module ends inconst Api = { upload, createFolder }; export default Apinow links the call touploaditself (through the object's own imports), and a default import of any const named by anexport default NAMEstatement finds that const rather than guessing the file's first exported function. -
The Claude Code prompt hook's context now arrives inline. The hook capped its injection at 16,000 characters, but Claude Code shows hook output inline only up to 10,000 and otherwise persists it to a file with a 2 KB preview, so on any repo where explore filled the cap the model saw a file path and the first 2 KB. The cap is now 9,000 characters, under the limit with room for the wrapper. (#1694)
-
codegraph_exploreis loaded from the first prompt in Claude Code. Claude Code defers every MCP tool behind a tool-search step, so a fresh session saw only the tool's name until the model searched for it, and the server's "callcodegraph_exploreinstead of Read" had nothing loaded to act on. The tool now carriesanthropic/alwaysLoadin its_meta, which exempts it on existing installs, andcodegraph installwritesalwaysLoad: trueon the Claude Code server entry (re-run it to add the key). Copilot CLI's tool search holds MCP tools back the same way once ~30 tools are connected, so its entry now carriesdeferTools: "never". (#1696) -
Python calls and file dependencies through
from package import module as aliasnow appear in the graph, so renamed imports no longer hide live callers or imported modules. Thanks @JoeyNPP. (#1626) -
Python docstrings are now indexed alongside preceding comments, so their prose is searchable and shown. Thanks @iacore for the report and @maxmilian. (#1905)
-
A Dart 3
extension typeis now indexed as a type with its members attached. Thanks @bompus for the report and @Dshuishui. (#1784) -
A receiver-less Go call (a function parameter or local func value) no longer links to a same-named method. Thanks @PCeltide for the report and @maxmilian. (#1857)
-
A function passed to a curried wrapper (
Effect.fn("x")(function* () {…}),connect(m)(fn)) is now indexed under its declarator or property name. Thanks @Dshuishui for the report and @maxmilian. (#1747) -
The bundled Scala grammar is now the official tree-sitter-scala v0.26.2, so classes with several parameter lists keep all their inheritance edges. Thanks @htarnacki for the report and @danusha2345. (#1823)
-
A Scala
objectis now indexed as a module, soextends/withresolves to the trait or class rather than its companion object. Thanks @htarnacki. (#1824) -
C/C++ functions defined through a single-argument macro are now indexed under their real name when the macro's own
#defineproves it. Thanks @Dshuishui. (#1373) -
MSVC COM
interfacedeclarations in C++ headers are now indexed as types with their methods. Thanks @timxx. (#1519) -
A function-like C/C++ macro invocation no longer binds to a same-named function or type in another file, a flag the build can still set on the command line keeps both sides of its
#ifdefreachable, and a local C++ object initialization now records a call to its constructor. Thanks @netbrah and @bompus for the reports and @danusha2345. (#1838, #1839, #2069, #2070) -
A Delphi DFM component's range now runs to its closing
end, so its properties and event bindings belong to it. Thanks @inth3shadows. (#1350) -
Two same-named symbols on one line (a one-line getter/setter pair) no longer collide and drop one; existing symbol IDs are unchanged. Thanks @inth3shadows. (#1349)
-
A callback registered with
subscribe(this.handler)now links to that exact handler, not the first same-named method in the project. Thanks @inth3shadows. (#1355) -
Calls through an object-literal member that references an outer function (
{ fn },{ fn: fn }) now resolve to that function. Thanks @nikamodis for the report and @danusha2345. (#1932) -
Calls, constructors and inheritance no longer link to a same-named symbol in an unrelated language, while real interop (web, JVM, native, .NET, cgo) keeps its edges. Thanks @bompus for the report and @danusha2345. (#1986)
-
A built-in method call such as
list.map()orcache.get()on an untyped value no longer links to a same-named project method, andthis.#field.method()resolves on the field's type. Thanks @bompus for the report and @danusha2345. (#1987) -
Python and Go methods passed as values (
executor.submit(self.store.fetch)) now appear in callers and impact results. Thanks @JosefAschauer. (#1820) -
Methods called by a base class outside the index (React lifecycle methods, a stream's
_transform, NestJS hooks) are no longer reported as dead code. Thanks @inth3shadows for the report and @danusha2345. (#1973)
v1.6.0
2026年08月27日
[1.6.0] - 2026-08-26
Highlights
- GitHub Copilot is now supported —
codegraph installsets it up in VS Code, the Copilot CLI, and JetBrains IDEs, next to the agents it already knew. - Set up in one command —
codegraph install --yes --initwires up your agents and indexes your project with no prompts, ideal for a fresh container or CI. - Better answers for your agent —
codegraph_exploreno longer repeats code it already showed you, always brings back the files and symbols you asked for by name, and spends its space on the code that actually answers the question rather than look-alikes, generated files, and type shims. - Your graph stays right as you keep coding — a long-running index no longer drifts from a fresh one, and edits to
codegraph.json(such asexclude) apply immediately without a restart. - No more silent crashes or hangs — deeply nested C/C++ files, Swift Vapor projects, and large sync batches that used to kill or stall indexing now finish cleanly.
- A disk-space leak is fixed — a force-killed session could leave the database's write-ahead log behind to grow without bound (tens of gigabytes was reported); the leftover log is now folded back into the index and trimmed automatically the next time the project opens. The index itself has no size limit.
- Works from a workspace or monorepo root — the MCP server finds your indexed project when launched from a folder above it, and says so clearly when it can't find one.
- More accurate code graphs for TypeScript, Rust, Erlang, C/C++, and Python projects — see the full list below.
- Also new: per-project Codex setup (
codegraph install --location=local), adeprioritizesetting to keep helper folders from outranking your real code, thecodegraph contextcommand, and usage stats that now stay entirely on CodeGraph's own servers.
After upgrading, run codegraph index once in each project so your existing graph picks up these fixes — codegraph status reminds you when it's needed.
New Features
-
GitHub Copilot is now a supported agent:
codegraph installcan configure Copilot Chat in VS Code (copilot-vscode), the GitHub Copilot CLI (copilot-cli), and the Copilot plugin in JetBrains IDEs (copilot-jetbrains). Installed Copilot surfaces are auto-detected like every other agent, existing MCP server entries in their config files are preserved, andcodegraph uninstallreverses the setup cleanly. Restart VS Code or your JetBrains IDE after installing so Copilot picks up the server. -
codegraph install --initwires up your agents and builds the current project's index in one command, andcodegraph init --yesruns without any prompts — so a fresh container or CI job can bootstrap CodeGraph with a single non-interactive line (codegraph install --yes --init). The installer still never indexes anything unless you ask for it with the flag, and the usual safety refusal for a home directory or filesystem root applies. (#1578) -
Codex CLI can now be set up per project instead of only user-wide:
codegraph install --location=localwrites./.codex/config.tomland the CodeGraph block in your project'sAGENTS.md, so CodeGraph is wired into that repo only rather than every Codex session on the machine.codegraph uninstall --location=localreverses it, and the global install is untouched either way. Codex only applies a project's config once you've marked the project trusted, so the installer says so after a local install. Thanks @maxmilian. (#1531) -
A new
deprioritizesetting incodegraph.jsonkeeps the paths you name from outranking your product code in search andcodegraph_exploreanswers, without removing anything from the index. It takes gitignore-style patterns just likeexclude, but is ranking-only: helper-script trees, generated output, or optional add-on directories whose generic symbol names (usage,run,status) would otherwise crowd out the code that actually answers a query stay fully indexed and findable — and a query that genuinely targets such a tree still returns it. Thanks @maxmilian. (#982) -
codegraph_exploreno longer re-sends source it already returned earlier in the same conversation. A file it has already shown you comes back as a short pointer — the path, the symbols and the exact line range, with confirmation that the file hasn't changed since — and the space that frees is spent on code you haven't seen yet, so a follow-up call covers new ground instead of repeating the last one. If a file was edited in between, its source is always shown again in full. SetCODEGRAPH_EXPLORE_DEDUP=0to turn this off. -
When an agent connects over MCP, CodeGraph now states up front that it indexes 30+ languages — TypeScript/JavaScript, Python, Go, Rust, Java, C#, C/C++, PHP, Ruby, Swift, Kotlin, and more — so agents no longer assume a language isn't supported and skip the graph. (#671)
-
Anonymous usage telemetry is now stored entirely on CodeGraph's own first-party infrastructure — no third-party analytics vendor receives any of it, and the endpoint that receives it makes no outbound requests at all. Individual events are deleted after 90 days, leaving only anonymous daily totals. Nothing about what is collected changed, your IP address is still never read or stored, and every off-switch works exactly as before (
codegraph telemetry off,CODEGRAPH_TELEMETRY=0,DO_NOT_TRACK=1).TELEMETRY.mdremains the complete field-by-field list.
Fixes
Better answers from codegraph_explore
-
Naming a file by its path in a
codegraph_explorequery now works reliably: the path is resolved against the index and that file is guaranteed a place at the top of the answer. Previously the path was broken into fragments — bracketed route segments like SvelteKit's[id]made this worst — and pieces likepageorrunsmatched every sibling file, so the file you actually named could be crowded out of the answer entirely. A path that doesn't match any indexed file is now called out instead of silently ignored. -
Naming a kebab-case file without its extension in a
codegraph_explorequery —background-image-tablerather thanbackground-image-table.tsx, the way import paths and prose spell it — now returns that exact file too. Previously the name was split at the hyphens, and in a kebab-cased frontend those pieces (background,image,table) are among the most common words in the codebase, so look-alike sibling files filled the answer while the named file never appeared. Hyphenated words that don't name an indexed file, like "cross-call" or "non-blocking", are left alone. -
Plainly-worded
codegraph_explorequestions now find camelCase code: a query like "auto-scroll to bottom" can reach a function namedscrollFeedToBottom, because query words are matched against the words inside identifiers, not just whole names. -
Variables and constants now count when
codegraph_explorepicks its starting symbols, so state held in plain variables —$state-style variables in Svelte, for example — no longer gets overlooked. -
codegraph_explorenow concentrates its answer on the code that actually answers your question instead of spreading it across files that merely share a word with it, so more of the answer arrives in a single call. Thanks @LeDuyViet for the detailed measurements and reproduction. (#1500) -
Files only weakly related to your question now come back as a name, symbol and line number instead of spending the answer on their source — name one of them in a follow-up
codegraph_exploreto get it back in full. (#1500) -
A generated CRUD or protobuf layer no longer crowds out the hand-written code sitting beside it: generated files are now recognized by the
// Code generated by … DO NOT EDIT.style banner written at the top of the file, not just by a filename that looks generated. Re-index after upgrading to pick up the new detection. (#1500) -
Test and spec files in a repository's top-level
test/orspec/directory are now recognized as such, so they no longer take room from the code you asked about. (#1500) -
Generated type-declaration files that announce themselves with a "Generated by … by running …" banner — Cloudflare Wrangler's
worker-configuration.d.tsis the common one — are now recognized as generated. Previously a file like that could take most of acodegraph_exploreanswer on nothing more than a few common words, pushing the hand-written code you asked about out of the response entirely. Re-index after upgrading to pick up the new detection. -
A hand-written type-declaration file — an ambient
.d.tsof global shims, vendored typings, module augmentation — no longer takes over acodegraph_exploreanswer about how something works. Files like these declare common names (Body,Message,ImageMetadata) and nothing else, so a plainly-worded question could match one strongly enough that it ranked first and crowded the actual handler out of the answer. They are now ranked lower for questions about behaviour, and are still listed by name so one follow-up call fetches them. Asking about a type by name still returns its declaration first, and a shared types module the rest of your code imports is unaffected. -
When you name a symbol in a
codegraph_explorequery, its definition now actually comes back. Two cases previously lost it. If the symbols you named don't call one another — sibling functions inside the same factory or module are the everyday example — CodeGraph stopped treating them as symbols you had asked for, and answered with whatever sat at the top of their file instead; on one 1,400-line file that meant a same-stemQueuedMessageinterface on line 70 came back while thequeueMessagefunction on line 1087 did not. And when an answer had to be trimmed to fit, it was trimmed from the bottom of the file down, so a symbol near the end of a long file was always the first thing cut. Trimming now protects the definitions you named wherever they sit in the file. -
A file built around one very long function no longer takes the whole
codegraph_exploreanswer for itself — or disappears from it. Previously such a file was shown in full however big it was, which used up the room every file after it needed, and when the function was larger than the entire response the file was dropped without a word. These files now come back as a bounded window on whole lines — the signature and the top of the body, plus the call site when the call path runs through it — with the rest one follow-upcodegraph_exploreaway. -
codegraph_exploreno longer lets the first file in an answer spend the room set aside for the files below it, so the rest of the answer still arrives. Previously a large file near the top could quietly use up everything left, and the files ranked under it — each already judged relevant enough to include — were dropped with no source at all; on one question only one of six made it into the answer. Every file now keeps what it was given, and a question that really is about one file still concentrates on that file. -
When a
codegraph_exploreanswer runs right up against its size limit, it now drops the trailing notes rather than a whole file's source. Previously the last file was cut even though trimming the notes alone would have fit, so a file that had already been read, ranked and rendered was thrown away at the last moment. Across a range of real projects this returns one more file and up to 20% more source per call. -
Every file
codegraph_exploredecides to include now actually arrives. A file shown in full could still spend room set aside for files below it — the fix above covered files shown as excerpts but not files shown whole — and the answer's own size bookkeeping under-counted each file's heading, so the answer ran past its limit and a fully prepared file was discarded at the end. A file that no longer fits whole is now shown as excerpts instead of vanishing, and one that overshoots by a little is trimmed to fit rather than dropped. -
The list of files an answer could not cover — the "explore these names for their source" pointers — is no longer thrown away when the answer is full. It is now budgeted for and trimmed to fit, so a full answer still tells you what it left out and which names to ask for next, instead of ending with no pointers at all.
-
When a
codegraph_exploreanswer shows a file as excerpts, a large excerpt that no longer fit was dropped entirely instead of being shortened. If the file's first excerpt happened to be a trivial one — an import block, a one-line helper next to the code you asked about — the excerpt carrying the actual answer was the one thrown away, and the file came back with a quarter of the room it had been given. On real projects that meant the top-ranked file delivered a fraction of its share while a far less relevant file took the rest. Excerpts are now shortened to fit, whole method by whole method, and only dropped when what is left is too small to hold anything readable. -
The blast-radius section of
codegraph_exploreflagged "no covering tests found" whenever no test called a symbol directly — falsely branding helpers that tests exercise through their callers as untested (about 40% of flagged symbols in a measured sample). The check now follows caller chains up to 3 hops and reports indirect coverage as "tested via callers"; when nothing is found it states exactly what was checked instead of an unconditional warning. Thanks @inth3shadows for measuring the false-positive rate. (#1475) -
When a file changed on disk after its last index sync,
codegraph_nodeandcodegraph_explorecould return a different symbol's code under the requested name — current file bytes cut at outdated line positions — while presenting it as verbatim, trustworthy source. This hit hardest on projects queried throughprojectPath(for example, sub-projects of a monorepo), which have no live file watcher to flag pending edits. Both tools now verify each file against the index before showing sliced code: an out-of-date file is either shown whole with its full current source, or its code is withheld with a clear "changed on disk" notice — never served as a wrong slice. A fresh re-index restores normal output automatically. Thanks @inth3shadows for the thorough report and verification passes. (#1474)
Finding your project, live updates, and the CLI
-
The MCP server now finds your project when it's launched from a workspace folder above it: if the launch directory has no index of its own but exactly one indexed project sits below it (a repo container, an agent workspace, a monorepo root), that project becomes the session's default — live file watching and the shared daemon included — instead of every tool call failing until a
projectPathor--pathis supplied. Thanks @nakisen. (#1606) -
When no project can be resolved at all, the MCP server now says so instead of starting silently: a startup log line names the directory it searched, and tool calls list the indexed sub-projects it can see nearby so you can pass one as
projectPath. Previously the server looked healthy from the outside while every tool quietly had no project to answer from. Thanks @nakisen. (#1607) -
Editing
codegraph.json'sexcludeorinclude(or a.gitignore) while the MCP server is running now takes effect immediately. Previously the running file watcher kept the scope it had when it started, so a newly excluded file was removed bycodegraph syncand then quietly re-added by the watcher seconds later — which looked likeexcludenot working at all — until the server was restarted. A scope change now refreshes the watcher and triggers a full reconcile, and a changed file the watcher hands to sync is re-checked against the current scope first, so the CLI and the live server can no longer disagree about what belongs in the index. Thanks @K1nG11. (#1590) -
codegraph statusnow sees new files inside brand-new directories. Git reports an entirely-untracked directory as a single collapsed entry, so source files created there — a freshly scaffoldedfrontend/, for example — were missing from the pending-changes report, which could claim everything was up to date while those files had not yet been indexed. Thanks @maxmilian. (#1213) -
The
codegraph context <task>command documented in the CLI help now actually exists — it builds a ready-to-inject context pack for a task (relevant symbols, their relationships, and code) in markdown or JSON, restoring the contract external integrations like Memorix rely on (--path,--format json,--max-nodes,--no-code). (#1611) -
On Windows, the Claude Code prompt hook written by
codegraph installfailed with "command not found" when hooks run through Git Bash, which needs the.cmdextension to find the launcher. The installer now writes the platform-correct command, and re-runningcodegraph install(orcodegraph upgrade) repairs an existing install in place. (#1466) -
Looking a symbol up by name no longer reads the whole graph. Every search made one full pass over all indexed symbols for each word you typed, and a question that named several symbols made two more passes per name — including for a word that matches nothing, which is the common case. The cost therefore grew with the size of the project, and it was paid again on every message when the prompt hook is enabled. These lookups now go through the name index instead. Results are identical; only the time to get them changes, and it no longer grows with the project. Thanks @maxmilian.
Indexing reliability and disk usage
-
Indexing no longer crashes the whole process — a segmentation fault with no message and no partial index — on a C/C++ (or any other) file with extremely deep nesting, such as the parser stress-test fixtures in the clang and gcc test suites or a fuzzer corpus. Such a file is now handed to the fallback parser and recorded with a parse warning while the rest of the repository indexes normally. Thanks @apollo600 for the exact diagnosis. (#1581)
-
Indexing no longer hangs on a Swift Vapor project containing a call with a long argument list. A single
.get(...)-style call with many labeled arguments and nouse:handler — the shape generated request builders produce — could stallcodegraph index,codegraph sync, and the MCP server indefinitely. Route detection now handles such files in milliseconds, and every previously-recognized route shape still parses exactly as before. Thanks @maxmilian. (#1544) (Swift) -
Syncing a large batch of changed files no longer crashes with "Maximum call stack size exceeded" partway through. The crash aborted reference resolution after the files' symbols were already stored, leaving the graph with far fewer connections than a fresh index would have — and it hit exactly the scenarios that re-parse many files at once, including the automatic repair above. Thanks @netbrah for pinpointing the failure. (#1558)
-
A long-lived index no longer drifts away from what a fresh
codegraph indexwould produce. When a file gained or lost a symbol, references to that name in files the sync never touched kept pointing at the definition that was correct before the change, and — because nothing distinguished two same-named definitions — the winner could come down to the order files happened to be written, which differs between a full index and a sync. On this project's own repository, replaying 80 commits throughsyncleft 5.7% of connections wrong; it is now 1.3%, and the wrong-answers-still-being-asserted half drops by 99.7%. Since call edges are what flow questions follow and whatcodegraph_exploreranks files by, this quietly degraded answers as an index aged, with nothing to indicate it. Syncing is unchanged in speed, and an edit that only changes a function's body does no extra work at all. SetCODEGRAPH_NO_REBIND=1to opt out. -
Fixed a v1.5.0 regression where a perfectly valid file could be permanently recorded as having 0 symbols, with no error reported. When a file's first parse attempt was interrupted — a parsing worker crash or timeout, most likely on slow or heavily loaded machines — the automatic retry stored an empty result for any language on the native extraction path, so the file's functions and classes silently vanished from search, callers, and impact until the file was next edited. Retries now store the file's real symbols, and a file already recorded as symbol-free is detected and repaired automatically by the next sync or re-index after upgrading. Thanks @Baiae for the report. (#1541)
-
A CodeGraph process that gets force-killed — by the stuck-process watchdog, a crash, or the OS — no longer leaves the database's write-ahead log behind to grow without bound. Previously each killed session stacked more data onto the same log file and nothing ever shrank it, which on machines where sessions were killed regularly could quietly eat tens of gigabytes of disk. The log's resting size is now bounded (64 MB by default;
CODEGRAPH_WAL_HEAL_MBchanges it), and any oversized leftover is folded back into the index and trimmed automatically the next time the project is opened. This bounds only the log — the index itself has no size limit, and a large repository's log is still allowed to grow in proportion to its index while it is being built. Thanks @tiendungdev for the exceptional Windows report that pinned this down. (#1431) -
The background server's watchdog no longer kills a healthy server that is just waiting on a slow disk: like indexing already does, it now checks whether the database files are still making progress before concluding the process is stuck. Fewer spurious kills also means fewer leftover write-ahead logs. (#1431)
-
codegraph statusnow shows the write-ahead log's size next to the database size and warns when killed sessions have left it oversized, and every line in the background server's log now carries a timestamp so kills and restarts can be placed in time. (#1431) -
A background daemon left behind by an out-of-memory kill or force-kill can no longer block every future session when the operating system reuses its process ID: daemon management now verifies a recorded process is really a CodeGraph daemon before trusting or signaling it, and
codegraph unlockclears stale daemon artifacts as well as the indexing lock. Thanks @hcg1023 for the report and @danusha2345 for the fix. (#1553) -
When indexing has to fall back to parsing a file with its comment lines stripped — a last-resort recovery after repeated parser crashes — the file is now flagged with a visible warning instead of being reported as cleanly indexed. The recovered result can be incomplete, and reporting success made a fresh index quietly disagree with a later re-parse of the same unchanged file. Thanks @jeremypetz for the precise init-versus-sync symbol accounting that exposed this. (#1565)
-
Data-only C/C++ headers near the file-size limit no longer hold a parser worker for several minutes before timing out; the default large-file parse budget is now bounded, while an explicitly configured larger timeout is still honored. (#1555)
-
Reopening an index after a crash during bulk loading now restores every dropped database index, and a successful recovery sync marks the index complete instead of leaving it permanently flagged as interrupted. (#1556)
-
Files skipped because they are too large or repeatedly fail to parse are now recorded with the reason, so unchanged rejected files are no longer rediscovered and retried on every status check and sync — and a later successful parse of such a file replaces the record with its real symbols. Thanks @netbrah for the exceptional failure analysis behind this batch, and @danusha2345 for the fixes. (#1557)
-
C/C++ function-pointer analysis now bounds its compiled-pattern caches, so very large repositories can no longer exhaust the JavaScript engine's regular-expression code space during indexing. (#1559)
-
JSX rendering analysis now runs only on JavaScript-family files, so JSX-looking strings in C/C++ (or any other language) no longer create impossible call edges — in pure-C projects and in mixed-language monorepos alike. (#1560)
Language and framework accuracy
-
Calls to the methods of an exported object-literal constant —
export const api = { call() { … } }used as a module's namespace, a common way to organize a TypeScript API surface — now resolve to the method, both in the defining file and through imports. Previously such a call linked to nothing (or to the constant itself), socodegraph callersand impact analysis reported zero callers for methods that are called from everywhere. Re-index after upgrading to pick up the edges. Thanks @IAliceBobI for the precise report and root-cause. (#1573) -
Import aliases defined in a shared TypeScript config are now picked up. Nx-style monorepos keep every
@scope/...alias in atsconfig.base.jsonthat the roottsconfig.jsononly inherits throughextends, so CodeGraph found no aliases at all and every cross-package import fell back to matching on name alone — which quietly attaches results to unrelated symbols that happen to share a name, exactly where a monorepo needscodegraph_impactandcodegraph_callersto be right. Chains several configs deep, a config inherited from a package innode_modules, and abaseUrldeclared in an inherited config are all followed now, and atsconfig.base.jsonis read directly when the roottsconfig.jsonis only a project-references shell or isn't there at all. Re-index after upgrading. Thanks @maxmilian. (#1534) -
Methods implemented in a generic or lifetime-parameterized
implblock (impl<T> Source for BufSource<T>,impl<'a> Iterator for Parents<'a>) are now recorded under the implementing type instead of the trait. Previously such a method could not be found by its type — "who callsBufSource::read" had no answer — and it collided with the trait's own declaration, which could even invent a call-graph edge out of an impl body that contains no call at all. Impls on a reference (impl Trait for &Foo) and on a module-qualified type (impl Trait for m::Foo) are attributed to their type too. Re-index after upgrading. Thanks @Dshuishui. (#1588) (Rust) -
A method call on a struct field —
self.inner.run()withinner: Inner— now resolves to the method on the field's declared type. Previously the call was reduced to the bare method name and matched whichever same-named method was nearest, which was often the calling method itself, recording recursion that isn't in the source (a few hundred such self-edges in ripgrep alone), or a method of an unrelated type. References andBox/Rc/Arcfields are looked through, as Rust's own method calls are; a field whose type is external (a std or third-party type), a generic parameter, or a container likeOption/Vecis left unresolved rather than guessed. Re-index after upgrading. Thanks @Dshuishui. (#1585) (Rust) -
Erlang functions that share a name but differ in arity are now separate symbols with the language's own
module:fun/arityidentity, so the everydayf/1delegating tof/2shows as a real call edge instead of a self-loop, each arity keeps its own-specand source span,-export([f/1])marks exactly that arity as public, and askingcodegraph_explorefor a symbol the way Erlang spells it —cowboy_req:header/3— returns that definition. Re-index Erlang projects after upgrading. Thanks @Dshuishui. (#1610) (Erlang) -
Erlang behaviour dispatch no longer miscounts a call site's arity when an argument is a binary literal like
<<1,2,3>>— the commas inside were counted as argument separators, which silently dropped (or could mislink) the dispatch edge to the behaviour callback. (#1358) (Erlang) -
A C++
.hheader whose only C++ construct is a plain derived type —struct Derived : Basewith no export macro,classkeyword, or access section — is now recognized as C++ (previously only the export-macro form was). Such a header was read as C, so the derived struct vanished from the index and a phantom function named after the base type appeared in its place. The check now also covers the whole file rather than its first few kilobytes, so a long C-compatible preamble no longer hides the signal. Re-index after upgrading to pick up affected headers. Thanks @Jaysenpeng. (#1592) -
C, C++, Objective-C and Rust unions are now indexed as first-class
unionnodes. Auniondeclaration previously produced no symbol at all, so it never appeared in search orcodegraph_explore, and anything attached to it disappeared with it — in Rust, everyimpl SomeTrait for MyUnionlost its edge, the methods from that impl were left pointing at a type the graph did not contain, and asking which types implement a trait quietly skipped the union ones. A union-shaped dispatch table in C now resolves its function pointers like a struct-shaped one. Atypedef union { … } Name;in C keeps the typedef's name and is no longer mistaken for a plain type alias. Thanks @ctype-lab. Re-index after upgrading to pick up unions in existing projects. (#1515) -
Python classes used as values —
return SomeSerializerfrom a factory method,handler = SomeClassaliases, registry dicts and lists, and classes passed as arguments — now produce reference edges in the graph. Previously these idioms were invisible, so on Django and Django REST Framework projects, asking for a serializer's callers or the impact of editing it missed the views that actually use it. Re-index after upgrading to pick up the new edges. (#1478) -
SAP HANA
.xsjs/.xsjslibimports now resolve across files: an extensionlessimport { x } from './helpers'in a.xsjsfile findshelpers.xsjslib, so the cross-file call edge is created andcodegraph_callers/codegraph_impactsee it. Previously the import path resolved to nothing and the call fell back to same-name matching, which could bind the edge to an unrelated file that happened to export the same symbol. Complements the.xsjs/.xsjslibextraction support. Thanks @maxmilian. (#556)
v1.5.0
2026年07月22日
[1.5.0] - 2026-07-21
⚡ The Rust engine release — with near-instant sync
This release rebuilds CodeGraph's parsing engine as a native Rust kernel, overhauls the resolution pipeline around it, and makes the live graph effectively instant: a save now reaches the graph in well under a second, even on a 27,000-file repository. It is the largest performance upgrade in the project's history — and every graph is verified byte-for-byte identical to the previous engine.
- Native Rust parsing for 20 languages — TypeScript, JavaScript (+TSX/JSX), Java, Python, Go, C, C++, Rust, C#, Ruby, PHP, Swift, Kotlin, Scala, Dart, R, Lua, and Luau now parse in a compiled Rust kernel (Metal and CUDA ride the C++ path). Platforms without a prebuilt binary, and individual files with syntax errors, fall back to the previous engine automatically — same graph either way, proven on repositories from small libraries to the Linux kernel.
- Adaptive to your machine — CodeGraph sizes its parse workers, resolver pool, and caches from what the system actually has: real core counts (container/cgroup-aware, not the host's), honest available memory on macOS and Linux, and measured per-project resolution cost. A big workstation gets the full parallel pipeline; a 2-core VPS gets a pipeline tuned to finish reliably instead of running out of memory — the Linux kernel (70k files) indexes to completion on a 2-core, 6GB machine in under 12 minutes — down from 26 at the start of this cycle.
- Resolution is dramatically faster across the board — adaptive parallel resolution, smarter method-candidate lookup, and memoized supertype/conformance walking. The Swift compiler repository (27k files, Swift + C++) went from over 3 minutes to about 100 seconds within this release cycle; Rust, Lua, and Java-family projects all see double-digit improvements.
- Sync is now near-instant — a save reaches the graph in well under a second, even at compiler scale. The always-on watcher fires after a 300ms quiet window for lone saves (bursts of edits still coalesce), and hands the exact changed paths to sync instead of re-scanning the whole tree — measured save-to-fresh-graph work of ~0.3s on a 4,400-file Java project and ~0.4s on the 27,000-file Swift compiler repository, byte-identical to a full reconciliation.
Full details in the entries below.
New Features
- Indexing TypeScript, TSX, JavaScript, JSX, Java, Python, Go, C, C++, Rust, C#, Ruby, PHP, Swift, Kotlin, Scala, Dart, R, Lua, and Luau projects is faster: parsing and symbol extraction now run in a native engine when a prebuilt binary is available for your platform (release bundles include one), producing exactly the same graph — verified byte-for-byte against the previous engine on real repositories, from small libraries up to vscode-, dubbo-, django-, git-, protobuf-, tokio-, rust-analyzer-, jellyfin-, rails-, symfony-, swift-nio-, kotlinx.coroutines-, ggplot2-, Kong-, Scala-3-compiler-, and Flutter-scale codebases (Lombok-generated members, C function-pointer tables, and Unreal-Engine-style macro-heavy headers included; CUDA and Metal sources ride the C++ path). The speedup is largest on resource-constrained machines like CI runners. No setup needed: platforms without the native binary, and individual files with syntax errors, automatically use the previous engine, and
CODEGRAPH_KERNEL=0turns the native path off entirely. - Reference resolution now runs in parallel on large projects. When a project has enough pending references to make it worthwhile (roughly 150k+, typical for big Java/Kotlin/Spring codebases), resolution fans out across worker threads while results are applied in the exact order the single-threaded path would have used — the graph comes out byte-for-byte identical, about twice as fast end-to-end on a 4,000-file Java project in our testing. Small projects keep the single-threaded path automatically (the fan-out costs more than it saves there). Set
CODEGRAPH_NO_PARALLEL_RESOLVE=1to disable, orCODEGRAPH_PARALLEL_RESOLVE_MIN=<count>to tune when it engages. - Indexing large projects got another sizeable speedup — about a quarter less wall-clock on the same 4,000-file Java project, with the graph still byte-for-byte identical. Two changes: the database no longer interleaves expensive checkpoint housekeeping into the middle of resolution on a fresh index (it's folded once at the end instead), and while one batch's results are being written out, the worker threads are already resolving the next batch instead of sitting idle.
- The dynamic-dispatch analysis that runs at the end of indexing (callback, event, and framework wiring) now runs its passes in parallel on large projects, cutting that stage roughly in half there — and a pass that crashes now retries safely instead of failing the whole index, which also makes very large codebases that previously died in this stage more likely to index to completion. Graphs remain byte-for-byte identical.
- On large projects, indexing writes its relationship data noticeably faster: secondary database indexes are set aside during the bulk of reference resolution and rebuilt once at the end, instead of being maintained row by row. Graphs remain byte-for-byte identical, and small projects are unaffected.
- Very-large-codebase reliability: on multi-million-symbol projects, an analysis pass that fails on a worker thread is now skipped with a clear message instead of being retried in a way that could take down the whole index, and the end-of-indexing index rebuild no longer risks tripping the liveness watchdog on huge graphs. Validated end-to-end on the Linux kernel (70k files, 2M symbols, 6.4M relationships) — it now indexes to completion even on a 2-core machine.
- Indexing is significantly faster — a fresh
codegraph initon a medium TypeScript project takes about a third less wall-clock time, with the same graph produced byte-for-byte. The gains come from batching database writes, storing files on a dedicated writer thread, memoizing repeated import-resolution lookups, skipping per-row search-index maintenance during the bulk build (rebuilt once at the end), and — on completely fresh databases only — deferring disk durability until the index completes, since an interrupted first index is simply re-run. SetCODEGRAPH_NO_FAST_INIT=1to keep full crash-durability during the initial build, orCODEGRAPH_NO_STORE_WORKER=1to store on the main thread. codegraph installandcodegraph upgradenow offer CodeGraph Pro beta access after finishing — answer yes, type your email, and you join the same waitlist as the getcodegraph.com homepage form. Strictly opt-in and asked at most once per machine total: nothing is sent unless you say yes and enter an email, either answer is remembered so no later install or upgrade ever re-asks, and non-interactive runs (--yes, scripts, CI) never see the question.- Every release is now cryptographically verifiable: npm packages publish with npm provenance (the "Provenance" badge on npmjs.com, proving each version was built by this repository's release workflow from a specific commit), and the GitHub Release bundles carry signed build attestations you can check with
gh attestation verify <file> -R colbymchenry/codegraph. - Indexing inside CPU- or memory-limited containers (Docker, CI runners) now sizes its worker pools from the container's actual allowance instead of the host machine's, and giant codebases no longer balloon temporary database files during indexing (previously tens of GB of transient disk on Linux-kernel-scale projects). Together these prevent out-of-memory and out-of-disk failures on constrained machines; set
CODEGRAPH_RESOLVE_WORKERSto override the resolution worker count explicitly. - Indexing very large projects on multi-core machines got faster again: the parallel-resolution workers now periodically refresh their read-only database connections, which lets database housekeeping advance instead of silently building up a backlog behind long-lived readers — a backlog that was taxing the indexer's own writes. Graphs remain byte-for-byte identical; the win is largest at Linux-kernel scale on many-core machines.
- Indexing on macOS now uses the machine's real memory headroom when sizing its parallel-resolution workers. macOS deliberately keeps RAM filled with reclaimable cache, so the previous free-memory reading came back tiny (~1GB on an otherwise idle machine) and silently halved the worker pool — a medium Java project's fresh index ran about 15–20% slower than the hardware allowed. Graphs remain byte-for-byte identical; the same fix also lets a memory-driven analysis cache engage fully on macOS for large C codebases.
- Fresh indexing got a sizeable across-the-board speedup: during the initial build, the database's secondary lookup indexes are set aside and rebuilt once after parsing instead of being maintained row by row — the same proven trick the later linking phase already used, now applied to the whole parse lane — and the reference-resolution loop likewise stops maintaining lookup indexes it never reads, rebuilding them at the end when almost nothing is left in the table. A medium Java project's parse phase runs about 58% faster and its full fresh index about 19% faster end-to-end; a Linux-kernel-scale index that took ~15 minutes on an 8-core machine now completes in about 11, with the resolution phase alone dropping by a third. Graphs remain byte-for-byte identical, and incremental syncs are unaffected.
- Saving a file now updates the graph almost immediately: the file watcher fires after a 300ms quiet window for one or two changed files (bursts still coalesce under the full debounce, and
CODEGRAPH_WATCH_DEBOUNCE_MSremains the upper bound), and watcher-triggered syncs reconcile exactly the changed paths instead of stat-walking the entire repository. Directory deletions and event storms still run the full scan-diff, so nothing the events can't describe is ever missed. Measured: save-to-fresh-graph sync work drops to ~0.3s on a 4,400-file project and ~0.4s on a 27,000-file one, with resulting graphs byte-for-byte identical to a full reconciliation. - Indexing Swift and other protocol/interface-heavy codebases got dramatically faster: the conformance walk that checks whether a method lives on a receiver's supertypes (protocols, base classes, extensions) now remembers its answers for the duration of each resolution batch instead of re-querying the graph for every call site — on the Swift compiler repository (27k files) that walk ran nearly a million times per index. A fresh index of that repo drops from about 185 seconds to under 100, with the graph byte-for-byte identical. Method-candidate lookup also gained a per-name owner index, so overload-heavy names (
initin Swift,executein Java) no longer pay a full candidate scan per receiver type. - Resolving method calls through local variables (
recv.method(), Lua'srecv:method(), R'srecv$method()) got much cheaper on repos where the same receiver is called over and over: the declaration scan that types the receiver now remembers what it has already scanned per scope instead of re-reading the same source lines for every call site, and the regex patterns it scans with are compiled once per receiver instead of per call. Kong's fresh index drops another 8% on top of the require-resolution fix (23% cumulative), with graphs byte-for-byte identical everywhere — including Java projects, where this same scan successfully types tens of thousands of receivers. - Indexing Lua and Luau projects got a sizeable speedup: resolving each
require(...)no longer rescans the project's entire file list four times — a per-project filename index answers the same lookup instantly, cutting per-require resolution from about a millisecond to microseconds. A fresh index of Kong (1,870 Lua files) runs about 16% faster end-to-end, with the graph byte-for-byte identical. The same housekeeping also closes a latent staleness edge where COBOL copybook lookups could keep serving a cached file list after files changed. - Parallel reference resolution now engages adaptively instead of by a fixed project-size cutoff: the indexer measures the actual per-reference resolution rate on the first batch and spins up the worker pool mid-run whenever the remaining work justifies it. Languages whose references are expensive to resolve benefit most — Rust especially: a fresh index of tokio runs about 23% faster, with the graph byte-for-byte identical. Small projects and low-core machines (2-core CI runners) keep the single-threaded path exactly as before.
- The dynamic-dispatch analysis at the end of indexing now skips passes that provably can't produce anything for the project at hand: React re-render bridging when no class has a
rendermethod, React Native and Expo cross-platform pairing when the required languages aren't present, and MyBatis mapper linking when there's no mapper XML. Previously each of these scanned the whole graph before coming up empty — on a 4,000-file Java project that was about 0.9 seconds of wasted analysis per fresh index. The interface-implementation bridging pass also got cheaper on real work: it no longer re-fetches a hub interface's method list once per implementer, and classes that extend or implement nothing are skipped before any per-class lookups. Graphs remain byte-for-byte identical. - Indexing large C and C++ codebases spends much less time in the function-pointer dispatch analysis (the pass that connects handler tables like a command table or an ops struct to their call sites): each source file is now read and prepared once instead of four times, files that can't contribute any dispatch wiring are skipped outright in the later linking steps, and on platforms with the native engine the per-file scanning itself now runs natively too. On a Linux-kernel-scale tree the pass runs about a third faster end-to-end, with graphs byte-for-byte identical; platforms without a native binary keep the same results on the previous path.
Fixes
- TypeScript, TSX, and JavaScript files now parse with up-to-date grammars — modern syntax such as
usingdeclarations and import attributes no longer trips parse errors that could drop surrounding symbols. (The previously bundled grammars dated from 2023.) - Rust files also parse with an up-to-date grammar now (the previously bundled build dated from 2023), which additionally sharpens method-call attribution: calls through struct fields resolve with receiver context instead of falling back to ambiguous bare-name matching, removing a class of wrong call edges on common names like
lenandstart. - Ruby files also parse with an up-to-date grammar now (the previously bundled build dated from early 2024), which fixes a misparse of safe-navigation operator-method calls (
recv&.!= x) that had recorded the wrong callee name. - PHP files also parse with an up-to-date grammar now (the previously bundled build dated from 2023): files using modern PHP features — enum constants, PHP 8.4 property hooks, parenthesis-free
new X()->method()chaining — no longer hit parse errors or misparses that dropped or garbled their symbols, so codebases like Symfony and Laravel index substantially more accurately. - Swift files also parse with an up-to-date grammar now (the previously bundled build dated from 2023): swift-testing
#expect,#Preview-style macros, thepackageaccess modifier, and typedthrowsno longer produce parse errors that dropped surrounding symbols — server-side Swift projects like Vapor see the biggest recovery. - Dart's grammar is now bundled with CodeGraph itself instead of being resolved from a third-party package whose Dart build floated on an unpinned upstream reference — a routine dependency update can no longer silently change how Dart files parse.
- Searching or exploring by field names now finds the code that defines them. A query made of object keys or API field names (
profileInfo isTrialEligible quotaInfo billingMethod) used to return unrelated results while the defining files never appeared, because three retrieval steps each dropped multi-word camelCase terms: an internal case-comparison bug, a match step that only considered classes (never functions or methods), and exploration seeding that required exact symbol-name matches. All three are fixed —codegraph_explorewith a bag of field names now surfaces the controllers and services that assemble those fields. (#1196) codegraph.json'sincludeIgnoredworks again for the "folder of repos" layout: when one.gitignorerule covers a parent directory (/repos/) holding several embedded git repositories, opting in the individual repos ("includeIgnored": ["repos/a/"]— the exact spellingcodegraph init's own hint suggests) previously matched nothing and indexed zero files, looping the same suggestion back at you. Both spellings now work — name the parent directory to opt in everything under it, or name individual repos to opt in just those — and the hint no longer re-suggests repos that are already configured. (#1295)- Method calls on literals (
", ".join(...)in Python,"x".split(...)in JavaScript, and the like) no longer produce call edges to unrelated project functions that happen to share the builtin's name — a codebase with a function calledjoin,get, orupdatecould show phantom callers from every string-builtin use. Additionally, a function nested inside another function is now only matched as a call target from inside its container, since it isn't reachable from anywhere else. Blast-radius and affected-test results get cleaner on Python and JavaScript codebases especially. (#1230) - Go method calls through a struct field (
target.conn.Exec(...)) no longer bind to unrelated same-named local methods when the field's type is external —conn *sql.DBcalls were being attributed to a local interface that happened to declareExec, fabricating internal dependencies. Chained field calls now resolve by inferring the field's declared type from the struct definition: in-project types (including unexported ones like chi'stree *node) gain correct, validated call edges that never existed before, and external types (standard library, third-party modules) are left unlinked instead of guessed. (#1276) - TypeScript/JavaScript method calls through an imported singleton (
import { store } from './store'; store.notify()) now resolve to the class method instead of the exported constant, socodegraph callerssees cross-file callers of the method — previously only same-file calls were attributed and a method used everywhere could look unused. The same declaration-based type inference applies across the languages that share it (Python, Java, Kotlin, Go, and more), and a failed inference keeps the old edge rather than guessing. (#1292) codegraph node <symbol> -f <file>now prints the symbol's source body. Pinning an ambiguous name to a specific file (the whole point of-fwhen many files define the same function) returned only the location and caller trail with no code. (#1284)- Deleting a whole directory is now picked up by watch mode: the files inside it are removed from the index on the next auto-sync instead of lingering as stale records until an unrelated edit happened to trigger one. Operating systems often report a directory deletion as a single event on the directory itself (with no per-file events for its contents), which the watcher previously discarded. (#1285)
codegraph syncnow gets the same slow-disk fix that made full indexing fast in 1.4.0: database checkpointing is deferred for the whole incremental run instead of firing every few megabytes of writes. On mechanical drives and other high-latency storage, a small sync on a large index no longer stalls for minutes at near-zero CPU — the cost of a sync scales with what changed, not with the size of the existing index. The sameCODEGRAPH_NO_WAL_DEFER=1switch turns it off. (#1248)- C functions declared with a project-specific attribute macro in front of a typedef'd return type (
SEC_ATTR UINT32 MyFunc(VOID)— common in embedded and kernel code) are now indexed under their real names. Previously the parser tripped over the unknown macro and stored the parameter list as the function name, leaving entries like"(VOID)"in the graph and making the real function unfindable. (#1211) - Macro-heavy C and C++ code indexes much more completely. Fifteen ubiquitous idioms that previously tripped the parser into error recovery — dropping symbols, garbling names, minting phantom entries, or losing the relationships between real ones — now parse cleanly: the
#ifdef __cplusplus/extern "C" {compatibility guard in C headers, iterator macros in statement position (list_for_each_entry(pos, head, member) { … }and the whole Linux-kernel/git/jemalloc family — including calls that wrap across lines, likehlist_for_each_entry_rcu(…)with alockdep_is_heldargument), the Linux/sparse declaration annotations (static int __init foo(void),void __user *buf,container_of(p, struct T, m)), parameterized annotations (__free(kfree),__printf(4, 0),__counted_by(count)), per-CPU and work-queue declaration macros (static DEFINE_PER_CPU(struct T, name);, initialized forms included), bare type arguments to allocator and list macros (kzalloc_obj(struct T),list_entry(p, struct T, member)),va_argwith a qualified or pointer type, GNU named-variadic macro definitions (#define dbg(fmt, args...)),static notrace-style compiler markers, C23autodeclarations, trailing parameter annotations (int argc UNUSED, git's house style), namespace-management macros alone on a line (FMT_BEGIN_NAMESPACE, Qt'sQ_OBJECT), and function attribute macros in front of C++ return types. On the Linux kernel this cuts files lost to parse errors on the core directories by nearly half and recovers thousands of call and reference relationships that error recovery silently dropped, with git and redis seeing smaller cuts of the same kind; graphs stay byte-for-byte identical between the native and fallback engines. A related fix stops the macro handling itself from corrupting#definelines that mention the same macro names, which removed a class of phantom parse errors in fmt-style headers. - C++ methods defined out-of-line inside a namespace (
namespace sim { Output MyClass::Apply(...) { ... } }) now carry the namespace in their qualified name, matching their class. Fully-qualified call sites from other files (sim::MyClass::Apply(...)) resolve to the definition again, socodegraph callersand file impact no longer come up empty for this pattern. (#1291) - C++ methods defined out-of-line on a template class (
template <typename T> T Box<T>::get() { ... }) no longer keep the template parameter list in their qualified name. They now index asBox::get— identical to an inline definition of the same method — so they link to their class and resolve from call sites again, and pathological multi-line template parameter lists can no longer blow the qualified name past filesystem name limits. (#1286) - Go route detection no longer misidentifies ordinary method calls that share HTTP verb names —
cache.Put("key", value),store.Get("config", out),bus.Handle("user.created", handler)and the like were being indexed as HTTP routes, polluting route listings in cache-heavy codebases. A registration now has to look like one: its first argument must be a/-prefixed path (all routers) or a Go 1.22"METHOD /path"pattern onHandle/HandleFunc, which now also extracts the method instead of listing the route asANY. (#1259) - Progress output on Windows no longer mixes ASCII
|rails with the Unicode│ ◆ ●frame around them. In terminals that render Unicode (Windows Terminal, VS Code, ConEmu/Cmder, JetBrains, Alacritty), the wholecodegraph init/index/syncblock now draws with matching box-drawing characters; unrecognized legacy consoles keep the safe all-ASCII output that avoids garbled characters.CODEGRAPH_ASCII=1/CODEGRAPH_UNICODE=1still override in either direction. (#398) - CLI output now honors the
NO_COLORconvention and new--color/--no-colorflags, and goes plain automatically when piped: commands likecodegraph status,query,callers, andfilesno longer embed ANSI color codes when stdout isn't a terminal, and a pipedcodegraph init/index/syncprints simple per-phase lines instead of progress-animation control characters.FORCE_COLORor--colorforces color back on for pipes that render it. (#1281) - Callers and impact analysis no longer silently under-count a function that calls the same callee many times. When one caller contained several call sites to the same callee and an internal resolution batch boundary happened to split them, cleanup after the first batch removed the later sites' pending rows before they were ever attempted — their edges were never created, deterministically, and which edges went missing shifted with unrelated changes to the project's total reference count. Post-pass cleanup now targets the exact database row each processed reference came from. Found while validating the operator-call fix on nlohmann/json, where
write_cbor's 11 calls toto_char_typeindexed as 10. (#1269) - C++ explicit operator calls —
a.operator+(b),p->operator+(b),a.operator[](3), and the other symbolic forms — now produce acallsedge to the operator method, so an operator invoked only through the explicit syntax no longer looks uncalled in callers and impact analysis. tree-sitter parses these call sites with the operator name stranded in an error node (never as a normal member access), so the call's target was silently read as just the receiver variable; the operator name is now recovered from the error node and resolved through receiver-type inference like any other member call — a same-named operator on an unrelated class can never capture the edge. Infix uses (a + b,a[i]) need real type inference and are tracked separately. (#1247) codegraph initandcodegraph indexno longer look hung after "Resolving refs" reaches 100%. The dynamic-dispatch linking that runs after resolution (callbacks, React re-renders, C function pointers, and the rest) had no progress display, so on repos where it takes a while — large C codebases especially — the bar just sat frozen at 100% until it finished. That work now shows as its own "Linking dynamic dispatch" progress phase, and the heaviest pass — C function-pointer linking — additionally reports progress within the pass, so a large C codebase advances the bar smoothly instead of parking it on one number for the bulk of the phase.- Indexing no longer prints repeated "SQLite is an experimental feature" warnings that garbled the progress display. The warning comes from Node's built-in SQLite and fired once per parsing worker; it's now suppressed on every launch path.
v1.4.1
2026年07月11日
[1.4.1] - 2026-07-10
New Features
- The MCP server now notices when a newer CodeGraph release exists and tells you — a long-running server used to drift behind releases silently until something broke. On startup it checks the latest release in the background (never blocking, at most once a day, cached across all servers on the machine) and surfaces a one-line "update available — run
codegraph upgrade" notice in the server log, in the instructions your agent sees on connect, and incodegraph_status. Nothing updates by itself, and being offline just means no notice. Opt out withCODEGRAPH_NO_UPDATE_CHECK=1;DO_NOT_TRACK=1disables it too. (#1243)
Fixes
codegraph upgradeon a Windows npm install actually runs npm again — modern Node refuses to launchnpm.cmddirectly, so the upgrade failed with a spawn error before doing anything. npm is now invoked the way a terminal would run it. (#1238)codegraph uninstallnow actually uninstalls CodeGraph. It used to remove only the agent configurations and leave every installed binary behind, socodegraphstill ran afterward — especially confusing when both an npm global install and a standalone install were present and removing one still left the other answering on PATH. Uninstall now finds every install on the machine (the standalone bundle, the npm global package, the launcher link) and removes them all, after showing you exactly what it found and asking first (--yesskips the prompt). Machine-level settings like your telemetry choice are preserved, a source checkout is never touched, and the new--keep-cliflag restores the old configs-only behavior. (#1071)codegraph_exploreno longer lets ordinary English words in a natural-language question hijack the ranking when they happen to match a code symbol's name. A question like "how does the upgrade flow check the latest version" used to treat "check" as a symbol the agent asked for by name, rank that unrelated definition's file first, and crowd the files the question is actually about out of the answer entirely. Precisely written symbol names (camelCase, PascalCase, snake_case, qualified names) still get top billing exactly as before, as do plain-word symbol bags whose words belong together in the same file.- PHP method calls made through a class property —
$this->dep->method(), the dominant call shape in constructor-injection codebases (Symfony, Laravel) — now resolve to the method on the property's declared type, so callers and impact analysis see production call sites instead of reporting a DI-heavy method as uncalled or test-only. Promoted constructor parameters, typed properties, classic constructor assignment (including multi-line signatures), and typed setter injection all count; interface-typed properties resolve to the interface method, and inherited methods resolve through the type hierarchy. Only property-shaped declarations are consulted — a same-named local variable or parameter elsewhere can never mistype the property — and a property whose type can't be recovered statically stays unlinked rather than guessed. Thanks @w0lan. (#1220) codegraph upgradenow also refreshes what previous versions installed into your agents — the CodeGraph section in CLAUDE.md / AGENTS.md / GEMINI.md and the MCP entry — so upgrading no longer leaves agents following instructions written for tools that have since been renamed or removed. Refresh-only: agents you never configured are not touched, and your permission and hook choices are preserved. Also available manually ascodegraph install --refresh, and skippable withCODEGRAPH_NO_INSTALL_REFRESH=1. (#1238)codegraph upgradeon an npm install now upgrades through npm again instead of quietly creating a second copy that never wins the PATH race — previouslycodegraph --versionkept reporting the old version forever, no matter how many times you upgraded. (#1238)- After every upgrade, CodeGraph now checks that the
codegraphcommand your terminal resolves actually serves the freshly installed version — confirming you don't need a new terminal, or telling you exactly which stale install is shadowing the new one. (#1071) - The safety watchdog no longer kills a healthy index on severely degraded storage. It used to judge liveness purely by the event loop, so one long database write on a struggling disk looked identical to a hung process and could get a valid, in-progress index terminated. During
codegraph index/codegraph initthe watchdog now also checks whether the index files on disk are advancing before it acts: slow-but-progressing work is left alone (bounded by a hard cap), while a genuinely hung process is still killed exactly as fast as before. (#1231) - Incremental sync now picks up cross-file relationships that only become resolvable after an edit — for example, when a file gains an export that another, unchanged file was already importing or calling. Previously the reference in the unchanged file was never revisited, so callers, impact, and flow results silently omitted the new edge (while status reported a clean index) until a full re-index. References that can't be resolved yet are now remembered and automatically retried whenever a change introduces a symbol that could satisfy them — this also covers a class gaining a new method that other files already call. Thanks @loadcosmos for the report with a minimal reproduction. (#1240)
- The reverse case is fixed too: when an edit removes or moves a symbol (or deletes its file), callers in unchanged files now re-resolve during the same sync — rebinding to the symbol's new home when it moved, or waiting to reconnect automatically when it comes back — instead of silently losing their relationship until a full re-index. (#1240)
v1.4.0
2026年07月10日
[1.4.0] - 2026-07-10
New Features
- Indexing is dramatically faster on slow storage — mechanical HDDs, network folders, and virtualized disks. The database no longer folds its write journal back into the main file thousands of times during a bulk index (that folding was ~95% of all disk activity); it now streams writes sequentially and folds them back in a few large, coalesced passes that run off the main thread. In a disk-throttled benchmark matching the reported hardware, a mid-size Java project went from over 25 minutes to under a minute, and there is no change on fast disks. Opt out with
CODEGRAPH_NO_WAL_DEFER=1; tune the fold-back threshold withCODEGRAPH_WAL_VALVE_MB. (#1231) - New
CODEGRAPH_PARSE_TIMEOUT_MSenvironment variable to raise the per-file parse budget on unusually slow storage, the same wayCODEGRAPH_PARSE_WORKERSalready tunes the worker count. (#1231)
Fixes
- Indexing on slow storage (mechanical HDDs, network folders) no longer collapses into false "parse timeout" failures. When disk writes stalled the coordinating thread, parses that had already finished — including empty files — were being misjudged as hung, their workers killed, and the files silently dropped from the index. A parse result is now judged by the worker's own clock, so a stalled coordinator accepts the finished result instead of killing the worker; only a genuinely hung parse is terminated (after a wider grace window). Files that do hit the timeout are retried at the end of indexing instead of being silently lost. Thanks @KnifeOfLife for the exceptional report. (#1231)
- Parse workers now receive their grammar files from memory instead of each re-reading them from disk on spawn, eliminating a feedback loop on slow disks where every worker restart added more disk contention — and making worker restarts cheaper everywhere. (#1231)
v1.3.1
2026年07月09日
[1.3.1] - 2026-07-09
Fixes
- Indexing very large codebases no longer dies at the end of the "Resolving refs" step. Two failure modes are fixed: on multi-million-symbol projects (e.g. the Linux kernel, ~95,000 files) the final analysis phase ran out of memory and crashed the process outright, and on large projects on slower machines (reported on a 24,000-file Java project on Windows) the same phase could stall long enough that the safety watchdog killed a healthy, still-progressing index at ~98% (#1212). The whole phase now streams its work instead of holding whole-graph snapshots in memory, keeps the process responsive throughout, and skips analysis passes for languages a project doesn't contain — which also makes the tail of indexing noticeably faster on single-language repos. The resulting graph is identical, and a genuinely wedged process is still detected and killed.
- Indexing and
codegraph syncstay responsive through their heaviest internal steps on huge projects: the post-index database maintenance (which on a multi-gigabyte index could stall the process for minutes and get a fully successful index killed by the safety watchdog at the finish line) now runs on a background thread, storing a giant generated file no longer freezes the process mid-extraction, and the reference-resolution bookkeeping between progress updates is broken into small responsive steps. The resulting graph is byte-for-byte identical. - Fixed a race that could leave a freshly-attached MCP session permanently silent: when a client's first messages arrived glued together during the daemon's connection handshake (roughly one attach in five on a busy machine), the daemon could drop them and stop reading that connection entirely — every tool call from that session then hung with no reply. The handshake now hands the connection over losslessly, and the fix is validated by hammering the previously-flaky attach test 25× under load.
- The first tool call after the shared daemon starts no longer waits behind the query workers' cold start (which can take many seconds on a busy machine) — it's served directly until the first worker is warm, so a fresh session answers immediately.
v1.3.0
2026年07月08日
[1.3.0] - 2026-07-07
New Features
- CodeGraph now indexes Nix (
.nix) — flakes, NixOS and home-manager modules, overlays, and package sets join the graph:letand attrset bindings, functions (simple, destructured{ pkgs, ... }, and curried), andinheritbindings all become searchable symbols, with call edges between bindings. File-level wiring follows the ways Nix actually connects files:import ./relative/path.nix(withimport ./dirreaching the directory'sdefault.nix), NixOS moduleimports = [ ./hardware.nix ../common ]lists, flake-stylemodules = [ ./configuration.nix ]lists, and the nixpkgscallPackage ./pkgs/foo { }idiom — so "what does this configuration actually pull in" and "what uses this module" are answerable on real setups. Dynamic references (import <nixpkgs>, variable paths, flake-input module references) are deliberately left unlinked rather than guessed. Thanks @TyceHerrman. (#324, #332, #648) - The NixOS module system's option wiring is bridged, so flow questions cross the module boundary instead of going dark at it: a config write like
launchd.user.agents.myapp = { ... }orhome.file.".gitconfig" = { ... }links to the module that declares that option (options.launchd.user.agents = mkOption { ... }— flat and nested declaration spellings both count, quoted keys likesystem.defaults.NSGlobalDomain."com.apple.dock"match their exact declaration), which makes "how does enabling this service produce the launchd daemon / generated config file" traceable end-to-end and "what sets this option" answerable across modules, tests included. Precision is deliberately conservative: interpolated${...}paths, options declared in more than one module, and submodule-internal option namespaces stay unlinked rather than guessed, and every bridged hop is labeled as heuristic module-system wiring rather than shown as a plain reference. - CodeGraph now indexes ArkTS (
.ets) — the language of HarmonyOS / OpenHarmony apps. Everything TypeScript gets extracted (classes, interfaces, enums, type aliases, imports/exports, call edges), plus ArkTS's own constructs:@Component/@ComponentV2structs with their decorators (@Entry,@State,@Prop,@Link,@Local,@Param, …) captured and searchable,build()view trees linked parent→child so "which pages render this component" is answerable, chained attributes connected to the@Extend/@Stylesfunctions they invoke,@Buildermethods and functions wired into the call graph, and.onClick(this.handler)-style event bindings linked to their handler methods. Modular HarmonyOS projects resolve across module boundaries too: a bareimport { CartRepository } from "data"follows theoh-package.json5file:dependency to the right module — honoring each module's declaredmainentry, from.etsand.tsconsumers alike — while ambiguous names in multi-app monorepos deliberately stay unlinked rather than guessed, and mixed.ets/.tscodebases cross-link freely. Validated on real HarmonyOS apps including the official OpenHarmony samples monorepo. (#396, #512, #648, #890) - ArkUI's dynamic hops are bridged so flow questions cross them instead of going dark, each labeled as dynamic dispatch rather than shown as a plain call: methods that assign a reactive property (
@State,@Local, …) link to the component'sbuild()(the re-render hop — assignment-gated, so a method that merely reads state gets no edge);emitter.emit(eventId)links to the matchingemitter.on/oncesubscriber when both sides share a statically-recoverable event key (numeric ids pair within one file only, named constants within one module, so unrelated samples in a monorepo never cross-link); androuter.pushUrl({ url: 'pages/Detail' })links to the target page's@Entrystruct, with ambiguous urls left unlinked rather than guessed. - Interrupted or incomplete indexing is now visible instead of silent: a run killed mid-index (crash, out-of-memory, watchdog) leaves a marker that
codegraph statusreports as a truncated index, a completed run that dropped files reports itself as partial — both in the human output and instatus --json— andcodegraph indexprints a warning with the exact counts when its result doesn't add up to what the scan discovered. - CodeGraph now indexes Terraform and OpenTofu (
.tf,.tfvars,.tofu) — resources, data sources, modules, variables, outputs, providers, and everylocalsattribute become symbols (e.g.aws_s3_bucket.my_bucket,var.region,module.vpc,local.prefix), and uses likevar.region,module.vpc.id,data.aws_caller_identity.current, oraws_s3_bucket.my.arnare wired up cross-file, so search, callers, and impact queries return real results on infrastructure repos instead of nothing. Module calls are bridged across the module boundary: amoduleblock's inputs link to the child module's variables,module.vpc.vpc_idreaches the child'soutput "vpc_id"definition, and the block's localsourcepath links to the module's files — so "what breaks if I change this module's variable" reaches every caller instead of dead-ending at the declaration (registry and git sources are deliberately left as visible boundaries rather than guessed). Cross-component wiring through the cloudposse/atmosremote-statemodule connects too:module.vpc.outputs.vpc_cidrin one component reaches thevpccomponent's own output when the component name is statically declared (a literal, or a variable with a literal default) and exactly one directory matches — anything dynamic or ambiguous stays unlinked. Aliased providers are first-class:provider "aws" { alias = "east" }gets its own symbol, andprovider = aws.easton a resource (or a module'sprovidersmap) links to that configuration, found up the module tree the way Terraform actually inherits it.moved/import/removedstate-migration blocks andcheckassertions reference the resources they name, so a refactor's paper trail is part of the graph..tfvarsassignments link to the variables they set, including var-files kept in a subdirectory. Resolution follows Terraform's real per-directory scoping, so same-named variables across modules never cross-link and "what depends onvar.project_id" in a multi-module repo never mixes in unrelated modules. Thanks @Javviviii2. (#83, #310, #648) - CodeGraph now indexes CUDA (
.cu,.cuh) — kernels, device/host functions, structs, and classes become symbols, and the host→kernel call edge survives the<<<grid, block>>>launch syntax, so questions like "how does this call reach the GPU kernel?" trace across the CPU/GPU boundary instead of going dark at the launch site. Real-world launch styles all connect: templated launches (my_kernel<Traits, 256><<<grid, block>>>(args)), launches through a local function pointer (auto kernel = &my_kernel<...>; ... kernel<<<grid, block>>>(args)— each branch-assigned target linked), brace-initialized launch configs (<<<dim3{1,1,1}, dim3{256,1,1}>>>), and kernels defined through a name-in-first-argument macro (flash-attention'sDEFINE_FLASH_FORWARD_KERNEL(kernel_name, ...) { ... }style), which now index under their real kernel names. CUDA that lives in plain.h/.hppheaders — where much real-world device code sits, launch-template headers included — is recognized by content and indexed the same way. Validated on llm.c, flash-attention, and NVIDIA CUTLASS. (#387, #648) - C++ symbols defined inside
namespaceblocks now carry the namespace in their qualified name (flash::compute_attn, C++17namespace a::b {included), and namespace-qualified calls (ns::fn(...)) resolve to their definitions — previously such calls never linked at all, which hid much of the call graph in namespace-heavy C++ codebases from callers and impact analysis. - C++ calls that spell out template arguments (
fn<T, 256>(args)) now link to the function they instantiate, the same normalization templated base classes already had. - CodeGraph now indexes Solidity (
.sol) — contracts, libraries, interfaces, structs, enums, modifiers, events, errors, and state variables become first-class symbols, with call edges that followemit,revert, modifier guards (onlyOwner-style, including base-constructor chains likeconstructor() ERC20(...)), and library/method calls (includingusingdirectives).importdirectives resolve to the imported file, so cross-contract questions like "tracetransferFromthrough allowance and balance updates" or "how doesonlyRolereach the role storage?" work out of the box on real Solidity codebases (validated on solmate, solady, and OpenZeppelin Contracts). Thanks @naiba. (#374, #648) - Erlang behaviour dispatch is now followed through the graph: a framework call through a variable module — cowboy's
Handler:init/Middleware:executefolds, a plugin manager'sMod:callback(...)— links to the repo's implementations of the behaviour that declares that callback, so flow traces and impact cross the OTP callback boundary instead of stopping at it. The links are precision-gated: the callback arity must match, exactly one behaviour may own that callback shape (a collision stays unlinked rather than guessed), the implementer must actually export the callback, and the fan-out is bounded — a behaviour with hundreds of implementers stays a visibly dynamic boundary. Every bridged hop is labeled as dynamic dispatch with its wiring site, never shown as a plain static call. - CodeGraph now indexes Erlang (
.erl,.hrl) — functions, with clauses and arities of the same name grouped as one symbol spanning all of them, plus records with their fields,-type/-opaquealiases,-definemacros, and-specsignatures attached to every function. Cross-modulemod:fn(...)calls resolve to the target module's function,fun name/arityvalues are captured as references (so callback registrations likelists:foreach(fun submit/1, ...)link up),-include/-include_libconnect to the header files they pull in,-behaviourdeclarations link a callback module to its behaviour (and only ever to a module — a same-named macro or function elsewhere in the repo is never mistaken for one), and-exportlists (plus-compile(export_all)) drive each function's public/private flag. OTP's indirection idioms are followed where the target is static:spawn/apply/proc_lib/timer/rpccalls that name their target as(Module, Function, Args)arguments produce call edges, andgen_server:call/castconnects to the target module'shandle_call/handle_cast— its own when targeting?MODULE(including the-define(SERVER, ?MODULE)idiom), and the named module when a registered name follows OTP's name-the-server-after-its-module convention (gen_server:call(other_mod, ...), directly or through a-define(STORE, other_mod)macro); a registered name that matches no module stays unlinked. Macros participate in the graph too: a-definebody's calls belong to the macro, each?MACRO(...)use site links into the call chain (and bare?CONSTANTreads are tracked as references), so a call path hidden behind a macro —set_password → ?SQL_UPSERT_T → sql_query_t— traces end-to-end and "where is this macro used" is answerable. escripts index like any module (the shebang line is understood), and OTP application resource files (.app.src,.app) join the graph:{mod, ...}links an app to its callback module and{applications, [...]}connects umbrella sibling apps — resolving only ever to modules, so an OTP app name likesslis never mistaken for a same-named function. Truly dynamic dispatch (Mod:handle(...), message sends, var-module spawns) is deliberately left unlinked rather than guessed.codegraph_explorealso understands Erlang-native symbol spelling in queries —mod:fn/3andinit/2find the symbols they name. (#635, #648) - CodeGraph now indexes Visual Basic .NET (
.vb) — classes, Modules, interfaces, structures, enums, properties, events,MustOverrideabstract members, andDeclareP/Invoke signatures, withInherits/Implementshierarchy edges, call edges (resolved through VB's ambiguous call-vs-index parentheses), andNew/As Newinstantiation links. Real-world VB styles parse cleanly: WinForms designer files, interpolated and multi-line strings, XML literals (embedded<%= %>expressions included), single-line and multi-line LINQ queries, multi-line lambdas,Handles/WithEventsevent wiring, Custom Events, date literals, classic type-character identifiers (i%,name$), and non-English (Unicode) identifiers. (#648, #639, #170) - CodeGraph now indexes COBOL (
.cbl,.cob,.cpy) — programs, sections and paragraphs withPERFORM/GO TOcall edges,CALLcross-program calls,COPYcopybook imports (standalone copybooks included), and DATA DIVISION records with 88-level condition names, in both fixed and free source format. Impact queries work on data items: everyMOVE/ADD/COMPUTE/SUBTRACTwrite-site links back to the field it changes, so "what touches this copybook field" answers across programs. CICS flows connect too:EXEC CICS LINK/XCTLprogram targets,EXEC SQL INCLUDEcopybooks, and pseudo-conversationalRETURN TRANSID(...)hops resolve to the program owning the transaction id. (#590, #648) - CodeGraph now indexes CFML (
.cfc,.cfm,.cfs) — both the classic tag-based style (<cfcomponent>/<cffunction>) and modern bare-scriptcomponent { ... }syntax, includingextends/implements, embedded<cfscript>blocks (at any nesting depth, including inside<cfif>/<cfloop>/<cftry>), call edges, and calls embedded in#hash#expressions inside<cfquery>SQL bodies. Files saved with a UTF-8 byte-order mark and tags with unquoted attribute values — both common in long-lived CFML codebases — are handled too. Thanks @ghedwards. (#1118) - CFML inheritance written as a component path now links to the right component.
extends="coldbox.system.web.Controller"names its supertype by dotted path andextends="../base"by relative path (the FW/1 style) — both previously produced no inheritance edge at all, which on framework-style CFML apps hid most of the type hierarchy from impact and blast-radius analysis (on ColdBox's own core, over 90% of inheritance was invisible). Resolution is deliberately conservative: the target's directory layout must corroborate the declared path — so a supertype that lives in an out-of-repo library (testbox, mxunit, an installed framework) correctly stays unlinked rather than being guessed at, and an ambiguous path produces no edge rather than a wrong one. (#1152) - CFML method calls made through a local variable, typed argument, or component property now resolve to the right method — the same receiver-type inference the other object-oriented languages already had.
var svc = new UserService(); svc.save(),createObject("component", "path.UserService"), a typed<cfargument>or cfscript parameter, andvariables./this.-scoped fields — including the pseudoconstructor pattern (variables.svc = new UserService()ininit()) and WireBox-injected properties (property name="svc" inject="UserService") — all now link the call to the declared component's method, with methods inherited from a supertype resolved through the inheritance links above. This makes callers, impact/blast-radius, andcodegraph_exploreflow traces follow CFML service calls instead of dropping them or guessing among same-named methods. - The Claude Code context hook now recognizes prompts that describe code in plain words — in any language — by checking the prompt's words against the symbol names actually in your project's index. Asking about "the state machine des commandes" finds
OrderStateMachinewith no keyword involved. Confidence decides how much gets injected: structural questions and prompts naming a real symbol still get full context up front; a plain-words match gets a short pointer to the matching symbols so the agent queries them itself; everything else stays silent, exactly as before. - Anonymous usage telemetry now counts how often the context hook injected context, offered a hint, or stayed silent — fixed counter names only; the prompt's content is never stored or sent. This makes the hook's accuracy measurable instead of guessed. The counters record what actually happened, not what was attempted: a lookup that errors or comes back empty counts as a distinct silent outcome, never as delivered context (#1143, thanks @inth3shadows).
- Metal shader files (
.metal) are now indexed. Metal Shading Language is close enough to C++ that vertex/fragment/kernel functions, structs, type aliases, and the calls between them all land in the graph — so shader pipelines in Apple-platform projects show up in impact analysis and flow traces instead of being silently skipped. Metal's[[buffer(0)]]-style attribute annotations are handled so they can't corrupt what gets extracted. Thanks @FluxKo for the report. (#1121) - CodeGraph now indexes legacy iBatis 2 SQL maps (
<sqlMap>), not just MyBatis 3<mapper>files.<select>/<insert>/<update>/<delete>, iBatis's<statement>/<procedure>, and<sql>fragments inside a<sqlMap>become searchable statement symbols — for both namespaced maps and the namespace-lessMap.statementid style — and<include>references resolve to the fragment they pull in, so search, callers, and impact queries return results on iBatis codebases that previously produced no statement symbols at all. Thanks @ESPINS for the report and the reproduction. (#1182) - You can now force gitignored first-party source into the index with an
includelist incodegraph.json. The case this solves: a project tracked by a second VCS (SVN, Perforce, …) alongside Git, where some real source is committed to that VCS and deliberately listed in.gitignoreso it never lands in Git — git never lists those files, so CodeGraph never indexed them, and neitherincludeIgnored(which only revives embedded git repositories inside a gitignored directory) norexclude(its opposite) could help. Add a rootcodegraph.jsonwith, e.g.,{ "include": ["Tools/", "Local/typescript/"] }and CodeGraph discovers those files directly off disk — overriding.gitignore— and indexes them on the full index, incrementalsync, and file-watching, on both git and non-git projects. Patterns are gitignore-style and matched against project-root-relative paths (a directory, a recursive**glob, or a single file). An explicitexcludestill wins, and built-in skips likenode_modules,dist, and.gitare never re-included. This complements the existingexclude(its opposite — keep tracked files out) andincludeIgnored(opt in to gitignored embedded repos).
Fixes
- Indexing a large Java or Kotlin Spring monorepo is dramatically faster. The reference-resolution phase — the bulk of a first-time
codegraph index— could run for the better part of an hour on a big multi-module project and now finishes in a few minutes, producing the same graph. The cause: everyreceiver.method()call in the codebase was repeatedly scanning the project's entire set of configuration keys looking for a match — work that only ever applies to Spring@Value/@ConfigurationPropertiesbindings, never to ordinary method calls. As part of the same fix, a method call whose name coincides with a configuration key (say aservice.process()call alongside aservice.processentry inapplication.yml) is no longer mislinked to that config key — it now resolves to the actual method. Thanks @bayernjava for the report. (#1180) codegraph initat a parent repository whose.gitignoreexcludes its child repositories no longer silently indexes nothing and reports success. The "super-repo of gitignored child repos" layout — a top-level Git repo that.gitignores eachservice-*/orpackages/*child sogit statusstays quiet — used to index only the parent's few top-level files and print "Done" with 0 nodes, even though runningcodegraph initinside any child worked fine (CodeGraph respects.gitignoreby default, so the excluded children were skipped). Now, when an index comes up empty, CodeGraph detects the gitignored child repositories that were skipped, names them, and — in an interactive terminal — offers to index them (writing anincludeIgnoredentry tocodegraph.jsonand re-indexing on the spot); non-interactive runs print the exactcodegraph.jsonsnippet to add. Projects that legitimately keep gitignored reference clones out of a working index are never nagged: the offer only appears when the index would otherwise be empty. Thanks @small-thanks for the report. (#1156)- The MyBatis mapper reader is sturdier on real-world XML. Single-quoted attribute values (
id='getById', legal XML and common in older mappers) are no longer skipped, so those statements make it into the graph. Statements and<include>s that were commented out with<!-- ... -->no longer produce phantom symbols. And two vendor-split statements — the sameidwithdatabaseId="oracle"/databaseId="mysql"— written on a single line no longer silently drop one of the pair. Thanks @ESPINS for the report, the reproductions, and the fixes. (#1182) codegraph initandcodegraph indexno longer get killed by the safety watchdog at the "Resolving refs" step on large method-name-heavy codebases (big Java/enterprise monorepos were the main victims, especially on slower machines). Resolution used to come up for air only every 500 references, so a dense stretch of expensive ones could starve the watchdog long enough for it to assume the process was stuck and kill a perfectly healthy index. Resolution now checkpoints after every reference, and two of the expensive steps got much cheaper: repeated method lookups on the same type are now cached, and source files are no longer re-split line-by-line for every call being resolved — indexing such repos is several times faster as a result. Generated or minified single-line files are also skipped during receiver-type inference instead of being scanned per call. Thanks @UchihaYong and @wangmeng-95 for the reports. (#1122)- An index left incomplete by an interrupted run now heals itself on the next sync instead of silently staying wrong forever. If indexing died partway through resolving references (a crash, Ctrl-C, or the watchdog kill fixed above), the affected files still looked indexed but their caller/impact edges were missing — a too-small blast radius clustering by package or module, e.g. a Spring
@Resource-injected method reporting 3 of its 10 real caller files — and because incremental syncs only re-resolve files that changed, the damage was permanent until a full re-index. Any sync (a watched file change, or a barecodegraph sync) now detects the leftover references and finishes resolving them,codegraph statuswarns when an index is in that state instead of passing it off as healthy, and a rare early-stop that could abandon resolution on repos whose first files reference only external libraries is fixed too. Thanks @KnifeOfLife for the report and the package-correlation observation that pinned it down. (#1187) - The shared background server no longer shuts down out from under a live editor/agent session that simply hasn't queried CodeGraph in a while. A safety timer meant to reap an abandoned server — one whose client vanished without the connection ever closing — was reaping any server that saw no requests for 30 minutes, including a perfectly live session that just wasn't asking CodeGraph anything; that silently dropped the session (and every other session sharing the same background server) to a slower in-process mode for the rest of its life. On one machine over a day it fired 20 times on live sessions and caught zero real phantoms. The timer now checks whether the connected clients are actually still alive and only reaps when none of them are, so a quiet-but-live session keeps its shared server while a genuinely abandoned one is still cleaned up. (#1200)
- CodeGraph's background server no longer leaves a lingering Node process behind when your editor or agent kills its launcher during startup. If the app that started CodeGraph (Codex, Claude Code, or another MCP client) was killed within the server's first fraction of a second — a config probe, a cancelled request, a startup timeout — while keeping the connection's pipes open, the server could be handed off to the system before its orphan-detection watchdog had captured a reference point, leaving it running (idle, ~30 MB) until the launching app itself exited; over a long day of repeated launches these accumulated. The server now records its parent at the earliest possible moment, and the npm and standalone launchers pass the real host's process id down to it so it can watch the host directly instead of only the launcher that may already be gone. As a final backstop, a server that never receives a single request after starting now shuts itself down instead of waiting for the host to exit — tunable with
CODEGRAPH_STARTUP_HANDSHAKE_TIMEOUT_MS(0 disables). Thanks @ruslan33321 for the report. (#1185) - The automatic context hook for Claude Code now fires for structural questions asked in nearly thirty languages — French, Spanish, Portuguese, German, Italian, Dutch, Polish, Czech, Romanian, Hungarian, Greek, Swedish, Danish, Norwegian, Finnish, Russian, Ukrainian, Turkish, Indonesian, Vietnamese, Thai, Hindi, Arabic, Farsi, Hebrew, Japanese, Korean, and both simplified and traditional Chinese — instead of just English and simplified Chinese. Previously a natural question like "comment marche la state machine des commandes ?" injected nothing unless it happened to contain a code-shaped symbol name, making the hook look broken for non-English teams. English questions phrased with derived word forms ("explain the architecture…", "what are the dependencies…") now fire too, and prompts in any other language still fire when they name a symbol from the index. Thanks @anthonyle-roy-lgtm for the report. (#1126)
- Lua and Luau method calls with capitalized names (
obj:Method()— the standard Roblox convention) now link to the right method. Because Lua's method-call syntax looks identical to a Luau type annotation, a capitalized call likelg:Log()was misread as declaring the variable's type, so whenever two or more classes shared a method name (Init,Update,Destroy, …) the call was silently dropped from callers, impact/blast-radius, and flow traces. Lowercase method names were unaffected. Thanks @inth3shadows for the precise root-cause analysis and repro. (#1124) - Removed dead code left behind by the discontinued managed-reasoning feature. Its
codegraph loginflow was unplugged before ever shipping in a release, but the unused module still shipped inside the platform bundles, and a security review flagged its Windows browser-open step (it routed the login URL throughcmd, which would have been unsafe had the flow ever been wired back up). The leftover module and its tests are now fully deleted. Thanks @inth3shadows for the report. (#1114) - The Claude Code context hook no longer treats ordinary English words that merely start with "call", "trace", "affect", or "connect" — callus, calligraphy, Connecticut, connective, affectionate, Tracey — as structural questions, which used to inject full CodeGraph context into prompts that had nothing to do with code structure. Genuinely structural forms (calls, callers, callbacks, call site, traced, tracing, affected, connections, connectivity, …) still fire exactly as before. Thanks @inth3shadows for the report. (#1138)
- A stuck git command can no longer hang CodeGraph indefinitely. The git checks behind worktree detection and git-hook setup, and the installer's optional
npm install -gstep, now time out and fail gracefully instead of blocking forever — this matters most for the background MCP server, where an unbounded git hang (network filesystems, a wedged fsmonitor) could previously freeze it long enough for the safety watchdog to kill it. Thanks @inth3shadows for the report. (#1139) - The context hook's new plain-words matching works immediately on projects indexed by an older CodeGraph version. The word lookup it relies on is built at index time, so a project indexed before the upgrade had an empty one, and the hook would silently find nothing until something else happened to refresh the index; the hook now fills it in on first use (a one-time step — normally the background MCP server's startup catch-up gets there first). Thanks @inth3shadows for the report. (#1142)
- Several accuracy fixes to the plain-words matching: a renamed symbol (for example a NestJS route after its module prefix is applied) stays findable under its new name (#1141); a word that only appears in your code as an import statement's package name is no longer presented as a matched symbol (#1144); plural words no longer generate garbled lookup keys ("services" no longer also looks up "servic") (#1145); and a name matching both the singular and plural of one word can no longer squeeze out a genuine two-word match (#1146). Thanks @inth3shadows for the reports.
- Heavily-reflected Unreal Engine C++ classes are no longer dropped from the index. Reflection markup that decorates members —
UPROPERTY(...),UFUNCTION(...),UCLASS(...),GENERATED_BODY(),UE_DEPRECATED_*(...),DECLARE_DELEGATE_*(...)— are no-semicolon macro calls that tree-sitter doesn't recognize, so each drops into error recovery; in a big class the errors pile up until the wholeclass_specifiercollapses and the class, its base clause, and its members vanish (UCharacterMovementComponent, with ~240 such macros, disappeared entirely, breaking every subclass/type-hierarchy and blast-radius query that went through it). These line-leading annotation macros are now blanked (offset-preserving) before parsing so the class survives. Thanks @luoyxy for the report and root-cause analysis. (#1093 follow-up) - Unreal Engine members and methods prefixed by an export/visibility macro are no longer lost. The
*_APImacro doesn't only sit on the class header — it prefixes almost every exported member of a large UE class (ENGINE_API virtual void Tick(...),static ENGINE_API void AddReferencedObjects(...)); the parser read the macro as an extra type token and each such declaration fell into error recovery, so on headers likeActor.handWorld.hhundreds of return types piled up as orphan errors and could still tip the class into collapse. Member/method-level*_API/*_EXPORT/*_ABImacros (Unreal, Qt/Boost, LLVM) are now blanked before parsing, mirroring the existing class-header recovery. (#1093 follow-up) - Unreal Engine annotation macros that appear mid-line — an enum value's
UMETA(DisplayName=...), a parameter'sUPARAM(ref), or a deprecation tag wedged into ausingalias (using FOnNetTick UE_DEPRECATED(5.5, "...") = ...;, which alone collapsedUWorldinWorld.h) — are now stripped too. These sit in positions the line-leading recovery structurally can't reach, and a single one could take down the surrounding enum or class. They are matched by an Unreal-only name list (UMETA,UPARAM,UE_DEPRECATED*) so no standard-C++ or other-library code is affected. Together these three fixes recover the main class of every large Unreal Engine header tested (Actor,ActorComponent,SkeletalMeshComponent,World,LightComponent,CharacterMovementComponent). (#1093 follow-up) - A C++ header whose only C++ signal is an export-macro-annotated class is no longer misdetected as C — which had silently dropped the class. A
.hfile defaults to C and is only reclassified as C++ when it shows a C++-specific construct, but that check couldn't see through an export/visibility macro:class ENGINE_API UFoo : public UObjectdidn't match the macro-blindclass Name :pattern, so a lean Unreal-Engine-style header carrying justGENERATED_BODY()and no explicitpublic:/virtual/namespace/templatewas parsed as C. The C extractor emits no class nodes, so the class — and its inheritance link — vanished from the graph, quietly undoing the macro-class recovery added in #1061. The C++ detection heuristic now recognizes an export-macro-annotatedclass/structdeclaration (the same shape #1061 blanks before parsing), matching howclass Foo : Barwas already detected; the two-token<keyword> <MACRO> <Name>before a[:{]never occurs in valid C, so genuine C headers are unaffected. Thanks @luoyxy for the report and root-cause analysis. (#1133)