Features
@Mentions
Overview

Context References Overview

Bwat's @mentions feature revolutionizes how you integrate external content into your development workflow. Rather than manually copying code snippets or error messages, simply reference them with an @ symbol to bring full context into your conversations.

When you type @ in chat, Bwat displays a comprehensive menu of reference types. These intelligent mentions allow you to directly incorporate files, directories, error messages, command line output, version control changes, and web content into your discussions.

Supported Reference Types

Bwat offers several specialized reference types, each optimized for different development contexts:

File References

Access complete file contents with 'path/to/file'. Bwat maintains full context including imports, related functions, and surrounding code structure.

Directory References

Reference entire code directories using 'path/to/folder/'. Bwat analyzes the complete folder structure and inter-file relationships, ideal for understanding complex systems.

Error References

Use @errors to share all workspace warnings and errors. Bwat receives complete diagnostic information including locations and detailed messages.

Terminal References

Incorporate command line output with @terminal. Bwat preserves original formatting, perfect for debugging build processes or test failures.

Version Control References

Share uncommitted changes via @changes or specific commits with @[commit-hash]. Bwat receives complete diffs and commit metadata.

Web Content References

Include online resources with 'https://example.com'. Bwat fetches and processes complete webpage content, excellent for documentation or issue tracking.

The Power of Context References

This innovative approach transforms developer workflows by:

  • Eliminating Manual Transfers: No more copying/pasting code segments or error logs - reference them directly
  • Maintaining Full Context: Bwat understands complete file ecosystems including dependencies and related components
  • Preserving Original Formatting: Command output and error messages retain their structure for accurate interpretation
  • Enabling Sophisticated Analysis: Combine multiple references to provide comprehensive system understanding

Getting Started

To leverage context references:

  1. Type @ in the chat interface
  2. Select your reference type or continue typing the path
  3. Navigate your workspace structure for files/directories
  4. Send your message normally

Bwat automatically processes all references and incorporates their content into the conversation context.

Technical Implementation

When you use context references, Bwat executes a sophisticated backend process:

  1. Pattern Recognition: Advanced parsing identifies all reference patterns in your message
  2. Content Retrieval: For each reference type, Bwat:
    • Determines the specific content type
    • Fetches the complete relevant data
    • Applies appropriate formatting
  3. Message Enhancement: Original message is enriched with structured data
  4. Contextual Analysis: The enhanced message with all embedded content is processed by Bwat's AI
  5. Intelligent Response: Bwat generates informed responses with full awareness of all referenced materials

This seamless integration occurs automatically whenever you use context references, providing Bwat with complete situational awareness without manual intervention. Each reference type has specialized handling optimized for its particular content type.