Indexes a codebase into a knowledge graph of dependencies, call chains and execution flows, and serves it to AI coding agents via MCP tools.
zzet/gortex
Local code-intelligence engine that indexes multiple repositories into a knowledge graph and serves it to AI coding agents and IDEs via CLI, MCP server, and API.
- Stars
- 2,012
- Forks
- 194
- Open issues
- 194
- Last commit
- 2 days ago
What is it?
Gortex parses source code with tree-sitter and builds a persistent graph of functions, classes, call chains, HTTP routes, and cross-service contracts. The graph is stored in a local SQLite database and can span several repositories at once. AI agents query it through MCP tools, so they can fetch only the symbols and relationships they need instead of reading whole files, which the project says cuts token usage by up to 50x.
The project ships as a single static binary for macOS, Linux, and Windows and runs as a background daemon that watches the filesystem and updates the index incrementally. It includes semantic search built on an embedded GloVe model, optional LLM providers, and a web UI for graph visualization. Its `gortex init` command configures supported coding assistants such as Claude Code, Cursor, and Codex CLI.
It also covers cross-repo API contract matching for HTTP, gRPC, GraphQL, and message topics, impact analysis for planned edits, and PR review commands that flag blast radius and conflicts.
Key features
- 01Indexes code from 257 languages and grammars into a graph of symbols and call relationships
- 02Exposes 175 configurable MCP tools for AI coding agents
- 03Supports multiple repositories in one graph with cross-repo contract matching
- 04Runs locally as a single binary with a background daemon and filesystem watching
- 05Includes built-in semantic search and a web UI for graph visualization
Use cases
- Giving a coding agent context about a large monorepo without reading whole files
- Checking what breaks before changing a function shared across several services
- Tracking HTTP, gRPC, or message-topic calls between microservices
- Reviewing open pull requests for blast radius and merge conflicts
Quick start
- 1
Run the official install script for macOS or Linux
- 2
One-time machine setup (MCP, skills, slash commands)
gortex install - 3
Start the background daemon
gortex daemon start --detach - 4
Add a repository to the graph
gortex track ~/projects/myapp
Things to know
- Building from source requires Go 1.26+ and CGO enabled.
- Indexing very large repositories needs several gigabytes of memory, for example about 5 GB peak heap for the Linux kernel.
In collections
Topics
FAQ
- What is gortex?
- Local code-intelligence engine that indexes multiple repositories into a knowledge graph and serves it to AI coding agents and IDEs via CLI, MCP server, and API. Gortex parses source code with tree-sitter and builds a persistent graph of functions, classes, call chains, HTTP routes, and cross-service contracts. The graph is stored in a local SQLite database and can span several repositories at once. AI agents query it through MCP tools, so they can fetch only the symbols and relationships they need instead of reading whole files, which the project says cuts token usage by up to 50x.
- Is gortex free to use? What license does it have?
- gortex is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is gortex still maintained?
- Actively maintained. The last commit to gortex was on Nov 5, 2026.
- What can I use gortex for?
- Giving a coding agent context about a large monorepo without reading whole files Checking what breaks before changing a function shared across several services Tracking HTTP, gRPC, or message-topic calls between microservices Reviewing open pull requests for blast radius and merge conflicts
- How do I install gortex?
- Run the official install script for macOS or Linux One-time machine setup (MCP, skills, slash commands): gortex install Start the background daemon: gortex daemon start --detach Add a repository to the graph: gortex track ~/projects/myapp
- Where can I get gortex?
- The source code and installation instructions are on GitHub: https://github.com/zzet/gortex
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An MCP server that indexes code, docs and infrastructure into a local knowledge graph so AI coding agents can query structure instead of re-reading files.
A zero-dependency C++23 CLI and MCP server that gives coding agents a ranked map of a codebase and checks their edits for blast radius, tests to run and quality regressions.
Turns a codebase, its docs, schemas and PDFs into a queryable knowledge graph for AI coding assistants, built locally with tree-sitter AST parsing.
Indexes multi-language codebases into a knowledge graph so you can query, search, and edit code in plain English via an AI agent or MCP server.
Local-first MCP server that gives coding agents repo memory: symbol graph, caller lookup, blast-radius analysis, diff review and git-pinned decisions.