2 min lesson
Attach the file that defines done
Put this idea into your own words: "The job: you can attach precise context and leave discovery to Agent only when appropriate."
Step 1 of 2
The job: you can attach precise context and leave discovery to Agent only when appropriate. Start with this check: Every attachment has a reason. Keep it small enough to check the result yourself instead of taking the summary on trust.
Attach the file, get the real answer
0:37 · narratedRead this demo as text
- Search returns everything for two-letter queries. Before you ask, decide what rides with the question: the file the behavior lives in.
- Type @. The context menu opens. Pick the file searchFilter.ts. It lands as a teal pill inside the prompt and travels with the question.
- Now the answer cites the mechanism by line — trim on seven, the early-return on eight. Same model, same question. The attached context made it specific.
Practice next: Now run the walkthrough: attach searchFilter.ts, send the bug question, and check that the answer cites code.
Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.