Configuration
Agents
This page shows how to define agents: their instructions, model, tools, skills and MCP servers.
An agent is a named role. Every conversation starts with one root agent, which can start subagents of any configured agent for parts of the task. Without any configuration you already have one: the built-in default agent, a general-purpose assistant with every tool, skill and MCP server available and the default model.
A complete agent file
Each file in ~/.config/openvaala/agents/ defines one agent:
# agents/reviewer.yaml
name: reviewer # must match the file name
description: Reviews a change for bugs and missing tests without editing files
instructions: |
You review code changes. Read the diff and the surrounding code,
run the tests, and report concrete problems with file and line.
Do not modify files.
model: # optional; default: models.default_model
provider: openai
model: gpt-5
compact_model: # optional; model that writes context summaries
provider: openai
model: mini
tools: [read_file, bash, read_command_output, write_stdin, stop_command, list_commands]
skills: [code-review] # optional; default: all skills
mcp_servers: [serena] # optional; default: all; [] for none
max_steps: 50 # optional; default: 0 (no limit)Fields
name— required, matching the file name. Letters, digits,-,_and..description— what the agent is for. Other agents read it when choosing which agent to hand a subtask to, so describe the job, not the personality.instructions— required. The agent's system instructions.model— the model to use:provideris a provider id frommodels/,modelis a model id in that provider (defaultdefault). When omitted, the agent usesmodels.default_model; see Choosing a model.compact_model— the model that summarizes the conversation when the context fills up. Defaults tomodel. Its context window must not be smaller than the main model's. A cheaper model with a large window works well here.tools— the file and command tools the agent may use. Omit it for all of them. See Limit the tools an agent can use.skills— the skills the agent may use, by name (plugin skills as<plugin>:<skill>). Omit it for all skills.mcp_servers— the MCP server ids the agent may use. Omit it for all servers, including those your editor provides; write[]for none. Every id must exist inmcp_servers/or a plugin (disabled servers count).max_steps— the most model calls one turn may make. Default0means no limit; it must not be negative. On the last allowed call the agent can no longer use tools and the model summarizes what is done and what remains. The turn then ends normally, and when you tell the agent to continue, it starts a new turn.
Every model reference must resolve to a configured model, or the configuration fails to load.
ACP request parameters
For an ACP agent, acp.param_overwrite sets request fields by ACP method name. Objects merge recursively. Configured scalars and arrays replace the original values. Temporary sessions also apply acp.ephemeral_param_overwrite last. Configure it when the adapter can avoid saving sessions to enable Web /btw. The Claude Code preset uses the following configuration.
name: claude-code
type: acp
acp:
command: claude-agent-acp
ephemeral_param_overwrite:
session/new:
_meta:
claudeCode:
options:
persistSession: falseCustomize the default agent
agents/default.yaml is special: it starts from the built-in default agent and replaces only the fields you write. name may be left out (if present it must be default), and instructions is optional. To pin the default agent to one model, this is all you need:
# agents/default.yaml
model:
provider: anthropic
model: claude-sonnetEvery other native agent file must set name and instructions.
If no model is configured at all, agents have no model until you add a provider.
Which agent runs
- The terminal UI, editors (ACP) and Codex start conversations with
run.agent_name(defaultdefault);--agent <name>overrides it for one command. - The web UI and desktop app start conversations with
default. - A root agent can start a subagent of any configured agent with
spawn_agent. A subagent of the same agent inherits the current model; a different agent uses its own default model unless the call names one. See Subagents.
Check an agent with openvaala --agent reviewer config check, then apply changes with openvaala serve reload.