---
answer: direct
beat: ai-technology
source: 1 article · updated: November 17, 2026
---

What happens when the server needs the actual source code, not just its embedding?

The embedding is enough to find which chunk of code is relevant to a query, but not enough to answer a question about its contents. When the server determines a specific chunk (identified only by an obfuscated ID) is needed, it requests that chunk from the client, which sends the corresponding source over an encrypted channel. The server decrypts it for that one request and discards it again afterward — the code exists on the server only for the duration of that specific operation.

Answered in

How Cursor Indexes Your Entire Codebase Without Ever Storing Your Code

Cursor's semantic search runs on embeddings, not source. The server never persists a line, and a Merkle tree keeps the index in sync as you type.

Crashtech Editorial November 17, 2026 How AI Actually Works

Read the full analysis

Other questions this article answers

More how ai actually works questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the How AI Actually Works beat.