Reference
Agent file
One named agent, in `./.dive/agents/` or `~/.config/dive/agents/`. A file with a built-in agent's name replaces that agent everywhere it runs.
| File type | Location |
|---|---|
| YAML | ./.dive/agents/<name>.yaml (project)~/.config/dive/agents/<name>.yaml (global) |
Unknown keys are a load error. For completion in your editor, start the file with # yaml-language-server: $schema=https://raw.githubusercontent.com/loon-rocks/dive/main/docs/schemas/agent.schema.json.
Fields
The file version the document is written in. Omitted means 1; files Dive writes always carry it.
Starts with a lowercase letter; lowercase letters, digits and _ only. Other agents and plan steps call it as agent__<name>.
What the agent is for, written for the people and agents choosing it.
The model role the agent runs on, standard (chat) or custom.
Catalog tools the agent may call, as exact names or * globs such as linear__*. [] means none and ["*"] means the whole catalog. Control step names and generated agent__ and transfer_to_ names aren't allowed. A name that matches no tool, such as a tool from a pack that isn't installed, is skipped, so the agent still loads and runs without it. The tools aren't loaded up front. The agent gets plan__search_tools, which searches only this list, and each tool a search returns stays loaded for the rest of the thread. An entry written as <tool>: {pre_load: true} is loaded from the start instead. Handoffs, subagents and the [tools].always_loaded tools the list matches are loaded from the start too. Naming plan__search_tools here makes its search cover the whole catalog as well as this list, for agents that find tools for others.
Agents this one can run as a subagent, each in a fresh context, called as agent__<name>. Listing the agent's own name lets it run a fresh copy of itself. Nesting is capped at 3.
Agents this one can hand the conversation to, called as transfer_to_<name>. An agent can't hand off to itself, and an agent handed the conversation gets transfer_back without listing it.
Typed input when the agent runs as a subagent or plan step. An object schema with a description on every property. Without it, a call takes {prompt}.
Typed output when the agent runs as a subagent or plan step. An object schema. Without it, a call returns the final reply as {result}.
A cap on model rounds. Omitted means no cap as a subagent; in a conversation, [settings].max_agent_iterations applies.
No longer used. Dive accepts and ignores it, and dive config check notes it. Every agent sees whatever the thread has loaded, and what it can do comes only from its tools; a thread loads a network draft or evidence when an agent calls builtin__create_network, builtin__open_network or builtin__attach_evidence, or when you open an edit thread.
The agent's instructions, rendered with the template language. It can reference {{session.date}}, {{session.user}} and the {{rules.*}} blocks (control_steps, composing, templating, tool_format, agent_format, design), and nothing else. {{session.date}} is today's date with no time of day, so the prompt stays the same all day and a resumed thread keeps its prompt cache.
version: 2
name: release_notes
description: Answers questions about what shipped, from the repo's commit history.
model: chat
tools:
- plan__weekly_changes
- github__tool__git_log
subagents:
- chat
system_prompt: |
You answer questions about what shipped in this repository.
Today's date: {{session.date}}