Cortex

•

Provides local code intelligence for AI agents by indexing repositories into a queryable call graph, offering significant token reduction and advanced static analysis.

Cortex delivers local code intelligence specifically designed for AI coding agents. It efficiently indexes any code repository into a SQLite call graph, enabling queries over the Model Context Protocol (MCP) and drastically cutting down token usage for structural code questions. As a single Rust binary with zero dependencies, it supports 29 programming languages and exposes 32 MCP tools, offering a robust suite of features including advanced static analysis, security reporting, cross-repository federation, and interactive code visualizations, all operable completely offline.

主要功能

011 GitHub stars
02Sub-second incremental re-indexing using native OS file watchers.
03Multi-repo federation for querying and unifying graphs across multiple codebases.
04Local code intelligence for 29 languages via tree-sitter parsing.
05Advanced static analysis, including taint flow analysis, OWASP Top 10 detection, and SBOM generation.
06Offline operation as a single, zero-dependency Rust binary, compatible with Linux, macOS, and Windows.

使用案例

01Performing local security analysis, including detecting taint flows and OWASP patterns within a repository.
02Empowering AI coding agents with efficient, token-optimized context for understanding codebases.
03Analyzing codebases for quality metrics, hotspots, coverage gaps, and structural changes between branches.