Dive

Getting started

The workbench

Find your way around Dive's terminal UI for building and testing agents, plans and tools.

The workbench is a full-screen terminal UI where you build agents, plans and tools by talking to Dive's built-in agents, then run and debug them in the same window.

Open it

dive workbench

It opens at the front desk, which asks what you want to build. To go straight to a mode, name it, and optionally the file to open:

dive workbench plan unreleased_changes
dive workbench agent release_notes
dive workbench tool merged_prs

dive wb is short for dive workbench. The workbench needs an interactive terminal. In scripts and CI, use dive plan run.

Layout

The workbench with the chat pane on the left, where plan_editor describes unreleased_changes, and the workspace on the right, showing the plan's steps and the detail of the selected row.
unreleased_changes open in the workbench
  • Chat, on the left: you talk to the workbench's agents. The pane title names the agent you're talking to.
  • Workspace, on the right, with three tabs:
    • 1 the network you're drafting, or the plan you're editing, with the selected row's detail below it.
    • 2 the tool catalog the agents draft from.
    • 3 the latest run.

Who you're talking to

Whatever you build, a single tool, a plan, an agent or several working together, the front desk hands you to the drafting architect, network_drafter. It interviews you one question at a time until the problem is clear, confirms what it'll build, and sketches the network in the workspace: each tool, plan and agent, the model role it runs on, and how they connect. It designs for small models, composed plans and map/reduce before a large model with many tools, and says so when you ask for something more expensive than the job needs.

When you say to build it, the architect has the tool, plan and agent drafters write every piece at once, tests the whole network, and saves it when you're ready. Each draft session is saved as a thread, so you can come back to an unsaved network later. To open an existing plan, the front desk loads it and hands you to the plan editor; when a plan needs a new tool, the plan editor hands you to the architect and gets you back once it's saved.

To switch by hand, type /agent <name> in the chat. See Built-in agents for what each one does.

Saving

Ctrl+S saves what's in the workspace: a drafted network all at once, tools to ./.dive/tools/, plans to ./.dive/plans/ and agents to ./.dive/agents/, or the plan you're editing. A file you opened is saved in place.

Keys

Tab moves focus between chat and the workspace. Most keys act on the workspace, so press Tab first when you're typing in chat.

KeyDoes
EnterChat: send. Alt+Enter adds a new line
1 2 3Switch workspace tab. Alt+1 works from chat
j kSelect a step or tool
eEdit the selected step in a form
a / AAdd a step after / before the selected one
PgUp PgDnScroll the focused pane
vValidate the plan
rRun the plan
gDebug run: pause at each breakpoint, or before every call when there are none
bToggle a breakpoint on the selected step
uUndo the last time an agent replaced the draft. Press again to redo
x xDiscard the drafted network
Ctrl+SSave
?Show the keys
qQuit

While a debug run is paused:

KeyDoes
nRun this call and pause at the next one
cContinue to the next breakpoint or error
sSkip this call and give it a result, or replace a failed call's result
aAbort the run

Mouse

ActionDoes
Click a paneFocus it
Click a tabSwitch to it
Click a rowSelect it
Double-click a rowEdit it
ScrollScroll the pane under the pointer

Logs

The workbench writes its log to workbench.log in the data directory, not to the terminal. Set DIVE_WORKBENCH_LOG or [workbench] log_path to change the path, and DIVE_LOG to change what it records.

Guides

On this page