How Cursor codebase indexing actually works
Cursor’s indexer is a RAG pipeline: tree-sitter splits code at logical boundaries, embeddings land in Turbopuffer, and Merkle trees keep the index in sync. Here is how the pieces fit together, and what actually leaves your machine.