TLDR Dev · ARTICLES & TUTORIALS

SECURELY INDEXING LARGE CODEBASES

cursor.com6 min read

Summary from the TLDR Dev newsletter

Semantic search improves agent performance, but indexing large codebases traditionally takes hours. Cursor addresses this by reusing existing codebase indexes from teammates, using the high similarity often found within an organization's repositories. This secure reuse is enabled by similarity hashes to identify the best index to copy, and Merkle tree-based "content proofs" which make sure users only access code they already possess.