Dive

CLI

dive ask

Ask a one-shot question (runs one agent turn)

Runs one turn of the default chat agent, or the agent named with --agent, and streams its answer to stdout. Piped stdin is appended to the message as input context.

Put --session after the message, since it takes an optional value. On an existing session, --agent must name the agent the session started with.

With --json, prints {content, tool_calls_made, tools_used, usage, session_id, run_id, agent} instead of streaming.

Arguments

MESSAGEstring

The message; reads stdin when omitted and piped

Options

--agentstring

Run a named agent instead of the default chat agent

Format: AGENT.

--sessionstring

Continue a session: --session <id> for a specific one, bare --session for the most recent chat. Omit to start a new session

Format: SESSION.

The value is optional: --session on its own is accepted.

--jsonboolean

Emit a JSON envelope instead of streaming text

Print the final answer only, without streaming

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 ask [OPTIONS] [MESSAGE]