Specialist agents
An agent is a named persona with its own system prompt. The main model can delegate a focused task to it mid-mission.
Define an agent
~/.xllama/agents/reviewer.md
---
name: reviewer
description: reviews code for bugs and style
---
You are a meticulous code reviewer. Report real bugs first./agents
/agents add reviewerDelegation model
xllama exposes run_agent(agent, task). A fresh Chat uses the agent body as its system prompt, shares the current engine and tools, runs a normal ReAct loop and returns the final result.