In a previous post I explained how the archify skill helps you to create interactive diagrams.
A diagram shows how you think your system is built. It doesn't tell you how the code is actually wired together.
At some point every architect hits that gap. The diagram says three clean layers. The code says otherwise, but nobody has looked at it in a while.
Archify has a feature for exactly this moment: Architecture Diagnosis.
An architecture diagram, however nice and interactive, is an authored artifact. Somebody (or some agent) decided which boxes and arrows to draw. Whatever was left out is invisible.
Architecture Diagnosis goes the other way around. It reads the repository and shows what is really there:
Every finding is linked to the source behind it, so you can jump straight to the code instead of arguing about a picture.
Diagnosis is built into the archify skill. There is no extra package to install. If you can't find it, check that you are on a recent version of the skill.
The easiest way is to ask your agent:
Use Archify Architecture Diagnosis on this repository: show module coupling, dependency cycles and hotspots.
You can also call the CLI directly from the installed skill directory:
node <installed-skill-dir>/bin/archify.mjs code-analysis prepare <repo> --out <dir>
The result is one offline HTML file: repo.analysis.html. No cloud account, nothing leaves your machine.
Tip: after Archify delivers a repository-backed architecture diagram, it ends its summary with a short explanation of what Diagnosis can do. The diagram also gets a Code Analysis button. Nothing starts until you say yes, so you stay in control.
Remark: the analysis is static. It looks at a working-tree revision or a pinned commit. Runtime traces or production telemetry are not part of it.
The generated workbench gives you three things.
A list of findings is nice, but a list nobody acts on is just a different kind of diagram.
Each finding comes with a fix task you can copy and hand back to your coding agent. So the loop becomes: run the diagnosis, pick a finding, give the task to your agent, run the diagnosis again.
So the question becomes: should you let the agent fix everything? No. Start with the dependency cycles. They are usually the easiest to explain and the most painful to live with. Review the result like any other change.
This is the part I like most. You can pair a diagnosis with an architecture diagram you created before, by passing the diagram's JSON file with --ir:
node <installed-skill-dir>/bin/archify.mjs code-analysis prepare <repo> --out <dir> --ir <architecture.json>
Now every component in your authored diagram shows its issue count. It also flags dependencies that exist in the code but are missing from the diagram.
That last one answers the question I started with: where does the diagram I drew differ from the code I wrote?
Architecture Diagnosis covers JS/TS, Python, Java, Go, Rust, C and C++.
Remark: C# is not on that list. As I'm mostly working on C# projects, that's a pity. Maybe I should create PR (I feel a Christmas Holiday project coming up)
That's it! A diagram tells you what you intended. A diagnosis tells you what you built. Together they even become better.
Sachin Singh, former software engineering lead for time synchronizsation at AWS, discusses the Network Time Protocol (NTP) -- a key protocol for communicating time between devices over the internet. Host Jason Davey speaks with him about the background of computer timekeeping, how NTP allows us to synchronize with highly accurate atomic clocks, why this is important, and Sachin's experience operating an NTP service at scale. Along the way, they discuss various practical considerations how developers can deal with time in their own applications.
Josh Rogin is the lead global security analyst at The Washington Post and author of The Cable on Substack. Rogin joins Big Technology Podcast to discuss Jensen Huang’s congressional testimony and what Washington’s scrutiny could mean for Nvidia’s business. Tune in to hear why Rogin believes the investigations are only beginning, how new export restrictions could reshape global chip sales, and what’s at stake in the debate over China’s access to advanced AI. We also cover Chinese cyberattacks, the political divide between JD Vance and Marco Rubio, and how geopolitics is reshaping the AI infrastructure buildout. Hit play for a sharp conversation about Nvidia’s future and the collision between Silicon Valley, Washington, and national security.
---
Enjoying Big Technology Podcast? Please rate us five stars ⭐⭐⭐⭐⭐ in your podcast app of choice.
Want a discount for Big Technology on Substack + Discord? Here’s 25% off for the first year: https://www.bigtechnology.com/subscribe?coupon=0843016b
Learn more about your ad choices. Visit megaphone.fm/adchoices