Agentic MermaidAboutExamplesComparisonsDocsOpen editor

What triggers it. A bare header like flowchart TD with no statements after it, a body containing only comments, or a mutation sequence that removed the last node, message, or task.

How to fix it. Add at least one element — add_node/add_edge for flowcharts, add_participant/add_message for sequence, add_task for gantt/journey — or check that the intended body was not lost before serializing.

See it fire

This minimal source triggers EMPTY_DIAGRAM — checked at build time against the same engine the editor runs.

flowchart TD

Open in the editor and watch it clear

Run am verify diagram.mmd --json, inspect this code, and apply the smallest source or typed mutation that clears it. If it persists after two mechanical attempts, return the warning and ask for human review.

In the cloned repo, am is bun run bin/am.ts.

Back to all warning codes, or open the editor to watch this warning clear as you edit.