Agents

Configure agents

An AXL agent is a directory of TOML files that the server reads at startup. One file registers that the agent exists; another gives it an identity, a model, and a list of what it may use. Everything else is optional and can be added later, one capability at a time.

Because an agent is configuration, you can review it in a pull request, diff two versions of its behavior, sign it, and roll it back - none of which is comfortable when an agent's personality is spread across application code.

The two files you need first

  1. axl-config/agents.toml registers the agent directory with the server.
  2. axl-config/agents/<name>/agent.toml describes what the agent is and what it can use.

The directory name is only an organization choice. The key inside agent.toml is the stable name you use to select the agent from the API, a channel, or a workflow.

Create your first agent walks through both files and ends with a working agent you can talk to.

Add behavior as you need it

Optional files sit beside agent.toml, each owning one concern. Keeping them separate is what stops an agent's configuration from becoming an unreadable wall of settings.

FileWhat it controlsGuide
intent.tomlObjective, constraints, autonomy level, stop rulesCreate your first agent
rag.tomlWhich document sets the agent can searchConfigure search
memory.tomlLong-term recall and how much of it enters a promptGive an agent memory
shield.tomlInput and output safety behaviorConfigure the shield
compaction.tomlHow long conversations are compressedManage long conversations
voice.tomlVoice IDs and spoken-response instructionsDesign a voice agent
mcp.tomlExternal MCP servers this agent may callConnect an MCP server
*.context.mdShared context inherited by agents below that directoryManage long conversations

Which knowledge mechanism do I want?

Four different things put information in front of an agent. They are not interchangeable.

MechanismHoldsScopeReach for it when
Context files (*.context.md)Stable instructions and backgroundEvery run of every agent beneath that directoryThe information is small, durable, and always relevant
SkillsProcedures plus reference materialLoaded during a run, only when relevantThe instructions are detailed but only sometimes needed
RAGYour document corpusSearched per questionThe answer lives somewhere in a body of documents too large to paste
MemoryFacts about a person or a taskFollows a user or a sessionThe agent should recall something it learned from a previous conversation

A support agent typically uses all four: a context file for tone, a skill for the escalation procedure, RAG over the product documentation, and memory for what this customer already told it.

Add capabilities to an agent

Each capability is its own section of this documentation. Start with the walkthrough, then add one at a time.

On this page