Every engineering organisation has at least one architecture diagram that quietly lies. Usually it lives on a wiki page created during a kickoff eighteen months ago, neat and symmetrical, showing six well-behaved services talking through a clean API gateway. Then an incident wakes the on-call rotation at 2 AM, and you discover that three unmapped background workers, a shared database table, and a synchronous fallback call added during a Friday hotfix have turned those six boxes into a tightly coupled web.
I built ArchLens to close that gap between what we think our systems look like and what is actually running in our repositories, so teams can catch architecture risk before it becomes an outage.
Seeing the Same Blind Spot Across Teams
During my time as a consultant at Thoughtworks, I worked across a wide range of domains, teams, and tech stacks. The business problems changed from client to client, yet almost every organisation suffered from the same underlying blind spot: nobody had an accurate, shared map of how their software actually fit together.
When teams lose a shared picture of their architecture, two predictable failure modes take over:
- Ivory-tower diagrams that rot on contact with production. Architects produce high-level C4 diagrams in slide decks or drawing tools to secure funding or align stakeholders. Because those diagrams live outside the repository and require manual upkeep, they begin drifting from reality the week implementation starts. Within two quarters, engineers stop trusting them.
- Code-only archaeology. Without a reliable map, engineers retreat into reading individual files and pull requests in isolation. You can see every line of code in a service, yet miss the fact that four teams now depend on an internal endpoint never meant to be public, or that a single module accounts for half the change churn in the repository.
flowchart LR A[Architecture Workshop Diagram] --> B[Saved to External Wiki] C[Production Codebase] --> D[New Dependencies & Hotfixes] D --> E[Structural Drift] B -.->|No feedback loop| E E --> F[Blind Spots in Reviews & Incidents] Moving back into hands-on engineering leadership roles, overseeing platform, development, and quality engineering across distributed teams, made that problem personal again. When you are accountable for delivery velocity and operational resilience across dozens of services, you cannot rely on stale drawings or tribal memory. You need a living picture of the systems you are responsible for.
A Canvas, a CLI, and a Few Lenses
At its core, ArchLens is a canvas, a CLI, and a few lenses for reading a codebase as architecture so you can understand it, analyse it, and share the map.
Rather than asking engineers to draw boxes from scratch, ArchLens generates a structured model from source code and git history, then layers analytical lenses on top. From there you can edit the diagram directly in the canvas, collaborate on it with your peers and save it next to your code as a BlueprintSpec or export it to Mermaid. Three design choices shaped the tool from the beginning:
1. Browser-sandboxed and deterministic
Architecture tooling fails adoption tests the moment it demands uploading proprietary source code to a backend analysis server or relies on opaque heuristics that return a different diagram every time you run it. At archlens.dev, parsing runs in your browser without sending your source code to a server; if you prefer running scans offline from your terminal or in CI, you can run the CLI locally. Either way, deterministic static analysis means the same commit always produces the same structural baseline.
2. BlueprintSpec as plain-text Architecture as Code
Visual exploration is essential when you are tracing a dependency chain, but diagrams still need to survive code review and version control. ArchLens centres on BlueprintSpec, a declarative YAML representation of your system hierarchy, boundaries, relationships, and architectural annotations. Because the blueprint lives in Git alongside your application code, architectural changes can be diffed, reviewed, and validated in pull requests like any other engineering artefact.
3. Multi-lens analysis rather than static box-counting
A static dependency graph tells you what imports what, which is only a third of the story. Real architectural risk hides where structure collides with change frequency and failure modes. ArchLens layers focused analytical lenses over the core structural graph:
- Static and complexity analysis: Multi-language Tree-sitter parsing extracts modules, boundaries, call graphs and syntax-tree complexity scores without requiring a heavy language server setup. For C# and .NET repositories, it also resolves
.csproj<ProjectReference>edges, cross-namespaceusingdependencies and outbound HTTP calls (fetch, Axios andHttpClientverbs). - TraceLens (Git intelligence): Mines commit history to surface temporal coupling (files that always change together even when no direct import exists), churn hotspots and single-owner knowledge bottlenecks.
- ChaosLens (Fault simulation): Uses a Go/WASM Monte Carlo engine (with a TypeScript fallback) so you can select a node or dependency edge and simulate blast radius, identifying cascading failure paths before a downstream timeout tests them in production.
- AdviceLens (Actionable recommendations): Evaluates the model against architectural heuristics to flag concrete issues such as cyclic dependencies, leaky domain boundaries, or overloaded shared libraries.
flowchart BT subgraph Outputs [Practical Workflows] Canvas[Interactive C4 Canvas & Nested Zooms] CLI[CLI & CI Risk Checks] Rooms[Multiplayer Rooms & YAML Comments] end subgraph Engine [ArchLens Analysis Engine] TS[Tree-sitter Parser & Complexity Scoring] TL[TraceLens: Churn & Temporal Coupling] CL[ChaosLens: Blast Radius Simulation] AL[AdviceLens: Architectural Heuristics] end subgraph Inputs [Local Repository Inputs] Code[Source Code] Git[Git Commit History] YAML[BlueprintSpec YAML & Sidecars] end Code --> TS Git --> TL YAML <--> TS TS --> CL TS --> AL TL --> AL CL --> Canvas AL --> Canvas AL --> CLI Canvas <--> Rooms Shipping to Learn How Coding Agents Actually Work
There was a second, equally practical reason I started writing ArchLens. Like most engineering leaders, I had spent months experimenting with coding agents, reading benchmarks, and testing prompts. None of the toy exercises stuck. The approach that finally changed how I work with coding agents was shipping a substantial product I genuinely needed.
Building an architecture intelligence platform turns out to be an unforgiving benchmark for AI-assisted development. You cannot bluff your way through AST traversal across multiple languages, bidirectional YAML-to-canvas state synchronisation, real-time collaborative presence, or graph layout algorithms. If an agent hallucinates a schema property or subtly breaks coordinate transformations during a refactor, the canvas breaks immediately.
To keep coding agents productive without letting the codebase rot, I had to build deterministic guardrails around them: strict schema contracts, automated evaluation loops, custom skills, and standard operating procedures that defined how features were specified, implemented, and verified.
That agent workflow worked well enough that I extracted and open-sourced it alongside ArchLens as Waykit (waykit.dev), built on the exact same skills and evaluation-driven lifecycle.
flowchart LR Spec[BlueprintSpec & Feature Contract] --> Skill[Waykit Agent Skill & SOP] Skill --> Impl[Agent Code & Test Generation] Impl --> Gate{Deterministic Gates} Gate -->|Typecheck, Tests & Vale Lint Pass| Merge[Commit to Main] Gate -->|Regression or Rule Violation| Feedback[Structured Error Context] Feedback --> Skill In practice, ArchLens and Waykit grew up together. Every time a coding agent struggled with an ambiguous requirement or introduced subtle regressions in the parser or canvas state, that failure became a concrete rule, a stricter test harness, or a sharper skill definition in Waykit.
From CLI Prototype to Collaborative Map: July to November 2026
ArchLens did not ship as one grand-design release. From July through November 2026 it moved through three waves, each driven by friction found while using the tool on live repositories: first make the map real, then make it shareable and safe to change fast, then make it fit everyday review and editor workflows.
timeline title ArchLens Roadmap (July - Nov 2026) July 2026 : Core CLI, Tree-sitter static parser & C4 canvas : BlueprintSpec model, ChaosLens & AdviceLens : GitHub Pages deploy and early public share Aug - Sept 2026 : Canvas workspace polish & samples estate : SonarCloud static analysis & CI hardening : Zero-install ZIP scanning & live multiplayer rooms Oct - Nov 2026 : Nested child zooms from any canvas node : Design token sweep & unified Light mode : Diátaxis docs, Vale linting & VS Code review flow Wave 1: The CLI, Core Canvas, and Analytical Lenses (July 2026)
July was about proving the core loop: scan a local repository, generate a BlueprintSpec, and render an interactive map in the browser. Tree-sitter parsing, the C4 canvas, ChaosLens fault simulation, and AdviceLens recommendations all landed that month, along with a GitHub Pages deploy so others could try the canvas without installing anything.
Early on, one-way generation proved insufficient. If you generated a diagram from code, tweaked layout groupings or added architectural context, and then re-scanned after a few commits, your manual context would either be overwritten or fall out of sync. A major chunk of early engineering went into bidirectional blueprint synchronisation, ensuring structural updates from the codebase merged cleanly with curated architectural metadata.
Wave 2: Collaboration Friction and CI Hardening (August to September 2026)
Once the core engine worked, the next friction was sharing the map with other engineers and keeping rapid agent-assisted changes from degrading code quality. That wave focused on workspace UX, collaboration, and engineering hygiene:
- Canvas and samples polish: Workspace panels, blank-canvas entry, layout spacing, and a shared samples estate made the hosted app feel like a product rather than a local experiment.
- Static analysis and dependency discipline: Integrating SonarCloud quality gates, strict schema validation, and automated dependency updates kept the repository stable while shipping multiple changes a day.
- Zero-install ZIP scanning and TraceLens in the browser: Asking a colleague to install a CLI before they can look at a repository creates unnecessary friction. Compiling the parser pipeline for the browser meant anyone could drop in a ZIP archive and inspect structure, complexity, and git churn without local setup.
- Live multiplayer rooms: Architecture reviews usually happen with one person sharing their screen. Multiplayer rooms brought live cursors and collaborative comments onto the canvas so engineers could inspect nodes together in real time.
Wave 3: Nested Zooms, Docs Discipline, and Editor Fit (October to November 2026)
The next wave hardened the docs surface, then shipped the day-to-day capabilities teams actually needed:
- Nested child zooms directly from any canvas node: Real production systems are too dense to inspect on a single flat graph. Nested child zooms allow you to start at a high-level system context and drill directly into containers, services, and internal modules from any node without losing your mental model of where you are in the hierarchy.
- A full design token sweep and Light mode: Developer tools default to dark themes, which work fine at a desk and wash out completely on a conference room projector or inside printed documentation. Refactoring the UI around semantic design tokens unlocked a crisp Light mode alongside dark themes without duplicating component styles.
- Diátaxis documentation and Vale enforcement: Rather than mixing conceptual architecture explanations with CLI flag references and onboarding steps, the documentation was restructured into tutorials, how-to guides, reference material, and explanation pages. Technical writing rules moved into an agent skill and failed CI like a broken unit test when filler words, passive hedging, or marketing hyperbole slipped through.
Making Architecture as Code Practical
Software architecture only creates value when it helps teams make better decisions before code reaches production. When diagrams live in disconnected tools, architecture becomes theatre: something prepared for quarterly reviews and forgotten during daily delivery.
By keeping the model declarative in BlueprintSpec, grounding analysis in real code and git history, and making the canvas collaborative without locking your data into a proprietary format, ArchLens aims to make Architecture as Code practical for day-to-day engineering teams. Whether you are onboarding onto an unfamiliar codebase, untangling a legacy monolith, or stress-testing a service boundary before a high-traffic launch, the map should stay as current as the last commit.
If you want to see how your own repositories look through that lens, try scanning a project at archlens.dev, explore the source and star the repo at github.com/mzworthington/archlens (or open an issue if you hit a missing language or framework pattern), or inspect the agent skills and evaluation lifecycle behind how it was built at waykit.dev.




