@ commands collect information from your system and attach it to the prompt, enabling precise and relevant responses.
@file: Code Context
The most essential command for developers. Sends file contents or the structure of entire directories for analysis.
Processing modes
- full
- summary
- chunked
- smart
Scenario: Deep analysis of a file or small component.Sends the complete content of all files, respecting a size limit.
Set the mode using the
--mode flag. Example: @file --mode=smart ./src@command: Bridge to the Terminal
Execute any shell command and use its output as context, and even add your question — without copy and paste, just use the > (GREATER THAN) sign.
Special flags
@git: Repository Context
Attaches the status (git status -s), branch, diffs of modified files, and the 5 most recent commits. Perfect for generating commit messages or summarizing changes.
@env: Environment Variables
Adds the current environment variables to the conversation context.
Combining Commands
The real magic happens when you combine multiple context commands in a single prompt:Next Steps
Agent Mode
Give ChatCLI “hands” — delegate tasks for it to execute.
Coder Mode
AI that reads, edits, and tests code in an automated loop.