Repository navigation
Releases
GraphLume v1.0.0
First public release. GraphLume is a local code graph for AI coding agents,
served over MCP, a CLI, a REST API and a web portal.
Indexing & accuracy
-
Indexes a repository once into a local SQLite graph of definitions, calls, imports, HTTP routes, database tables, events and tests, and keeps it current with
watch, git hooks and a working-tree check before everyserveanswer. -
Reads 206 languages in four tiers (typed, resolved, parsed, text only), listed by
graphlume languages. The language of a file follows its content, shebang andindex.language_overrides, not only its extension. -
Every edge carries a confidence tier:
exact(a compiler proved it),high,mediumorlow. Only a compiler may claimexact; this is enforced in the code and the database schema. -
Go is type-checked out of the box.
graphlume indexers installadds pinned SCIP compiler indexers for other languages, andgraphlume scip importloads a.scipfile;resolvealso imports one found in the project or.graphlume/. A compiler's answer overrides a heuristic binding. -
Resolves calls by receiver type, lexical scope, named imports, arity and return types, binds renamed imports through the import that declares them, and leaves a reference unbound rather than guessing between same-named candidates.
-
Records constructor calls as
INSTANTIATESedges, Go and NestJS routes with the prefix they are served under, and test coverage imported from Go, LCOV, Cobertura and JaCoCo reports. -
Recovers from syntax errors in grammar gaps, records how each file was parsed (
ok,partial,failed,skipped) and states how complete an index is. -
Every answer is graded against the coverage it rests on and says what it could not see. An ambiguous name returns a list of candidates with the
pathandlinethat select each. -
Secrets are redacted before text reaches the index. Indexing makes no network requests and runs under a memory budget, with streaming file discovery for very large repositories.
-
Two indexes cannot corrupt each other: indexing, resolving, serving and watching coordinate through a lock, and a damaged or foreign index is named as such.
-
The index file reclaims its own free space.
index,resolveandwatchgive free pages back to the file system after a write once they reach 64 MiB and 20% of the file, in short steps that never block a reader, and then checkpoint the write-ahead log.statusshows the free space and the auto-vacuum mode;index.auto_compact: falseturns it off. -
Compiler indexers recover from the two most common failures on large services: a Node indexer that runs out of heap is run again with 8 GiB, and scip-python skips package discovery when a
pyproject.tomlwithout a[project]table breaks it. A TypeScript project whosetsconfigonly points at a file its framework generates on first build (.nuxt,.svelte-kit) is indexed through a stand-in tsconfig GraphLume writes beside its own output, without running the project's build tooling. -
graphlume init --all(and--indexers, and--indexat a terminal) walks you through the compiler indexers the project's languages need before it indexes, so the first resolve already uses them. For each language with no compiler proof it says what is missing, what would be downloaded, from where and about how big, then asks:[Y/n]for a small pinned, checksum-verified indexer,[y/N]for a toolchain (the .NET SDK, Node.js, a JDK, Maven, Gradle; installed with Homebrew on macOS, otherwise the official page is printed) and for generating a C/C++compile_commands.jsonwith the repository's own CMake, make or SCons build. Without a terminal it prints the plan and installs nothing;--yesaccepts only the pinned indexers, and a repository build needs--allow-repo-build. Declined offers are remembered in the user config (accuracy.indexers.declined) andgraphlume indexers install --ask-againforgets them. A failure is reported and that language is indexed without the compiler. npm-distributed indexers install into~/.graphlume/npminstead of npm's global prefix, so an unwritable or off-PATHglobal prefix no longer stops them. -
graphlume indexers listalso lists languages whose code has no project, with a file count and what each needs: Python scripts without apyproject.toml, and C or C++ without acompile_commands.json, with the command for the build system it finds (CMake, Meson, SCons, make). A C# project says the .NET SDK comes beforescip-dotnet, and a Visual Studio solution with no C# code beneath it is no longer planned as C#. -
More compiler failures are worked around instead of lowering the proof: a
tsconfigthat extends a workspace package that is not installed, or a file a framework generates, and an inferred-tsconfig walk that stops on a dangling symbolic link, are indexed through the stand-in tsconfig. A language marker with no source files of that language (arequirements.txtin a Go repository) is reported as having nothing to read, not as a failed compiler. Identical "not installed" lines are printed once with a count, and a missing JVM build tool names the container route. -
TypeScript and JavaScript monorepo workspaces (pnpm, Yarn, npm) resolve cross-package imports without
npm install: when packages are uninstalled, a stand-in tsconfig maps sibling packages (@acme/ui) and their export subpaths directly to their source entry points and folders. -
Cargo workspaces are indexed in a single
rust-analyzer sciprun from the workspace root covering every member crate; rust-analyzer runs safely by default with build scripts and procedural macros disabled and cargo offline, while--allow-repo-buildenables them. -
C# compiler indexing pins
scip-dotnet0.2.16 with SHA-256 verification from NuGet, installed into~/.graphlume/dotnetas a default-yes offer when the .NET SDK is present. -
Ruby compiler indexing pins
scip-ruby0.5.1 with standalone SHA-256 verified binaries for macOS and Linux, indexing Ruby projects (Gemfile,*.gemspec,Rakefile) safely without executing repository code. -
Svelte component files are converted into line-aligned shadow TypeScript files so
scip-typescriptindexes their script blocks, and SCIP facts are mapped back to the original.sveltefiles; pinssvelte2tsx0.7.63. -
Guided setup offers
go mod downloadwhengo.modhas dependencies to avoid stubbed imports, andstatusreports any stubbed imports. When Docker is present, setup offers containerized Java indexing ([y/N]) with improved diagnostics for JDK version mismatches, missing Gradle wrappers, and offline dependency resolution. -
Bare root
package.jsonconfigurations where all JS/TS sources belong to subprojects or test tooling are skipped at the root, preventing empty project indexing failures. -
Non-interactive flags (
--yesand--allow-repo-build) bypass interactive terminal prompts during guided setup, enabling reliable automated and headless execution. -
Increased Tree-sitter definition query depth ceiling from 1,500 to 10,000, allowing large C and C++ header files with thousands of declarations (e.g. OpenGL
qgl.h,glext.h) to parse cleanly without hitting budget cuts. -
Optimized SCIP resolution memory retention when loading symbol tables in large multi-crate repositories.
-
scripts/compatruns GraphLume cold on a pinned corpus of public repositories, one per stack, as a release gate. -
The number of parse workers follows the machine: half the CPUs, from 4 to 8, held lower when the soft memory limit cannot hold that many.
--workersoverrides it.
MCP tools
- 42 tools with single-word names, in four profiles:
compact(one front-door tool),minimal(8, the default forserve),standard(19) andfull(42, plusestatewhen an estate is configured).graphlume tool list --profile <name>prints each. - Understanding:
context(a bounded pack for a task),explore(definition, callers, callees, routes and covering tests in one call),overview,search,symbol,definition,references,callers,callees,implementations,outline,graph. - Change safety:
impact,tests,plan,diff,blindspots,rename,patch,changes,coverage. - Structure and health:
endpoints,tables,config,trace(with waypoints),deadcode,hotspots,busfactor,owners,communities,stats. - Answers are bounded and paged, report truncation, and carry
file:lineevidence. - Editing tools check that the index is current before they write.
- Estate:
estate(fullprofile, andaction: estateon the front door) answerslinks,callersandimpactacross a multi-repository estate fromgraphlume serve --estate FILEorestate:in config: HTTP route, shared-table and Go function and method links with version warnings, every row naming its member, neverexactacross a repository boundary, members opened read-only and an unreadable one reported while the rest answer.
CLI
-
graphlume accuracy --compare <file.csv> [--label <label>]evaluates external predictions against compiler ground truth, reporting side-by-side precision, recall and F1 comparison tables and publishing them undercomparisonin--json. -
scripts/compare/sample.pysamples$N$ random functions or call sites into a CSV template for fair, repeatable cross-tool evaluation. -
graphlume setupandinitregister the server with 40+ agents and write agent guidance;uninstallandcleanremove it again and refuse to run from a home folder or an unindexed directory. - Every command takes
--json;graphlume tool call <tool> key=valueruns any MCP tool from a shell. -
rename <old> <new>renames a symbol at its definition and every resolved reference, as a dry run by default, and exits 3 when occurrences of the old name remain.movemoves a Go declaration to another file of the same package and fixes the imports. -
tourgives a reading order from the entr...