Decide which question the diagram answers
Pick one view before collecting evidence:
A useful first diagram might cover one request path or a few deployed components. Expanding it to every file usually adds detail without answering the original question.
Keep an evidence note beside the diagram
Before drawing, record the source revision, the files inspected and the statements each file supports. A small Markdown table is enough:Give an agent a bounded task
With an agent that has authorized access to the repository and the CLI or MCP tools, adapt this task:Render the confirmed model
Start from the first-scene guide or an existing sample. Give components stable IDs and define what arrows mean in the accompanying document. Once the model is saved asarchitecture.yaml, use:
out/topology.svg after rendering. The final command starts the local editor; parseable source edits save to the bound file. Render again when you want an updated published SVG.
For a language-independent example of the finished source-to-image workflow, use the CI reference repository. It renders an authored model; it does not automatically extract that model from application code.