What problem does it solve?
Large codebases make it hard to locate symbol definitions, discover all usages, and assess refactor impact across multiple files and languages; manual search and ad-hoc grep are slow and error-prone. GitLab Knowledge Graph (gkg) provides AST-backed indexing and a graph query layer to enable precise, IDE-like navigation and dependency analysis for AI assistants and developers.
Core Features & Use Cases
- Go-to-definition: Navigate from a call site to the exact symbol definition across the indexed project.
- Find usages / Impact analysis: List all references and call sites for a symbol before refactoring.
- Repository indexing and visualization: Build a KuzuDB-backed graph for architecture diagrams and repo maps.
- Integration for assistants: Expose MCP and HTTP endpoints so AI tools can search definitions, read implementations, and stream indexing events.
- Language support: Full cross-file support for Ruby, Java, Kotlin; partial support for Python, TypeScript, and JavaScript.
Quick Start
Index the current repository with gkg, start the gkg server, and then ask to find all usages of the symbol CreateUser across the project.