2 min lesson
Build a focused Agent prompt
Build one Agent prompt with only relevant context. Check the answer against the attached evidence.
Step 1 of 2
Write one real bug prompt. Attach the known file and the terminal output that shows the failure. State the expected result, then check the answer against the attached evidence. If you do not know the file, leave it unattached and let Agent search.
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.