Step 1: Classification (Free)
A tiny local GGUF model (1.5B params, runs on CPU in ~100ms) reads the user's message and outputs the NAME of the best agent to handle it. No cloud API call needed.
Step 2: Agent Execution Loop
The selected agent runs with its configured provider (e.g., Gemini Flash). It can:
- Call tools (file read, git status, web search) β results fed back
- Respond directly β
NEXT: DONE - Delegate to another agent β
NEXT: reviewer+TASK: check auth.rs
Step 3: Multi-Agent Protocol
Agents communicate via text directives at the end of their responses:
NEXT: DONEβ task complete, return response to userNEXT: agent_name+TASK: instructionsβ hand off to another agent
#agent Direct Routing
If the user starts their message with #reviewer, the GGUF classification is skipped
and the named agent is called directly. Faster and cheaper.