Skip to main content
Give the agent a small architecture model, then keep the returned source and layout state for every revision. iso-topology renders and edits that model locally. Your coding agent supplies the reasoning; the renderer does not call a model or infer a system from a prompt by itself. This worked example starts with Client → API → Database, then adds API → Cache. It is an illustrative service, not a claim about your application’s architecture. For a real repository, first collect evidence for each component and connection. Install and open Studio · Download starter YAML · Download the cache revision New to the CLI? The architecture diagram quickstart covers installation, your first render and a local Studio edit. If you already have a Mermaid graph, use the three Mermaid-to-isometric examples to re-author its nodes and connections before starting this revision workflow.

What you will make

A small service with a Client, API and Database, rendered from the downloadable starter You will keep three things: the architectural description, its current placement, and the SVG used in your README or design review. A screenshot alone cannot carry the editable model into the next turn.

1. Make the first drawing

Install the current CLI if you do not have it:
This requires Go and its binary directory on your PATH; see installation for alternatives. For repeatable team builds, record the engine revision and use the same binary for subsequent renders. Save the starter as architecture.yaml. It needs only components and relationships:
Open out/first/topology.svg and inspect out/first/report.json. The directory also contains source.yaml, layout-state.json, and project.isotopo.json. The project bundles source and placement; keep it for editing and reopening. An agent with terminal access can run these commands. For MCP, connect the server and ask it to call iso_capabilities, then iso_design with format: "yaml" and dsl containing the file. A subsequent iso_design call must pass the earlier layout_state as previous. iso_design returns the project and report alongside the drawing; do not discard them between turns.

2. Ask for one specific revision

Give the agent this task:
Without an agent, download the supplied cache revision as architecture.yaml and run the same command:
The service extended with a Cache and an API-to-Cache connection The illustrations show fresh compositions of the two downloadable templates. A state-preserving revision can have a different arrangement because it retains your previous placement. The component and connection changes should match. In the maintained small-example check, this command retains the existing positions and reopening the resulting project reproduces its SVG. The report can still include iso-route-clearance-unresolved with the message non-convex opaque body coverage; inspect the actual routes rather than treating a completed render as a clean report. Keep user, api and db as IDs. Changing a label is an edit to the same component; changing an ID makes it a different layout identity. The engine can preserve earlier positions while finding space for the new component, but a successful render is not a promise that every larger graph is readable.

3. Make a human edit, then continue

Open the URL printed by the command. Rename API to Public API, drag it if needed, and save the project in Studio. Then ask the agent to read that saved project, retain its current source and layout_state, and make the next change. Do not feed it the stale YAML from before your Studio edit. For a full drag → agent revision → reopen procedure, use preserve a diagram’s layout.

4. Check and publish the same revision

  • Meaning: does each arrow represent a verified request, dependency or data transfer? The renderer cannot verify application behavior.
  • Source: do labels, comments and IDs still contain the human edits?
  • Drawing: can you follow every connector and read labels at the intended display width? Inspect the SVG as well as the report.
  • Reopen: open the saved project in Studio before handing it off. It should contain the latest source and placement.
Copy the final topology.svg to docs/architecture.svg in your application repository, keep its source/state or project beside it, and add:
Follow the publishing guide for CI rendering. If you automate a design with saved layout, keep passing the matching state; a fresh render from YAML alone is a different workflow.

Common questions

Can I use Codex or Claude Code?

Yes, through terminal commands or an MCP configuration supported by your client. The renderer has no built-in LLM. See the tested client setup and tool contracts; client behavior and model quality are separate from diagram rendering.

Why did the second version lose my changes?

Check which source and state the agent read. Reusing the original prompt or an earlier YAML snapshot can discard human edits. Treat the most recently saved project as the handoff, and keep an earlier project for rollback.

Can it generate the diagram directly from a repository?

The agent can read code and author a model; iso-topology does not automatically reverse-engineer the repository. Use the code-to-diagram evidence workflow to avoid plausible-looking invented connections.

Does a valid report mean the architecture is correct?

No. It checks properties of the supplied drawing and source. A person still needs to confirm the architecture and inspect the output. Recorded agent evaluations document specific runs and limitations, not a guarantee for your model or repository. Keep manual layout edits · Studio guide · CLI design contract For a more detailed authored composition, open the six-component service project and repeat a checked rename–render–reopen cycle. The same page includes editable RAG and DuckDB projects.