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 workbenchIt 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_prsdive wb is short for dive workbench. The workbench needs an interactive terminal. In scripts and CI, use dive plan run.
Layout
- 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.
| Key | Does |
|---|---|
| Enter | Chat: send. Alt+Enter adds a new line |
| 1 2 3 | Switch workspace tab. Alt+1 works from chat |
| j k | Select a step or tool |
| e | Edit the selected step in a form |
| a / A | Add a step after / before the selected one |
| PgUp PgDn | Scroll the focused pane |
| v | Validate the plan |
| r | Run the plan |
| g | Debug run: pause at each breakpoint, or before every call when there are none |
| b | Toggle a breakpoint on the selected step |
| u | Undo the last time an agent replaced the draft. Press again to redo |
| x x | Discard the drafted network |
| Ctrl+S | Save |
| ? | Show the keys |
| q | Quit |
While a debug run is paused:
| Key | Does |
|---|---|
| n | Run this call and pause at the next one |
| c | Continue to the next breakpoint or error |
| s | Skip this call and give it a result, or replace a failed call's result |
| a | Abort the run |
Mouse
| Action | Does |
|---|---|
| Click a pane | Focus it |
| Click a tab | Switch to it |
| Click a row | Select it |
| Double-click a row | Edit it |
| Scroll | Scroll 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.