8 added · 3 changed · 5 fixed
Upgrade note (schema v15): Existing pre-0.8.0 stores require a one-time rebuild via gcx init (or gcx init --editor none for CLI-only).
Added
- Storage lifecycle & compaction commands (
gcx storage): Inspect store ownership and disk footprint withgcx storage list(--all,--json), preview and remove orphaned stores or backups withgcx storage prune, reclaim deleted local branches and stale detached snapshots withgcx storage gc, and compactgraph.kuzupayloads via atomic swap withgcx storage compact. All destructive operations are dry-run by default and require--apply. Verified 83.4–84.6% disk reclaim across 10 real repositories after 5 deleted feature branches (e.g.django676.2 → 104.1 MiB,moby852.6 → 139.2 MiB). - Branch indexing from git objects without checkout: Index any local branch directly from git objects (
a5b790e), enabling branch-aware comparisons and exact-revision PR impact workflows without mutating the working tree. - Persisted uncommitted-edit overlay checkpoint & trust readiness contract: Every query and export reports explicit index readiness (
ready,stale,missing,degraded), tracks dirty/overlay state across uncommitted edits, and refuses silent false-fresh or empty-as-safe results. Verified across live MCP and commit-path rebuild-equivalence suites. - Token-efficient progressive code search & typed question planning: Compact/full modes, structured filters, pagination, and envelope token-budget enforcement across deterministic search and graph traversal (
45/45pass across 10 repos; Hit@1 = 100%, MRR = 1.000, NDCG@10 = 0.971, File Recall = 1.000). - Portable graph exports (
gcx export): Readiness-checked, scoped exports in versioned GitCortex JSON (--format graph-json, schema v1) and Mermaid (--format mermaid) with shared exit codes anddocs/EXPORT.mdguide. - Shared cross-editor Agent Guide & bounded MCP onboarding:
gcx initinstalls a single shared guide across Claude Code, Codex CLI, Cursor, Windsurf, Copilot, and Antigravity, sends bounded server instructions on MCPinitialize, and emits bounded teaching hints with a long-path daemon socket fallback. In the 48-run unforced adoption study, installing the guide lifted voluntary graph adoption from40%to100%(16/16pass) with0false graph calls on restraint tasks. - Hardened PR blast-radius workflow (
gcx init --ci): Exact-SHA base/head indexing viaGCX_BRANCH_OVERRIDE, pinned action SHAs, read-only analysis job withpersist-credentials: false, and same-repo sticky PR comments. - Benchmark harness & release evidence archive: Added Codex CLI adapters across deterministic, paired-agent, competitor (Graphify
0.9.44, CodeGraph1.5.0), unforced adoption, and continuous-coding lanes, archived with SHA-256 provenance underdocs/benchmarks/v0.8.0/.
Changed
- Up to >118× faster cold full indexing & sub-second incremental updates: Reconciling fresh full-index edges in memory and bulk-copying reference facts cut
ripgrepcold indexing from22.07s → 1.68s(13.1× faster) anddjango(3,049 files, 48.5k nodes, 267.5k edges) from>600stimeout to5.06s(>118× faster). Fast incremental reference reconciliation and in-place surviving node updates brought single-filegcx hookupdates to a 821 ms median across 10 real repos. - Readable
gcx viztypography & computed-style tests: Tokenized typography across the Explorer shell, rail, header, graph labels, and detail panels with automated computed-style regression gates. - Redesigned GitHub Pages & collapsible release log: Unified navigation bar with live GitHub star badge, six light-theme self-hosted SVG benchmark charts with plain-English reader's guides, a 30-second 1080p light-theme realistic workflow demo, and a collapsible changelog with only the latest release expanded by default.
Fixed
- Cross-file evidence diversity in
find_callersandsymbol_context: Diversified returned relation evidence across files so large hub symbols no longer starve callers from other modules. - Python class instantiation edges & envelope token budgets: Fixed missing Python constructor/instantiation call edges and strictly enforced MCP response token budgets.
- Truthful startup, status, and editor diagnostics:
gcx servesurfaces the actual startup cause instead of opaqueCONNECTION_CLOSEDfailures;gcx status,gcx doctor, andgcx blast-radiusaccurately resolve symbolic refs, distinguish commit currency from working-tree edits, explain busy-graph recovery steps, and diagnose installed editor registrations reliably. gcx vizasset and manifest loading: Fixed font-route registration, stuck"Reading graph manifest..."state, and false"No indexed symbols"empty-state display.- Security advisories & dependency hygiene: Updated
url(RUSTSEC-2026-0592),minimatch,eslint,typescript-eslint, andpytest, added CodeQL scanning across Rust/JS/TS/Python/Actions, and added advisory-ignore drift checks.
3 fixed · 2 changed
Fixed
gcx init --editor antigravitynever registered the MCP server without--global-editor-config, leaving the assistant with no tool access by default even though skills, rules, and hooks were written. Antigravity's real customization format is a self-contained plugin bundle (.agents/plugins/gitcortex/{plugin.json,mcp_config.json,hooks.json,rules/AGENTS.md,skills/}), confirmed against theagyCLI's own embedded docs; MCP config is now written project-locally and unconditionally.gcx deinitcleans up the new bundle. Global config (~/.antigravity/mcp.json,~/.gemini/config/mcp_config.jsonfor the standaloneagyCLI) remains opt-in behind--global-editor-config.- The interactive editor prompt asked every single
gcx initrun, including runs that only rebuild the graph store after a schema bump. The choice (including "none") is now persisted per repo per machine, so it only asks once; add an assistant later withgcx init --editor <name>. - The prompt only let you pick one assistant, even though using more than one at once (e.g. Claude Code and Antigravity together) is common. Switched from single-select to a checkbox multi-select (space to toggle, enter to confirm).
Changed
gcx initwith no--editorin a real terminal now shows a[GCX]banner and a checkbox editor picker instead of a typed free-text prompt; a spinner covers the initial index (previously a silent terminal for several seconds); the closing summary is colorized. All of it respects--color never/NO_COLORlike the rest of the CLI.- README and GitHub Pages install instructions updated to describe the one-time interactive setup instead of "editor config is a separate opt-in step."
3 fixed · 6 added · 2 performance
Fixed
- Claude Code skills were never actually discoverable.
gcx init --editor claudewrote them to.claude/skills/gcx/<name>.md, but Claude Code only discovers skills at.claude/skills/<name>/SKILL.mdwith YAML frontmatter — none of the four shipped skills (exploring, debugging, impact-analysis, refactoring) were ever picked up. Fixed, and the same corrected skill set is now shared with Antigravity's onboarding (see Added). - Bulk indexing crashed on files containing multiline quoted string literals (e.g. TypeScript template literals, multi-line docstrings) — KuzuDB's
COPYdoesn't default its CSVESCAPEcharacter to match our RFC-4180 quoting, socsv_quote()'s doubled-quote escaping was rejected on the first full index of any repo with this kind of source. - Risk labels (
find_callers,blast-radius, and the viz UI) didn't distinguish call-graph confidence. A symbol with 1000+ low-confidence "inferred" callers (common on generic method names likefilterorgetin large repos) and one with the same count of high-confidence "extracted" callers both reported the same risk band — misleadingly inflating risk on exactly the kind of common, overloaded names most likely to trip it. Risk is now confidence-weighted (extracted × 1.0, resolved × 0.6, inferred × 0.3) at all three call sites, kept in sync.
Added
- Antigravity now gets full onboarding, not just an MCP config entry:
.agents/rules/AGENTS.md, four.agents/skills/<name>/SKILL.mdskills, and a.agents/hooks.jsonPreToolUse hook that injects call-graph context on file reads — matching what Claude Code already had. - Codex gets a PreToolUse hook (
.codex/hooks.json) doing the same file-read context injection, alongside its existingAGENTS.mdand MCP config. gcx blast-radiusreports per-item risk for every affected caller, not just one aggregate risk band for the whole change.- Express.js route detection:
app.get()/app.post()-style registrations are now indexed asRoutenodes linked to their handlers via aHandledByedge, surfaced throughast_search. - Java: enum and record annotations are now extracted;
static finalfields are indexed asConstantnodes (previously invisible to the graph). - Release artifacts are now signed with cosign (keyless).
Performance
- The viz UI's graph filter/decode pipeline moved off the main thread into a Web Worker, reusing one worker instance for the component's lifetime instead of re-instantiating per filter toggle.
- Route detection's AST walk is now skipped entirely for files with no Express-style verb-call patterns, avoiding a redundant full-file traversal on non-route files.
1 fixed
Fixed
- Every CLI command defaulted
--branch/--baseto the literal string"main", hardcoded at the clap arg level, instead of detecting the repo's actual current branch. On any repo whose default branch is named something else (master,trunk,develop, ...) — extremely common —gcx viz,gcx status,gcx query *, andgcx blast-radiusall silently queried a branch with zero data and reported empty results, even immediately after a successfulgcx init. The MCP server already did this correctly (detect_current_branch); the CLI's 16 affected flags now use the same git-detected default. Reported by a user who rangcx initin a fresh project and got "No indexed symbols on this branch" ingcx viz; reproduced (repo onmaster, indexed fine, viz's/api/branchesreportedactive: "main"regardless) and verified fixed before releasing.
1 fixed
Fixed
gcx viz(installed via pip) threw a Python traceback on Ctrl-C instead of exiting cleanly. The PyPI wrapper'ssubprocess.calldidn't catchKeyboardInterrupt; the Rust binary itself already exits fine on SIGINT. Now exits quietly at the conventional 128+SIGINT code. Reported by a user hitting it in a fresh, unindexed project.
2 security
Security
dompurifyXSS advisory (GHSA-55q2-fjhq-7xh7, medium severity): pinned via an npm override to 3.4.13 — the transitive dependency (through@cosmograph/react) was on the vulnerable 3.4.12. Requires a non-defaultIN_PLACE+ element-removal-hook configuration to exploit; viz doesn't use that pattern, but patched regardless.- Two unrelated high-severity
npm auditfindings (brace-expansionDoS,nanoidDoS) resolved vianpm audit fix.
2 fixed · 4 added
Release driven by a full 3-client (Codex, Claude Code, Agy/Antigravity) live-agent benchmark against 15 new harder task types (deep blast-radius, cross-file architecture, refactor-safety) across 5 pinned repos. Measured token savings: 3.27x (Codex), 3.26x (Claude Code), 1.89x (Agy), with quality held or improved on nearly every task.
Fixed
symbol_context(MCP + CLI) had no ambiguity handling. A common short name (e.g.beginArray, matching 4 methods in one benchmark repo) could be silently resolved to the wrong symbol. It now goes through the sameresolve_symbolcandidate-surfacing path asfind_callers/get_subgraph, and its response is built fromget_subgraph_by_idso callers/callees/ used_by are scoped to the exact resolved node rather than by name.- CLI
symbol-context/trace-pathgained--format agent-json --budget-tokens, matching every othergcx querysubcommand.
Added
agy(Antigravity CLI) MCP handshake compatibility, plusgcx init/deinit/doctorsupport for its config path (shipped as #66/#67, first release to include it).docs/benchmarks.html: real, measured benchmark numbers on the public site.- Benchmark harness: a working
agyclient, 15 new task definitions (impact/ architecture/refactor x 5 repos), and per-arm failure isolation so one slow or hung client call no longer aborts an entire run. - Viz: the repository name is now shown in the header instead of a generic "Local code atlas" label; a loading indicator now covers Cosmograph's multi-second init so a slow first paint doesn't look like a broken canvas.
3 changed
Pure refactor release. No behaviour change from 0.6.2.
Changed
tools.rssplit intoparams,helpers, andgit_helpersmodules — the MCP tool surface had outgrown a single file.- Canonical
FromStrimplementations forNodeKindandVisibilitymoved intogitcortex-core. - Versions bumped across
Cargo.toml, the npm packages, and the Python sdist.
3 fixed · 1 added
Released from main without its own tag; recorded here for completeness.
Fixed
- Section nodes no longer pollute graph traversal. A README heading sharing a name with a class (for example a
Gsonsection) dragged 2,000+ extra nodes intoget_subgraphresponses and triggered 20+ turn exploration spirals.get_subgraphnow stripsSectionnodes from both traversal and seed resolution, andlookup_symbolfilters them from results. - Definitive stop-searching responses. A missing
get_subgraphseed returned an empty result, which models read as "try again".get_subgraphandfind_callersnow return an explicit terminal message, so a leaf function no longer costs 20–33 turns of exploration. - Benchmark symbol selection.
pick_symbols()used a regex that never matched the markdown tour format, so every session silently fell back to the symbolsMainandinit, which exist in none of the benchmark repos. This was the root cause of benchmark regressions previously attributed to product changes.
Added
- Pre-traction versioning rule in
RELEASING.md.
7 added · 3 changed · 2 fixed
Added
- Structural Markdown ingestion (no LLM).
.md/.markdownfiles are now indexed: headings becomeSectionnodes (nested viaContainsedges), and inline code-spans/link text matching identifier shape produceReferencesedges from the section to the referenced code symbol. Cross-language by design — a README can reference any language's symbols. SCHEMA_VERSION bumped to 12 (triggers a one-time full re-index). find_god_nodesMCP tool +gcx query find-god-nodesCLI. Surfaces high-fan-in hub symbols ranked by inboundCallsin-degree, deterministic across re-runs. Refactors the existingtour.rscentrality into a sharedcentrality.rshelper.find_clustersMCP tool +gcx query find-clustersCLI. Synchronous label-propagation community detection overContains+Callsundirected adjacency. Deterministic (fixed visiting order by qualified_name, lowest- qualified_name tie-break). Members per cluster capped at 25;sizestays honest. Zero new dependencies, no LLM calls.- Viz accessibility.
F/Spacekeyboard shortcuts now wired (were documented but not implemented). Icon-only canvas-control buttons havearia-label.SearchPaletteuses a proper ARIA combobox pattern (role=combobox, role=listbox, role=option, aria-selected).Inspectortabs have role=tablist/tab/tabpanel/aria-selected; depth selector has role=radiogroup/radio/aria-checked.CosmosCanvashas ansr-onlydescription pointing screen-reader users to the search palette. - Hub-node overlay in
gcx viz. PressG(or click the Hubs button in the header) to highlight high-fan-in symbols in cyan. Powered by a new/api/god_nodesendpoint that computesCallsin-degree server-side. Pairs with thefind_god_nodesMCP tool — both expose the same centrality analysis, one for AI assistants, one for visual exploration. - pip-first install path. README reordered — pip/pipx/uv now leads the Installation section ahead of binary downloads. Infrastructure unchanged.
- Windows (via WSL2) documentation. README now clearly states that native Windows is blocked (KuzuDB MSVC linker bug, upstream archived), and that WSL2 + the Linux binary is the supported Windows path today.
Changed
NodeKind::SectionandEdgeKind::Referencesadded to the graph schema.sectioncolor in the viz: Catppuccin pink (#f5c2e7).--color-text-dimin the viz dark theme corrected from#5a5a72(~3:1 WCAG AA fail) to#7e7e99(~5.1:1, passes WCAG AA).- Dead
.gitcortex/config.tomldocumentation removed from README — the file was documented but never parsed anywhere in the codebase.
Fixed
- HTML viz export XSS.
gcx viz --format htmlembedded graph JSON into a<script>block without escaping</sequences. A node name or file path from an untrusted cloned repo containing</script>would break out and inject HTML/JS into the exported file when opened in a browser. Fixed with a one-line</→<\/escape. Regression tests added for this and the Cypher/DOT/SVG/GraphML export paths (all already correctly escaped). branch_escinbuild_htmlupgraded from ad-hoc"escaping to a full HTML-safe escape via the existingsvg_escapehelper (defense-in-depth).
2 fixed · 3 changed
Fixed
- fastembed cache leak (P0): model weights (
.fastembed_cache/, ~23 MB) were written into the developer's repo root on everygcx serve. Cache now lives at$XDG_DATA_HOME/gitcortex/models— fully machine-local, invisible to developers. Added.fastembed_cache/to.gitignoreand.gitcortex/ignoreas a backstop. - Semantic index version check: format version was silently ignored on load, so changing the node text representation had no effect. Version mismatches now force a clean rebuild. Format version bumped to 2.
Changed
- Richer semantic embeddings:
node_textnow appends identifier-tokenised words (CamelCase/snake_case split into lowercase tokens) alongside the qualified name and signature. NL queries like "validate token" now matchvalidate_tokenwithout relying on the model to unsplit glued identifiers. - Scaled semantic scoring: semantic hits are scored by actual cosine similarity mapped to
[40‥70]instead of a fixed 45. A cosine-0.95 hit ranks near a prefix match; a cosine-0.51 hit ranks below token matches — proportional confidence. - Dedup by node ID: semantic hits were previously deduplicated by symbol name, silently dropping same-named symbols from different modules. Dedup is now by qualified name, so all variants surface.
5 added · 4 changed · 3 fixed
Added
- 7 new MCP tools (15 → 22):
graph_stats(per-kind node/edge counts),ast_search(structural filter by kind/async/visibility/complexity/annotation),type_hierarchy(supertypes + subtypes),find_importers,find_type_usages,module_dependencies, andget_call_sites(caller + exact call line). - Semantic search — local embeddings (AllMiniLM-L6-v2 via fastembed), merged into
search_codewith graceful text-only fallback. - Richer graph data: cyclomatic complexity (all 5 languages), decorator/annotation metadata (queryable even for external decorators), exact call-site lines, and edge confidence (extracted vs inferred).
- Configurable response token budget (
GCX_RESPONSE_BUDGET, default 2000) — every list tool truncates to fit, so a high-fan-out symbol never out-costs grep. - No-seed
start_tournow emits a component-level architecture summary (files grouped by directory, key symbols withfile:line, cross-component deps).
Changed
- Search rewrite: CamelCase/snake_case tokenisation, token-overlap scoring, Levenshtein typo tolerance, revised ranking ladder (exact > prefix > semantic > substring).
- Rust files now get a file-level module node (consistent with the other 4 languages) so imports attach to a real node.
- Schema version 6 → 11 (auto-wipes + re-indexes on first run).
- Honest benchmark methodology: median-of-N with rate-limit retries, throttling, and errored-session exclusion. Reported result is a net +7.7 % token saving (geomean 1.06×), with
search_codeat 1.30× and ~half the turns of grep — replacing earlier single-run numbers that were too noisy.
Fixed
- Rust
Importsedges were silently dropped (placeholder source id → dangling edge); they now attach to the file module node and persist. - Search handled neither space-separated multi-token queries nor typos.
- Semantic search hits were resolved by name instead of id, dropping every hit.
2 added · 2 fixed · 1 changed
Added
- New
gcx viz --formattargets.htmlwrites a self-contained vis-network page that opens offline and can be shared or embedded in docs;svgwrites a static kind-grouped concentric layout for pasting into Markdown, PRs, and issues;graphmlimports into Gephi, yEd, and Cytoscape;cypheremits Neo4j bulkCREATEstatements. The existingweb(Cosmograph WebGL) anddot(Graphviz) formats are unchanged. - Token-savings benchmark harness asking seven realistic developer questions per repository.
Fixed
- TypeScript and Go interfaces are
NodeKind::Interface, notTrait. Rust keepsTrait. The store'sdeferred_usesCypher filter matches theinterfacekind, and tour scoring ranksInterfacein the same tier asTrait. - Java nested records are indexed —
visit_record_nestednow runs in both class and nested-class bodies.
Changed
- PyPI and npm publishing auto-trigger from the release workflow, using
manylinux2014platform tags for Linux wheels.
6 added · 3 changed · 3 fixed
Added
- Discovery surface:
gcx query wiki(markdown symbol page),search(ranked fuzzy), andtour(centrality-ranked or seeded codebase walk), exposed as MCP tools (wiki_symbol,search_code,start_tour) and slash commands. - Two more languages: Go and Java parsers (now Rust, Python, TS/JS, Go, Java) with a documented coverage matrix in the README.
- Cosmograph visualizer (
gcx viz) — GPU graph viewer with search, inspector, density modes, branch-diff overlay; Host-header allowlist guards against DNS rebinding. gcx export --format json— committable, CI-consumable symbols+edges.gcx export --claude-md— idempotent top-symbol table injected into CLAUDE.md for zero-tool-call context.DefinitionText(signature, body, doc-comment, byte range) captured per node.
Changed
- Full index ~100× faster — CSV
COPYbulk load, O(E) edge dedup, and a call-resolution fan-out cap. Django (520k LOC): 413s → ~4s. - Symbol resolution is kind-ranked (a type wins over a same-named method/file), so
wiki <Type>resolves correctly on Go/Java. - Schema version bumped to 6 (auto-wipes + re-indexes on first run).
Fixed
- MCP server stayed up only for the
initializeresponse (missing.waiting()) — all subsequent tool calls now work. - Multi-line docstrings collapsed in storage (Kuzu escape round-trip).
- TypeScript visibility now reflects
export; Python captures all module-level bindings (not just ALL_CAPS); Javafind-implementorsresolves genericextends Foo<T>.
Distribution
- Published to crates.io (6 crates), npm, and PyPI on tag; pre-built binaries for macOS (arm64/x86_64) and Linux (x86_64/aarch64). Windows dropped (KuzuDB/MSVC link incompatibility). > 0.2.x was an internal iteration line; its changes are folded into 0.3.0.
1 fixed
1 changed
2 added · 3 changed
Added
- MCP depth.
find_callerstakes adepthparameter (1–5) for multi-hop BFS call-graph traversal, andlookup_symboltakesfuzzyfor substring matching. Two new tools:contextreturns definition, callers, callees, and used-by in one call;detect_changesmaps a staged orHEADdiff to the affected symbols and a risk assessment. - Language parity — every parser now emits
Uses,Implements, andImportsedges. Python gains type annotations, base-classImplements, import statements, and decorators. TypeScript/JavaScript gainextends/implementsclauses, type annotations, named imports, and decorators. Go gains parameter and return types, structural interface assertions, import declarations, and interface method signatures. Java is a new parser covering classes, interfaces, enums, records,extendsandimplements, field types, annotations, and imports.
Changed
- Published crate renamed from
gitcortex-mcptogitcortex. - Crate descriptions and keywords reworked for crates.io discoverability.
Cargo.lockand the generatedcontext.mdare tracked; local Claude settings are ignored.
22 features
Initial release.
Features
Incremental indexing
- tree-sitter AST parsing for Rust, TypeScript, Python, and Go
- Indexes only changed files on every commit — <500ms on typical diffs
- Branch-namespaced graph: switching branches instantly gives you that branch's graph Graph schema
- Node kinds: File, Folder, Module, Struct, Enum, Trait, TypeAlias, Function, Method, Constant, Macro
- Edge kinds: Contains, Calls, Implements, Uses, Imports
- Cross-file edge resolution for all edge kinds Git hooks (drift-proof)
post-commit,post-merge,post-rewrite,post-checkoutinstalled bygcx init- Hook prints a live graph summary after each commit CLI commands
gcx init— install hooks, run initial index, register MCP server globallygcx hook— incremental update triggered by git hooksgcx serve— MCP server on stdiogcx query— one-shot CLI queries (lookup-symbol, find-callers, list-definitions)gcx viz— interactive force-directed graph in the browser; DOT exportgcx blast-radius— BFS transitive caller risk report (text / github-comment / json)gcx export— writes.gitcortex/context.mdcodebase mapgcx status— node and edge counts by kindgcx clean— wipe graph store for fresh re-index MCP server- 4 tools:
lookup_symbol,find_callers,list_definitions,branch_diff_graph - Registered globally in
~/.claude.json— works across all Claude Code sessions - 4 agent skills and 4 slash commands installed into
.claude/CI integration gcx init --ciwrites.github/workflows/gcx-blast-radius.yml- Posts blast-radius report as a sticky PR comment on every pull request