Guides
Customize a built-in agent
Extend the built-in chat agent with a new subagent for researching things on the internet.
Connect a web server
Add the fetch MCP server to .dive/config.toml. Its fetch tool joins your catalog as web__fetch:
[mcp.web]
description = "Fetches web pages as markdown"
command = "uvx"
args = ["mcp-server-fetch"]Create the researcher
version: 1
name: researcher
description: Researches a question on the internet and answers with sources.
model: chat
tools:
- web__fetch
system_prompt: |
You research questions on the internet. Fetch the pages you need, then
answer briefly and list the URLs you used.Copy the chat agent
A file named chat in your project replaces the built-in:
dive agent show chat \
> .dive/agents/chat.yamlAdd the subagent
Add researcher to subagents, and tell chat when to use it in system_prompt:
subagents:
- chat
- researcher
system_prompt: |
…
- When a question needs current information from the internet, give it to agent__researcher and cite the sources it returns.
Today's date: {{session.date}}
{{session.user}}Try it
dive ask "What is the latest stable version of Rust?"chat hands the question to researcher, which fetches the pages:
→ agent__researcher {"prompt":"What is the latest stable version of the Rust programming language…"}
→ web__fetch {"url":"https://www.rust-lang.org/"}
→ web__fetch {"url":"https://releases.rs/"}
✓ web__fetch 1.9s
✓ web__fetch 2.4s
→ web__fetch {"url":"https://releases.rs/docs/1.99.0/"}
→ web__fetch {"url":"https://blog.rust-lang.org/"}
✓ web__fetch 494.1ms
✓ web__fetch 1.1s
✓ agent__researcher 10.0s
The latest stable version of Rust is **1.99.0**, released on **October 1, 2026**.
Sources: releases.rs, and the official announcement at blog.rust-lang.org/2026/10/01/Rust-1.99.0/Go back to the built-in
Delete your copy to bring the shipped chat back:
dive agent rm chat