@-Mentions
A mechanism in AI programming tools for precisely injecting context. By typing the @ symbol in the chat box, users can designate objects such as files, folders, terminals or branch diffs, focusing the agent on a specific scope instead of relying on autonomous retrieval.
Timeline (last 90 days)
In Cursor, after typing @ and specifying a single file (such as @auth.ts), the Agent will only work around this file.
Cursor's @-Mentions are essentially context injection, directly embedding the content of the referenced object into the prompt sent to the model, existing as high-priority context.
In addition to files and folders, Cursor's @-Mentions also support referencing terminal output and branch differences.
When referencing a folder, the contents of the files in the directory are injected into the context as a whole, and the larger the referenced directory, the more tokens are injected.
The criterion for deciding whether to use @-Mentions for manual specification is: whether you can say roughly which file or module the problem is in; if you can, use @ to narrow the scope, and if you cannot, let the Agent search freely.
All Facts (5)
In Cursor, after typing @ and specifying a single file (such as @auth.ts), the Agent will only work around this file.
50%UnverifiedCursor's @-Mentions are essentially context injection, directly embedding the content of the referenced object into the prompt sent to the model, existing as high-priority context.
50%UnverifiedIn addition to files and folders, Cursor's @-Mentions also support referencing terminal output and branch differences.
50%UnverifiedWhen referencing a folder, the contents of the files in the directory are injected into the context as a whole, and the larger the referenced directory, the more tokens are injected.
50%UnverifiedThe criterion for deciding whether to use @-Mentions for manual specification is: whether you can say roughly which file or module the problem is in; if you can, use @ to narrow the scope, and if you cannot, let the Agent search freely.
50%