archmap
archmap is a Claude Code plugin that maps a repository's architecture into one evidence-backed model
(docs/architecture/architecture.model.json) and renders it as a self-contained, offline HTML viewer
(docs/architecture/archmap.html). Agents read the code and write the model; tested scripts merge, validate, lay out
and draw it. The design is in docs/design.md.
Status
Released: version 1.1.0 is a Claude Code plugin that maps a repository's architecture into one evidence-backed model
and renders it as an offline HTML viewer; beyond the 1.0.0 application map, 1.1 adds compose services, pipelines and
jobs, IaC resources and dbt models and sources, with the flow player; see the CHANGELOG.
All six commands below work and are covered by the test suite and by five evals on three private repositories plus a
build of this repository (see What a build costs).
What comes next is in the roadmap.
Install
/plugin marketplace add AleksandarBisevac/claude-plugins
/plugin install archmap@quality-gates
For local development, from a clone of this repository:
/plugin marketplace add <path to your clone>
/plugin install archmap@archmap-dev
Commands
Each row is the description and argument-hint of the command's file in commands/.
| Command | Arguments | What it does |
|---|
/archmap:build | [--issues] [--profile max|balanced|economy] [--db dsn] [--scope path] [--publish] | Build the evidence-backed architecture map of this repository - model, layout and a self-contained offline HTML viewer in docs/architecture/. |
/archmap:check | none | Check whether the architecture map is behind HEAD. Script only, no analysis and no model run; exit 0 when fresh, 1 when stale. |
/archmap:export | mermaid|plantuml|svg|png|md [--view v] | Export the architecture model as Mermaid, PlantUML, SVG, PNG or Markdown files, with no analysis and no model run. Exports are clean, with no issues. |
/archmap:issues | [--import-audit] [--profile max|balanced|economy] | Review the architecture map for architecture-level issues, optionally importing open audit findings; the overlay is written outside the repository. |
/archmap:render | [--internal|--shared] | Re-render the architecture map HTML from the existing model, with no analysis and no model run. Default is the clean build in docs/architecture/. |
/archmap:update | [--issues] [--profile max|balanced|economy] [--since sha] | Refresh the architecture map after code changes - re-analyses only the areas git says changed, keeps locked nodes, notes and pinned positions. |
build, update and issues run agents; check, export and render are scripts only and spend no tokens. The
profile sets the models of the agents: balanced (the default) runs the explorers and the synthesizer on Sonnet and
the issues reviewer on Opus; max runs all of them on Opus; economy runs the explorers on Haiku and the other
two on Sonnet.
What a build delivers
One model, docs/architecture/architecture.model.json, checked against schema/archmap-model.schema.json:
- nodes: the components (browser apps, services, data stores, external systems, platforms) at C4 levels 1 to 3,
each with
file:line evidence. Beyond application code a build also maps four kinds of non-code parts: compose
services (from Dockerfiles and compose files), pipelines and jobs (GitHub Actions and Azure Pipelines), IaC
resources (Terraform and Bicep) and dbt models and sources, with their tests and lineage; they carry the same
evidence, confidence and provenance as every other node;
- edges: typed calls, reads, writes and messages between them, each with evidence and a confidence of
verified, inferred or external, so what was read in code is kept apart from what was inferred;
- entities: tables, views, collections and datasets with their fields, keys and per-field provenance
(
declared from ORM models, migrations or DDL, observed from read-only introspection of a file database,
inferred from queries in code);
- relations between entities with cardinality, and access: which component creates, reads, updates or
deletes which entity, the CRUD matrix and the data lineage;
- sequences: step-through request and job flows, which a sequence whose participants name graph nodes can also
play on the architecture graph (Play on graph: previous, next, play and the arrow keys light each message's two
components and the relation between them and dim the rest);
- views: the application graph and the deployment and trust-boundary views.