[November 30, 2026]
Cursor
Scope @ mentions: with repo rules enabled
Attach src/handlers/blog.rs and the template you care about, not @codebase first. Put always-on constraints in .cursor/rules or AGENTS.md.
────────────────────────────────────────────────────────
Scope @ mentions: with repo rules enabled
Tip: Two files beat the whole tree
Attach src/handlers/blog.rs and the template you care about, not @codebase first. Put always-on constraints in .cursor/rules or AGENTS.md.
@src/handlers/blog.rs @templates/base.html
Gotcha: Triple-attaching the same file (with repo rules enabled)
Open tab plus @ plus retrieval duplicates the file and wastes the window. A 20k rule file will bury the one footgun; keep rules short.
@blog.rs plus open tab plus search hit
Source: https://docs.cursor.com/agent/overview
────────────────────────────────────────────────────────
<-- back to posts