Syntax
Options
Enable streaming responses for real-time output.Note: Code highlighting may not work properly in streaming mode.
Slash Commands
Within the chat session, use these commands:Display available slash commands.
Exit the chat session.
Clear chat history and start fresh.
Clear the terminal screen.
Show total session cost.
Toggle debug information display.
Reindex the project with summaries without exiting chat.
Behavior
- Maintains conversation history across all messages
- Searches for relevant code blocks for each question
- Uses project summaries when available
- Shows document tree for each query in debug mode
- Tracks cumulative API costs
- Supports tab completion for slash commands
Examples
Start a chat session
Start with streaming enabled
Example conversation
Session Information
Each response displays:- Debug Info: Relevant documents and blocks found (if debug enabled)
- Document Tree: Visual representation of matched files
- Answer: AI response with code highlighting
- Message Cost: Cost for individual message
- Context Status: Cache usage indicator
- Query Complexity: Complexity rating
Context Management
- Conversation history is maintained in memory
- Context is automatically included in follow-up questions
- Use
/resetto clear history and reduce costs - Project context is cached to minimize API costs
Requirements
- Active project with indexed files
- Configured LLM provider
- Project preferably has summaries for better context
Warnings
On startup, you’ll be notified if:- Project has no indexed files
- Project lacks block-based indexes
- Project doesn’t have summaries
Environment Variables
Required if using Anthropic Claude provider.
Required if using OpenAI provider.
Related Commands
- adist query - Single question queries
- adist llm-config - Configure AI provider
- adist reindex - Update project index