2 min lesson
Practice codebase search
Practice codebase search on one real case. Open the returned files and confirm a known reference.
Step 1 of 2
Ask one focused codebase question. Search a known symbol directly, or describe the behavior when you do not know its name. Open the files Agent found, confirm the references with exact grep and narrow the directory if the result is too broad.
Index ready — Exact Search, then @Codebase cites the file
0:40 · narratedRead this demo as text
- Open Cursor Settings, Indexing and Docs. Instant Grep is on — Cursor indexes this repo locally. There is no separate Resync percentage here; the toggle is the control.
- Exact Search for filterRecentSearches. Three hits in two files — the index is ready enough to grep.
- Attach Codebase, then ask where the helper lives. Semantic context rides with the question.
- The answer cites recentSearches.ts. Same model — the indexed codebase made the citation specific.
Practice next: Now try it: check Indexing & Docs, Exact-Search a symbol, attach @Codebase, and confirm the citation.
Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.