Repository navigation
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 entry points;communitiesuses Leiden clustering and ranks central files by PageRank;packwrites the repository as one XML, Markdown or JSON prompt;minimize-diffstrips noise from a diff. -
sbomwrites CycloneDX 1.5 for declared dependencies, andvulns --advisories FILEchecks them against OSV records you supply. Nothing is downloaded. -
arch checkandarch adrcheck architecture rules and read decision records. -
doctorverifies an index,index exportandindex pullshare an index built in CI, andservestays alive on a project with no index and answers each call with what to do.
Portal
graphlume uiis a local, read-only, loopback-only web portal. It has six sections (Home, Map, Explore, Change, Health, Agents) and a page for each function, type, file, route and table.- A Map workbench with six views: directories, files and functions; impact rings; a dependency matrix with cycles marked; a risk treemap; call flow from an entry point; and file communities. It also has Trace A to B, a rename plan gated on reach and tests, and Context for a task. An explorer tree beside the canvas and a status bar keep the reader oriented.
- The Map, the Matrix and the explorer read file rollups the index keeps (
file_edges: edges summed per source file, target file, kind and confidence;file_symbols: definitions per file), so every level of a 27,000-file monorepo answers well within the graph tool's 3-second limit.index,resolve,scip importandwatchkeep them current, and thegraphtool can query them too. - Every figure is a call to the same tools an agent uses under
/api/v1. Nothing is computed from data a tool did not return, and a cap on an answer is named on screen. - Search doubles as a jump list,
?lists every keyboard shortcut, and long pages open with an "On this page" row. The header shows the index revision and whether HEAD has moved since it was built. Light and dark themes use Google's palette and pass WCAG AA contrast, and the page loads nothing from another origin. - A VS Code extension in
editors/vscodeshows callers, impact, tests and implementations for the symbol under the cursor, with each row's confidence tier and the tool's own caveats.
Multi-repo
graphlume systemlinks many repositories into one graph: HTTP clients to the routes they call, and services to the tables they share.system contractslists calls whose method or path matches no route.- Go calls are stitched across repositories when one member imports a Go module another member defines.
system callersandsystem impactwalk dependents across members with the weakest confidence on each path. A link across repositories is neverexact. - Go method calls are followed across members too: a receiver declared as another module's type links at
high; a typed package variable, a local initialised from a constructor of the provider's type, interface methods and methods promoted through embedding link atmedium. Reassigned locals, untyped variables, chains, fields and third-package types are counted by reason, never guessed. workspace detectfinds services in a monorepo or a folder of repos.workspace syncandworkspace links <service>keep a persistent link database in.graphlume/workspace.dband mark a link stale when either side is re-indexed.- The project registry keeps one entry per canonical root, writes atomically and prunes projects whose folder is gone.
CI & policy
pr-impactturns changed lines into symbols, callers and tests as a Markdown PR comment.ci checkreports blast radius and architecture rules as Markdown or SARIF 2.1.0.policy checkruns rules from apolicy:block in.graphlume.yml:max_blast_radius,no_new_cycles,architectureandcontracts, each withseverity: error|warning. It exits 2 on an error-severity violation and writes text, JSON or SARIF.policy explainlists the rules.- A composite GitHub Action (
action.yml) runs index, SCIP import, PR impact, SARIF and a sticky comment, and can upload the index as the artifactgraphlume-index-<commit>. serve --httpoffers MCP Streamable HTTP and a REST API with OpenAPI 3.1.--tokens-fileaccepts named tokens with a scope, an expiry and a role (viewer,editor,admin); a tool outside a token's scope is answered like one that does not exist, and an audit log names the token.index pulldownloads the index CI built for a commit with your ownghlogin and installs it only after checking its manifest, checksum, schema and integrity.
Packaging
- Static, CGO-free binaries for macOS (arm64, amd64, universal), Linux (amd64, arm64) and Windows (amd64), with
install.shandinstall.ps1. Optional cgo tree-sitter builds exist for Linux. - A
go installpath and a static, non-root container image on GHCR, with packaging prepared for Homebrew, Scoop and winget. The release job renders the Homebrew formula from the release'sSHA256SUMS. - MCP bundles (
.mcpb) for Claude Desktop, an MCP registry entry (server.json) and a Smithery configuration. - Releases are signed with Sigstore and carry build provenance attestations and CycloneDX SBOMs; third-party CI actions are pinned to a commit.
- Documentation covers the CLI, the MCP tools, the REST protocols, the portal, accuracy and benchmark records, security and troubleshooting, with
llms.txtfor agents.