Draw an architecture diagram of an app your coding agent built
By Flavio
Updated
Have your coding agent map an app with blueprint, read its components, flows and data in Architecture Dissector, check one flow against the source, and keep the map current with blueprint status.
When a coding agent writes most of an app, it gets hard to keep in your head which parts talk to each other and what ends up on disk. You can ask the chat for a diagram, but it’s gone with the chat, and the next round of edits makes it wrong.
Architecture Dissector keeps the map next to the project. The agent reads the code and saves the map with the blueprint command, and the app draws it. The examples here come from the map of Skill Cabinet, one of my Mac apps.
Set it up
In the Architecture Dissector menu, choose Install Command Line Tool… to get blueprint, then Install Agent Skill… for Claude Code, Cursor and Codex. Set Up Agents… shows those steps again later.
Then drop the app’s folder on the window, or choose File → Track App Folder… (⌘O). Architecture Dissector only reads the folder, with read-only git commands. Maps and versions go in ~/Library/Application Support/Blueprint.
Ask the agent to map it
Open the agent in the app’s folder and send:
Add this app to Architecture Dissector and map it, including its workflows and stored data. Run blueprint guide and follow it.
blueprint guide tells the agent how to work: read the entry points, modules, stores and services, write the map as JSON, and save it with blueprint set --file. It also says what a good map looks like, like 6 to 30 components, each one “what you’d draw on a whiteboard”, and labels that start with a verb. The window draws the map as soon as it’s saved.
blueprint list shows every tracked app, here’s part of mine:
blueprint list
ID NAME COMPONENTS DATA VERSIONS STATUS MISSING
blueprint Architecture Dissector 28 15 3 13 files changed
blips Chip Pops 22 7 3 9 files changed
snake Couch Snake 19 4 3 up to date
skillscout Skill Cabinet 24 9 2 9 files changed
The MISSING column names what a map still lacks, like the flows, the data or the explainers. blueprint list --missing data lists only the apps without their data, which is a good list to hand an agent. Mine says Every tracked app has its data.
Read the map
The window opens on the architecture. Overview (⌥⌘1) groups the app into a few plain blocks, In Depth (⌥⌘2) shows every component and connection, and Technical (⌥⌘3) adds the files and what travels over each connection. ⌘1 fits the diagram in the window.
Click a component and the inspector tells you its role in the app, a few points that make it precise, what it works with, and its files. Here it’s Skill installer, the part every change to a skill folder goes through. The banner at the top says the code moved on since the map was saved: 9 files changed in 6 commits, and Copy Prompt for Agent copies a prompt that asks an agent to update the map. The screenshots further down are from an earlier map of Skill Cabinet, with 18 components and versions 1.0.0 to 1.3.0.
Take the Tour walks through the “how it works” steps and moves the canvas to the components of each one. The arrow keys go to the next and previous step, Escape ends it.
The same map is in the terminal, so an agent can read it before changing the code. blueprint show starts with the walkthrough:
blueprint show skillscout
Skill Cabinet
A Mac app for people who use coding agents. It lists every agent skill on your Mac, counts use from
local chats, and helps you install, edit, merge and draft skills with AI.
Saved 4 weeks ago at ef9100b · 24 components · 30 connections
HOW IT WORKS
1. Skills get scanned
At launch the app walks every skills folder it knows, groups copies of the same skill, and
works out which of the eight agents load each one.
Skill Cabinet window, App state, Skill scanner, Agent skill folders
Commands that take an app accept its ID, its name or its folder. Without one, they use the tracked app that contains the current folder.
Flows and data
Flows (⇧⌘F) draws each workflow with a column per actor, steps from top to bottom, and branches where a decision splits. Each flow says whose it is: people using the app, its owner, an agent, or the app on its own.

Data (⇧⌘D) draws what the app stores. Each store is a box, each table or file a card with a row per field, and a line runs from a field to the record it points to.

