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.
agentgraph graph <dag_path> [OPTIONS]

Arguments and flags

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

Examples

agentgraph graph examples/research.yaml

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.
flowchart TD
    classDef agent fill:#cfe2ff,stroke:#084298;
    subgraph wave1["wave 1"]
        research_a["research_a<br/><i>agent</i>"]:::agent
        research_b["research_b<br/><i>agent</i>"]:::agent
        research_c["research_c<br/><i>agent</i>"]:::agent
    end
    subgraph wave2["wave 2"]
        synthesizer["synthesizer<br/><i>agent</i>"]:::agent
    end
    research_a --> synthesizer
    research_b --> synthesizer
    research_c --> synthesizer
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.