Skip to lesson
Exit
At-Mentions and Context Types1 / 2

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 · narrated
Read this demo as text
  1. Search returns everything for two-letter queries. Before you ask, decide what rides with the question: the file the behavior lives in.
  2. Type @. The context menu opens. Pick the file searchFilter.ts. It lands as a teal pill inside the prompt and travels with the question.
  3. 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.
Attach the file that defines done — the answer cites exact lines because the context scoped it.

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.