How It Works
When you send a message without specifying an agent, the router:- Analyzes your prompt
- Determines task type (code, research, general, etc.)
- Selects the most suitable agent
- Routes the request
Router Agent
The router uses a fast local model by default (Ollama). You can change it:Agent Selection
| Task Type | Typical Agent |
|---|---|
| Code generation | Claude |
| Research, analysis | Gemini |
| Quick questions | Ollama |
| Complex reasoning | Claude |
Bypassing the Router
Force a specific agent:Auto Mode
The defaultauto mode lets the router decide:
Fallback
If the selected agent fails, PuzldAI falls back to the configured fallback agent (default: Claude). Configure in~/.puzldai/config.json: