Skip to content

Releases

GraphLume v1.0.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 14:37

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 every serve answer.

  • Reads 206 languages in four tiers (typed, resolved, parsed, text only), listed by graphlume languages. The language of a file follows its content, shebang and index.language_overrides, not only its extension.

  • Every edge carries a confidence tier: exact (a compiler proved it), high, medium or low. Only a compiler may claim exact; this is enforced in the code and the database schema.

  • Go is type-checked out of the box. graphlume indexers install adds pinned SCIP compiler indexers for other languages, and graphlume scip import loads a .scip file; resolve also 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 INSTANTIATES edges, 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 path and line that 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, resolve and watch give 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. status shows the free space and the auto-vacuum mode; index.auto_compact: false turns 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.toml without a [project] table breaks it. A TypeScript project whose tsconfig only 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 --index at 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.json with the repository's own CMake, make or SCons build. Without a terminal it prints the plan and installs nothing; --yes accepts only the pinned indexers, and a repository build needs --allow-repo-build. Declined offers are remembered in the user config (accuracy.indexers.declined) and graphlume indexers install --ask-again forgets them. A failure is reported and that language is indexed without the compiler. npm-distributed indexers install into ~/.graphlume/npm instead of npm's global prefix, so an unwritable or off-PATH global prefix no longer stops them.

  • graphlume indexers list also lists languages whose code has no project, with a file count and what each needs: Python scripts without a pyproject.toml, and C or C++ without a compile_commands.json, with the command for the build system it finds (CMake, Meson, SCons, make). A C# project says the .NET SDK comes before scip-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 tsconfig that 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 (a requirements.txt in 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 scip run 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-build enables them.

  • C# compiler indexing pins scip-dotnet 0.2.16 with SHA-256 verification from NuGet, installed into ~/.graphlume/dotnet as a default-yes offer when the .NET SDK is present.

  • Ruby compiler indexing pins scip-ruby 0.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-typescript indexes their script blocks, and SCIP facts are mapped back to the original .svelte files; pins svelte2tsx 0.7.63.

  • Guided setup offers go mod download when go.mod has dependencies to avoid stubbed imports, and status reports 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.json configurations where all JS/TS sources belong to subprojects or test tooling are skipped at the root, preventing empty project indexing failures.

  • Non-interactive flags (--yes and --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/compat runs 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. --workers overrides it.

MCP tools

  • 42 tools with single-word names, in four profiles: compact (one front-door tool), minimal (8, the default for serve), standard (19) and full (42, plus estate when 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:line evidence.
  • Editing tools check that the index is current before they write.
  • Estate: estate (full profile, and action: estate on the front door) answers links, callers and impact across a multi-repository estate from graphlume serve --estate FILE or estate: in config: HTTP route, shared-table and Go function and method links with version warnings, every row naming its member, never exact across 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 under comparison in --json.
  • scripts/compare/sample.py samples $N$ random functions or call sites into a CSV template for fair, repeatable cross-tool evaluation.
  • graphlume setup and init register the server with 40+ agents and write agent guidance; uninstall and clean remove it again and refuse to run from a home folder or an unindexed directory.
  • Every command takes --json; graphlume tool call <tool> key=value runs 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. move moves a Go declaration to another file of the same package and fixes the imports.
  • tour gives a reading order from the entr...
Read more