@ Mentions
PraisonAI CLI supports @ mentions for including file and directory content directly in your prompts. Simply type @ followed by a file or directory path to inject its content into your message.
Quick Start
How It Works
Autocomplete
When you type @, an autocomplete dropdown appears showing matching files and directories:
Features
Ignored Patterns
The following are automatically ignored:
.git, __pycache__, node_modules
.venv, venv, .DS_Store
*.pyc, *.pyo, *.egg-info
File Content Injection
When you submit a prompt with @file.txt, the file content is automatically included:
File Size Limits
- Files larger than 50KB are automatically truncated
- A
[truncated, file too large] message is appended
Supported File Types
All text-based files are supported:
- Source code:
.py, .js, .ts, .go, .rs, etc.
- Config files:
.yaml, .json, .toml, .ini
- Documentation:
.md, .txt, .rst
- And more…
Directory Listings
Use @directory/ to include a directory listing:
Directory Limits
- Maximum 50 entries shown
- Hidden files (starting with
.) are excluded
- Common ignore patterns applied
Multiple @ Mentions
You can include multiple files in a single prompt:
Error Handling
Programmatic Usage
Detection API
Best Practices
Use relative paths - They’re shorter and work across machines
Be specific - @src/utils.py is better than @utils.py if multiple exist
Avoid large files - Files over 50KB are truncated. Consider using specific sections.