
@ in the chat input, Cline shows a menu of available mention types. These mentions let you reference files, folders, problems, terminal output, git changes, and even web content directly in your conversations.
Available @ Mentions
Cline supports several types of @ mentions, each designed to bring different kinds of context into your conversations:File Mentions
Reference any file in your workspace with 
@/path/to/file. Cline sees the complete file content, including imports, related
functions, and surrounding context.Folder Mentions
Reference entire directories with 
@/path/to/folder/. Cline sees the folder structure and all file contents, perfect for
understanding complex interactions between multiple files.Problem Mentions
Use 
@problems to show Cline all the errors and warnings in your workspace. Cline sees the complete list with file locations
and error messages.Terminal Mentions
Use 
@terminal to share your recent terminal output. Cline sees the complete output with formatting preserved, perfect for
debugging build errors or test failures.Git Mentions
Reference uncommitted changes with 
@git-changes or specific commits with @[commit-hash]. Cline sees the complete diff,
commit message, and other relevant information.URL Mentions
Reference web content with 
@https://example.com. Cline fetches and sees the complete webpage content, perfect for
referencing documentation or GitHub issues.Why @ Mentions Matter
@ mentions transform how you interact with Cline by:- Eliminating copy-paste: No more copying and pasting code, error messages, or terminal output. Just reference them directly.
- Preserving context: Cline sees the complete context, including imports, related functions, and surrounding code that might be relevant.
- Maintaining formatting: Terminal output, error messages, and web content keep their formatting, making them easier to understand.
- 
Enabling complex workflows: Combine multiple @ mentions to give Cline a complete picture of your problem:
Getting Started
To use @ mentions:- Type @in the chat input
- Select the type of mention from the menu or continue typing
- For files and folders, navigate through your workspace structure
- Send your message as usual
How It Works Under the Hood
When you use @ mentions in your messages, there’s a sophisticated process happening behind the scenes:- Detection: When you send a message, Cline scans the text for @ mention patterns using regular expressions
- 
Processing: For each detected mention, Cline:
- Determines the mention type (file, folder, problems, terminal, git, URL)
- Fetches the relevant content (file contents, terminal output, etc.)
- Formats the content appropriately
 
- 
Enhancement: The original message is enhanced with structured data:
- Context Inclusion: This enhanced message with all the embedded content is sent to the AI model
- Seamless Response: The AI can now “see” all the referenced content as if you had manually copied and pasted it

