Dive

Guides

Draft a plan in the workbench

Draft unreleased_changes, a plan that writes a one-line release note for each commit since the latest release, then save and run it.

Draft the plan

Open the workbench in plan mode

dive workbench plan

Describe the goal

Say what the plan should produce and from what:

a plan called unreleased_changes that writes a
one-line release note for each commit since the
latest GitHub release, from its subject and the
files it changed

The drafting architect asks what it can't settle, one question at a time with its guess and its confidence. The workspace shows what it knows so far.

The workbench with network_drafter asking whether merge commits should get a note of their own, guessing no, and the workspace showing the interview at 75% confidence with the outcome and source known and merge commits being asked about.
The architect's question, with its guess and what it knows so far.

It restates what it'll build for you to confirm, then sketches the plan in the workspace with the model role and design principles it uses: here a map that fetches each commit's changed files in parallel, and one small-model call for all the notes.

Build it

Tell the architect to build. The plan drafter writes down the steps the sketch lists, checks the plan, and puts it in the workspace. The architect then test-runs it and tells you how the test went:

The workbench after building: the architect's summary on the left, and on the right the restate and the unreleased_changes plan with steps release, commits, a file_changes map and notes, with no problems.
The drafted plan in the workspace: the release, the commits since it, each commit's changed files, and one infer step that writes the notes.

Save

Press Ctrl+S. Dive writes the plan to ./.dive/plans/unreleased_changes.yaml.

Run the plan

dive plan run unreleased_changes
{
  "release_tag": "v0.21.0",
  "release_notes": [
    {
      "note": "Plans now declare a required finish key, returning the plan's result shape on success and one standard error shape on failure",
      "sha": "648d34e",
      "short_sha": "648d34e"
    },
    {
      "note": "Workbench agents now work on plans through the same artifact tools as agents and tools, folding 17 workbench tools into 7",
      "sha": "cd01c05",
      "short_sha": "cd01c05"
    }
  ],
  "commits": [ … ]
}

On this page