In this article
A workspace index enables retrieval rather than total repository attachment; evaluate the selected files, freshness, exclusions, and evidence used for the answer.
VS Code agents can combine text search, file discovery, semantic retrieval, and language intelligence to investigate a workspace. The semantic index helps locate relevant code; it does not attach the entire repository to every model request. Understanding this difference explains why a ready index can coexist with an incomplete answer and why a concrete file reference can still improve a task.
Several search mechanisms solve different problems
An exact identifier favors text or symbol-oriented search. A behavior described without its implementation name may benefit from semantic retrieval. The agent can use several mechanisms in one investigation. A good question supplies observable anchors and the intended behavior rather than demanding an unsupported complete understanding of the project. Inspect which evidence was actually opened. A search result is a candidate location, not proof that every relevant branch has been read.
Primary reference: VS Code: Build with AI.
The index source can differ by workspace
Current documentation describes semantic index sources that can involve local and remote infrastructure depending on repository hosting and account configuration. The visible indexing state helps determine availability, but it is not a universal statement that all code processing is local. Use the documented data-handling and organization settings for the actual deployment. Avoid borrowing another editor’s indexing description and applying it to VS Code simply because both products offer codebase search.
Primary reference: VS Code: How Copilot Understands Your Workspace.
Exclusions affect what a search can discover
Ignore files and editor search settings can remove content from particular search or indexing paths. A missing match can therefore reflect configuration rather than absence of an implementation. Check the relevant exclusion mechanism before broadening access. Text search, semantic indexing, and Explorer visibility do not necessarily share identical rules. A precise explanation identifies which path omitted a file and why, instead of treating every retrieval failure as model confusion.
Primary reference: VS Code: Add Context to Chat.
Fresh files still need current-state checks
Indexing can run in the background while files change. An agent may also read a summary before another edit modifies the underlying definition. Before applying a critical change, inspect the present implementation and its callers. This is a freshness check, not a reason to distrust every search result. It connects retrieval to the revision that will actually receive the patch and helps prevent a correct idea from being applied to an obsolete structure.
Evaluate a traceable answer rather than index size
Choose a question with a verifiable repository answer and inspect the selected evidence chain. Confirm the explanation in current code and relevant existing checks. A useful evaluation separates retrieval accuracy from implementation quality and model fluency. An index covering many files does not guarantee that the right few files were selected. The best outcome is a concise answer whose important claims can be traced to the actual workspace revision and its observed behavior.
Related reading: Continue vs Cline vs Aider for local coding; Reproducible inference stacks: preserving a GPU pilot’s result.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.