blueprint show --data prints the same thing, field by field:
blueprint show skillscout --data
Skill Cabinet
9 entities in 2 stores
DATA IN SKILL CABINET DATA (storage, JSON files)
state.json (saved-state)
Suggestions, dismissals, cached AI explanations, and analysis progress between launches.
- Written atomically from AppStore after changes
- CLI reads explanations and dismissals but never writes
Check one flow against the source
A map can look right and still miss things. Before you trust it, follow one action you know in the code. In Skill Cabinet, I’ll take renaming a skill. This is the flow in the current map:
FLOW: RENAME A SKILL (rename-skill) · user · Skills
Give a skill a clearer name and keep its usage counts.
1. Select your skill [action] · You
2. Type the new name [action] · You
3. Folders and links rename [system] · Skill Cabinet
SKILL.md frontmatter updates and aliases.json records the old name.
4. Chats still count [done] · You
Then open the files the map points at for those components:
| Map says | Source says |
|---|---|
| The rename sheet is in Skill screens | RenameSheet in Skillscout/SkillViews.swift |
| Folders and links get renamed | SkillInstaller.rename moves the folders, re-creates the links and sets name in each SKILL.md |
aliases.json records the old name | SkillAliases.record in Skillscout/Models.swift maps the old name to the new one |
| Nothing about a name that’s taken | renameProblem stops with “There’s already a skill called …”, and also rejects names that aren’t lowercase with hyphens, or longer than 64 characters |
The first three match. The flow has no decision for a rejected name, so I’d ask the agent to add it:
The rename-skill flow in the Architecture Dissector map skips the checks
in SkillInstaller.renameProblem. Add a decision after "Type the new name"
for a name that's taken or invalid, keep the existing step and component
IDs, and save with blueprint set.
Keeping IDs matters because Architecture Dissector compares versions by them. A renamed ID looks like a removed component and a new one.
Keep the map with the code
After the map is saved, Architecture Dissector keeps a hash of every file it describes. When the code moves on, the sidebar shows how many files changed, and blueprint status lists them by component:
blueprint status skillscout
Skill Cabinet: 9 files changed since the architecture was saved 4 weeks ago at ef9100b, 6 commits ago.
Components with changed files:
Skill Cabinet window (mac-app)
Skillscout/ContentView.swift
Skillscout/SkillscoutApp.swift
App updater (app-updater)
Skillscout/AppUpdater.swift
skillscout command (skillscout-cli)
CLI/main.swift
Release build (release-build)
project.yml
Changed files outside every component:
Skillscout.xcodeproj/project.pbxproj
Skillscout/AppLicense.swift
Skillscout/LicensedUpdater.swift
scripts/screenshot.swift
AppLicense.swift and LicensedUpdater.swift belong to no component, so the license check Skill Cabinet got since then isn’t in the map at all. That’s what to hand the agent: “run blueprint status, update the parts that changed, and add a component for what’s outside every component”.
The welcome screen has a short snippet for the app’s AGENTS.md that tells every agent to read the map first and update it after a change, so you don’t have to ask each time.
Versions
When the map matches a release, save it as a version with ⌘S, or from the project folder:
blueprint snapshot --version 1.5.0
Without --version it uses the git tag on the current commit. blueprint versions lists them:
1.4.0 saved 1 month ago at 4d13058, 24 components
1.5.0 saved 4 weeks ago at ef9100b, 24 components
current saved 4 weeks ago at ef9100b, 24 components
In the window, the timeline at the bottom compares two versions: new components in green, changed ones in amber, removed ones in red.

blueprint diff prints the same comparison. Between the two saved versions of Skill Cabinet, the components were renamed from Skillscout and the whole data map was added:
blueprint diff skillscout --from 1.4.0 --to 1.5.0
Skill Cabinet: 1.4.0 → 1.5.0
8 changed, data: 9 added
~ You (developer, user)
New description
~ Skill Cabinet window (mac-app, client)
Renamed from Skillscout window
To map releases that shipped before you started, ask for them in the first prompt (“including its past releases”). The guide has the agent extract each tag with git archive into /tmp and save it with blueprint set --version 1.0.0 --past, without touching the repo.
For the tables and fields behind the map, see show your coding agent the database schema before it changes code.
If something looks wrong
If the window stays empty, the agent hasn’t run blueprint set yet, or set printed errors. blueprint set --file map.json --dry-run checks the JSON without saving it.
If blueprint status says the folder “isn’t a git repository”, Architecture Dissector can still draw the map but can’t tell what changed. Put the app in a git repository and have the agent save the map again.
If blueprint isn’t found, use Install Command Line Tool… again.
Get Architecture Dissector
Explore your apps through architecture diagrams, workflows, data maps and version comparisons. Includes the Mac app, blueprint CLI and full MIT source.
See Architecture Dissector → · Read the docs · $19. See the app page for tax details, with full source code.
Want me to talk about your product? You can sponsor this site.