Skip to main content

Leveraging Context Mentions

Context mentions represent a powerful enhancement to your interactions with Thunderflow AI, providing targeted information about your project that enables more precise and efficient task execution. These specialized references allow you to direct Thunderflow AI's attention to specific files, folders, problems, and Git commits. All context mentions are initiated with the @ symbol.

Context Mentions Overview - showing the @ symbol dropdown menu in the chat interface

The context mentions interface displays an intelligent dropdown menu when you type the @ symbol in the chat.

Context Mention Types

File mention example showing a file being referenced with @ and its contents appearing in the conversation

File mentions incorporate actual code content directly into the conversation for immediate reference and analysis.

Mention TypeFormatDescriptionExample Usage
File@/path/to/file.tsIncorporates complete file contents into the request context"Explain the function in @/src/utils.ts"
Folder@/path/to/folderIncludes contents of all files directly in the specified folder (non-recursive)"Analyze the code structure in @/src/components"
Problems@problemsImports all diagnostics from VS Code's Problems panel"@problems Fix all syntax errors in my code"
Terminal@terminalCaptures recent terminal commands and their output"Debug the error shown in @terminal"
Git Commit@a1b2c3dReferences a specific commit by its hash identifier"What changes were introduced in commit @a1b2c3d?"
Git Changes@git-changesDisplays currently uncommitted changes"Suggest a commit message for @git-changes"
URL@https://example.comImports and processes external website content"Summarize the documentation at @https://docusaurus.io/"

File Mentions

File mention example showing a file being referenced with @ and its contents appearing in the conversation

File mentions incorporate source code with line numbers for precise reference and navigation.

CapabilityDetails
Format@/path/to/file.ts (always begin with / from workspace root)
ProvidesComplete file contents with line numbers for easy reference
SupportsText files, PDFs, and DOCX files (with automatic text extraction)
Works inInitial requests, feedback responses, and follow-up messages
LimitationsVery large files may be truncated; binary files are not supported

Folder Mentions

Folder mention example showing directory contents being referenced in the chat

Folder mentions aggregate the content of all files within the specified directory for comprehensive analysis.

CapabilityDetails
Format@/path/to/folder (without trailing slash)
ProvidesConsolidated contents of all files within the specified directory
IncludesContents of non-binary text files directly within the folder (not recursive)
Best forProviding comprehensive context from multiple related files in a directory
TipConsider context window limitations when mentioning directories with numerous files

Problems Mention

Problems mention example showing VS Code problems panel being referenced with @problems

Problems mentions import diagnostic information directly from VS Code's problems panel for immediate resolution.

CapabilityDetails
Format@problems
ProvidesComprehensive list of errors and warnings from VS Code's problems panel
IncludesFile paths, line numbers, and detailed diagnostic messages
GroupsProblems organized by file location for improved clarity
Best forEfficiently addressing errors without manual copying or transcription

Terminal Mention

Terminal mention example showing terminal output being included in Thunderflow's context

Terminal mentions capture recent command execution output for debugging and analysis purposes.

CapabilityDetails
Format@terminal
CapturesMost recent command and its complete output
PreservesTerminal state (non-destructive operation)
LimitationContent limited to visible terminal buffer
Best forDebugging build errors or analyzing command execution results

Git Mentions

Git commit mention example showing commit details being analyzed by Thunderflow

Git mentions provide detailed commit information and diffs for context-aware version analysis.

TypeFormatProvidesLimitations
Commit@a1b2c3dCommit message, author information, date, and complete diffOnly functional within Git repositories
Working Changes@git-changesgit status output and comprehensive diff of uncommitted changesOnly functional within Git repositories

URL Mentions

URL mention example showing website content being converted to Markdown in the chat

URL mentions import external web content and transform it into readable Markdown format for analysis.

CapabilityDetails
Format@https://example.com
ProcessingUtilizes headless browser technology to fetch content
CleaningAutomatically removes scripts, styles, and navigation elements
OutputConverts web content to Markdown format for improved readability
LimitationComplex page structures may not convert with perfect fidelity

Utilizing Context Mentions

  1. Type @ in the chat input field to activate the suggestions dropdown
  2. Continue typing to filter available suggestions or use arrow keys to navigate options
  3. Select your desired mention with the Enter key or mouse click
  4. Combine multiple mentions in a single request: "Fix @problems in @/src/component.ts"

The intelligent dropdown automatically suggests:

  • Recently accessed files
  • Visible folders in your workspace
  • Recent Git commits
  • Special keywords (problems, terminal, git-changes)
  • All currently open files (regardless of ignore settings or directory filters)

The dropdown intelligently filters out common directories like node_modules, .git, dist, and out to reduce visual clutter, though their content can still be included if manually typed.

Important Behavioral Considerations

Ignore File Interactions

BehaviorDescription
.thunderflowignore bypassFile and folder @mentions bypass .thunderflowignore checks when retrieving content for context. Content from ignored files will be included when directly mentioned.
.gitignore bypassSimilarly, file and folder @mentions do not adhere to .gitignore rules when retrieving content.
Git command respectGit-related mentions (@git-changes, @commit-hash) do respect .gitignore settings since they rely on underlying Git commands.