Skip to main content
agentgraph graph prints a text representation of your DAG’s node topology — useful for understanding wave structure before running a complex workflow. agentgraph diff compares the artifact produced by each node across two runs of the same DAG, making it straightforward to evaluate the effect of a prompt change or a backend switch.

agentgraph graph

Render the DAG as Mermaid flowchart or Graphviz DOT. Output goes to stdout so you can pipe it directly to a renderer.

Arguments and flags

string
required
Path to the DAG YAML file.
string
default:"mermaid"
Output format. Options: mermaid or graphviz.

Examples

Mermaid output format

The Mermaid output groups nodes by execution wave inside subgraph blocks, with node types shown as italicised labels. Edges reflect the depends_on declarations in your YAML.
Node type colours match the inspect status colour scheme: agent nodes are blue, approval gates are red, exec nodes are grey, and so on.
Paste Mermaid output directly into a GitHub pull request comment — GitHub renders Mermaid natively inside code fences tagged ```mermaid.