Diagram-driven development.
The diagram stops being documentation produced after the fact and becomes the instruction the code is written from.
The usual order is backwards
Normally code is written and a diagram is drawn afterwards to explain it, which means the diagram is derivative, optional, and the first thing to go stale. Inverting that, drawing the structure first and generating from it, makes the diagram load-bearing. Artifacts that are load-bearing stay current; artifacts that are documentation do not.
Why a diagram is a good specification
Structure is what a diagram is good at and what prose is bad at. A component list with tiers and directed relationships is unambiguous in a way that a paragraph describing the same thing is not, and ambiguity in a specification is where an agent's output diverges from what you meant. Converting the canvas to markdown keeps that precision in a form a model reads well.
What it does not specify
Error handling, data types, idempotency, retries, and the hundred decisions that determine whether an implementation is correct. A diagram gives shape, so what comes back is structurally faithful scaffolding rather than finished work. This is most useful starting something new and least useful for a subtle change to something existing.
The loop
Draw or generate the architecture, refine it as a graph until the shape is right, convert to a specification, run a coding turn, review the diffs. When the system changes, regenerate the diagram from the code so the picture and the system reconverge rather than drifting.
The loop
Questions
Related
- Local-First AI Coding AgentSame agent core in a native desktop app and a 6 MB Rust binary, running whichever model you choose, including one on your own laptop.
- Local LLM Coding AgentFor when the constraint is not cost but that the code cannot leave the building.
- Terminal Coding AgentOne binary, no runtime, no browser. Free and open source.
- AI Assistant for ObservabilityWorth being precise about what this is: it drives the observability tools you already run. It is not an LLM tracing platform, and if that is what you searched for, the tools below are the right ones.