Context mentions is an AI UX pattern where typing "@" in a chat input opens an autocomplete menu for referencing files, documents, people, or other agents. It gives users an explicit, discoverable way to pull specific context into a prompt instead of relying on the model to infer what they mean.
Perfect for AI coding assistants, enterprise knowledge management tools, and collaborative platforms where users need to reference specific files or documents in conversations.
| Product | Implementation |
|---|---|
| Cursor | @ mentions files, folders, docs, and past chats to ground code generation in real context. |
| Slack | @ mentions people and channels, with autocomplete over the workspace directory. |
| Notion AI | @ references pages and people inline, feeding page content into AI actions. |
| Linear | @ mentions issues and teammates directly inside comments and AI-assisted fields. |
Copy this prompt to generate a production-ready implementation in Cursor, Claude Code, Lovable, or any AI coding agent.
Generate a production-ready implementation of the "Context Mentions" AI interface design pattern.
Pattern Definition:Typing "@" opens an autocomplete menu of files, documents, people, or agents that can be inserted as explicit context for the AI, instead of leaving the model to guess what the user is referring to from plain text alone.
Explicit mentions are unambiguous and let the product show exactly what content was attached as a removable chip. Free-text descriptions rely on the model matching the right file, which fails silently when names are similar or context is stale.
Yes. Many products extend mentions to people, other conversations, agents, issues, or database records, using the same trigger and autocomplete pattern so the interaction stays consistent across context types.
Switch between AI capabilities within composer
Adding context sources via menu with removable chips
Switch between text, voice, and dictation modes
Suggested next turns
Cmd+K for AI
Quick actions via /