Dive

dive plan

dive plan draft

Draft a plan from a goal using the planner model (costs inference)

Runs the built-in compose_plan plan over your tool catalog: it finds the tools the goal needs, writes the whole plan in one call, and fixes steps that fail validation. When it had to guess a value that decides what the plan returns, it asks you in the terminal first.

Problems it couldn't fix are listed under problems. When no tool in the catalog can do part of the goal, nothing is written and the result lists what is missing.

Drafting replaces every step. To correct a plan whose steps you want to keep, use dive plan set and the dive plan step commands.

Arguments

GOALstringrequired

What the plan should do, as a self-contained instruction

Options

--fromstring

Draft into this plan's identity (identifier, name, description, input schema). Every step is replaced — use the editing commands to correct a plan whose steps you want to keep

Format: NAME|PATH.

--outputstring

Write here instead of <plans dir>/<identifier>.yaml

Format: PATH.

--stdoutboolean

Print the drafted YAML to stdout instead of writing a file

--jsonboolean

Print a JSON envelope instead of text

Global options

Increase log verbosity (-v info, -vv debug, -vvv trace)

Act as this [identities] entry: runs get a run token minted for its tenant and user, which http tools send to the app

Format: IDENTITY.

dive plan draft [OPTIONS] <GOAL>