AI Chat & Code Generation
How the AI agent generates and modifies your code.
Chat Interface
The chat panel is your main tool for interacting with the AI agent:
- Type requests in natural language (any language)
- See streaming responses in real-time
- View tool calls (Read, Write, Edit, Search, etc.) as they happen
- Track cost per interaction in the sidebar
What the AI Can Do
- Generate code — Create entire pages, components, and features from a description
- Edit existing code — Modify specific files, functions, or styles
- Search and analyze — Find patterns across your project, analyze images
- Fix bugs — Describe the problem, the AI reads error logs and fixes it
- Generate images — Create custom AI-generated images for your project
- Manage backend — Create API endpoints, database tables, and migrations
Smart Model Routing
XAIO automatically selects the best AI model for each request:
- Simple tasks — Fast model for text changes, colors, CSS edits
- Complex tasks — Powerful model with extended thinking for multi-file features
This saves significant AI Tasks on routine edits.
Plan Confirmation
For new projects, the AI first generates a plan showing what it will build. Review and click Yes, start to proceed, or No, refine to adjust before generation begins.
File Attachments
Upload files directly in the chat:
- Images — Used as design reference or added to the project
- PDFs — The AI can read and extract content from documents
- Other files — DOCX, XLSX, PPTX are supported
Drag and drop files into the chat area or use the upload button.
Multiple Chats
Create separate chats for different features. Each chat has its own:
- Conversation history
- Git branch (when GitHub is connected)
- Context and state
Context Window
The AI maintains context of your entire project — it knows all files, the current state, and previous conversations. For very long conversations, XAIO automatically compacts older messages to keep the context efficient.
Stopping Generation
Click the Stop button to interrupt the AI at any time. Partial work is preserved — the files already written stay in your project.

