~/.operator/agents/<name>/AGENT.md. The file content becomes the agent’s prompt — its personality, instructions, and capabilities.
Creating an Agent
Create a directory and prompt file:~/.operator/agents/myagent/AGENT.md:
operator.yaml:
Workspace
Each agent has a workspace at~/.operator/agents/<name>/workspace/. This is the working directory for all tool calls — shell commands, file reads/writes, and list_files all resolve relative paths against it. Files persist across conversations and job runs.
System Prompt Assembly
The full system prompt is assembled from multiple sources, split into a stable prefix and dynamic suffix separated by a cache boundary: Stable prefix (cached across turns):SYSTEM.md— system preamble (auto-created at~/.operator/SYSTEM.md)AGENT.md— agent prompt body (verbatim)- Available skills — discovered from
skills/*/SKILL.md
Model Fallback
Agents inheritmodels from defaults unless overridden. The model list is a fallback chain — if the first model errors (overloaded, rate limited, down), the next is tried automatically.
Headless Agents
Agents without atransport block have no chat interface but are available for:
- Running jobs
- Being spawned as sub-agents via the
spawn_agenttool

