Cortex – Local context retrieval for AI coding agents Cortex, a new open-source tool by Daniel Blomma, provides local context retrieval for AI coding agents by indexing code, symbols, and relationships into a searchable map. It requires Node.js 20.9+ and Git, and can be installed via npm. The tool aims to improve coding agent accuracy by enabling them to search and understand repository context without reading the entire codebase. Give AI coding agents the right context from your repository. Cortex builds a local map of your code, symbols, relationships, and project rules. Coding agents query that map through the CLI instead of guessing or reading the whole repository. Your code stays on your machine. MCP is not required. Requires Node.js 20.9+ and Git. npm install --global @danielblomma/cortex-mcp cd your-project cortex init --bootstrap This indexes the repository, adds Cortex instructions to AGENTS.md , installs Git hooks, and starts the background watcher. Check the setup: cortex doctor Find relevant code. cortex search "where is authentication handled?" --json Follow relationships from a search result. cortex related