.isotopo.json project contains that pair. A YAML file alone preserves the architecture, but does not contain the automatic placement or the locks created by dragging in project mode.
Use this when a diagram is already close to what you want: you have positioned a component, clarified a label, and want an agent to add one service without starting the drawing over.
Start in local Studio · Download its YAML · Create the first version with an agent
For installation and a first SVG, start with the architecture diagram quickstart. For a deliberately authored composition, the Mermaid-to-isometric examples include YAML with explicit placement; keep those authored positions in the source when adapting a template.
Source and layout have different jobs
Keep the SVG and editable files from the same revision. A successful export of yesterday’s diagram does not cover changes made today.
1. Create a small project
With the CLI installed, save the starter asarchitecture.yaml and run:
serve. Starting Studio from the project is significant: it brings the existing placement into the editor, instead of asking a bare source document to reproduce it.
2. Make and save a human change
In Studio, rename API to Public API, drag that component to a useful position, and save. In project mode, a direct drag creates a layout lock while leaving unrelated architecture source untouched. Undo and redo track source and state together. Reopen the saved.isotopo.json file once. Verify that the label and placement survived before handing it to an agent. The Studio guide explains its saving behavior; saving the project and publishing an updated SVG are separate actions.
Use Export → Project file to keep a portable copy. Reopen it with isotopo studio path/to/project.isotopo.json. Source-only exports are useful for text editing, but retain the project when placement matters.
3. Tell the agent what must survive
architecture.yaml and its state as layout-state.json, edit the source, and run:
dsl and its layout_state as previous to iso_design. Use the newly returned source/state pair for the next turn. See the MCP arguments.
4. Verify the round trip
The repository’s browser-engine regression exercises a Studio-style move, an agent-style source revision, project serialization and reopening. It checks source continuity, the manual lock and SVG replay. This is a deterministic tool-contract test, not a measurement of an LLM’s success rate.
What preservation means—and its limits
- Stable IDs identify existing components. A rename of
labelcan preserve identity; replacingidbreaks that correspondence. - Locks preserve parent-local placement. They do not freeze component dimensions, a parent’s position or the entire drawing’s screen coordinates. Longer text can need more space.
- Explicit source placement wins. If an agent writes new coordinates or layout rules, it may intentionally override saved placement. Ask it to leave those fields alone when preserving the composition.
- Recompose releases soft preferences, not manual locks. It is a deliberate layout operation, not a synonym for “render the latest source.”
- Crowding still needs review. Adding many nodes while retaining positions can create a worse drawing. Inspect the report and routes, and choose which constraints to change.
Troubleshooting
Why did my diagram move after I reopened YAML?
The automatic layout state was saved separately. Reopen the project or provide the matching state with--state. Authored coordinates in YAML are retained, but a plain architecture-only YAML export does not include previous automatic placement.