Skip to content

C4 model diagrams at every level, for every role

A CTO, a platform engineer, a tech lead or a developer

A CTO, a platform engineer, a tech lead and a developer each need a different view of one system. Chat draws each at its C4 level, from the code.

Fig. 01C4 model diagrams at every level, for every role

The problem

A diagram of the whole system is too big for any one question. The C4 model splits it into four levels, one per reader: the system in context for the people who decide, its containers for the people who run it, the components inside one container for the people who build it, and the code for the developer changing it.

In practice the top two levels are drawn by hand, once, for a review. The lower two are rarely drawn. So each new question goes back to the architect, and the answer is one more hand-drawn diagram.

How it goes

The same steps the product’s playbook walks. Each one shows the screen at that moment and opens the video there.

  1. Map the code once

    The code plugin reads each repository on your machine and builds one map of your systems: the landscape, each app's services and layers, and the tables and endpoints in the code. It pushes only derived metadata.

  2. Context: who uses it, what it needs

    In a demo workspace built around eShop, Microsoft's .NET reference shop, a CTO asks Chat who uses the store and what it calls outside. Chat draws a C4 context diagram: the store as one box, the people who use it, and the outside systems it calls, such as the payment provider.

  3. Container: what it runs on

    A platform engineer asks what the store runs on. Chat draws a C4 container diagram: the front ends, the services, Redis, the RabbitMQ event bus and one Postgres server, with the calls between them. Its reply names what it left out, such as the optional AI runtimes.

  4. Component: inside one service

    A tech lead opens the Ordering API layer and asks which components a new order passes through. Chat draws the path as a C4 component diagram, from the orders endpoint through the command and its handler to the integration event on the bus, and says which hand-offs the map does not show.

  5. Code: the files behind the data

    A developer asks what reads and writes the orders table. Chat lists the code that writes it and the code that reads it, each with its file. A dependency card under the reply counts what a change to the table would touch.

  6. Find answers by level, share one

    Each answer stays as a context board, listed with the question it answers and filtered by C4 level, so the next person with that question opens it instead of asking again. Publish one to share it as a link.

  7. Done

    End proofDone when each person has their answer drawn at their C4 level, and the one worth sharing is a published board.

    Run this playbook

    Free account. Opens in ProvenMap as Ask the map at every C4 level, with the steps beside you.

Works with

Repositories
As many as your systems have. The map joins them, so one diagram can span several apps.
Hosts
Claude Code, Codex and Cursor on your machine. The analysis runs locally and pushes only derived metadata.
Chat
ProvenMap's built-in agent. It runs on your organization's included AI turns each month, or on your own model provider once you connect one.

Where it stops

  • At the code level Chat answers with files and a dependency card. It does not draw class diagrams.
  • A C4 diagram holds at most 12 boxes, or 14 at the container level. For a large system Chat keeps what the question is about and names in its reply what it left out.
  • People and outside systems appear on a context diagram only where the landscape names them.
  • A diagram shows the map as it stood when you asked, and the map is as current as its last analysis.

Walk through it

  • The docs walkthrough of this job is being written.
  • In the product this job runs as the playbook Ask the map at every C4 level. The board ticks each step when what it asked for exists, and the guide links back to this page.

Start with one system

Map a real system and see the architecture around it.

Open one repository and run the code plugin. No migration, no rollout, no diagramming.

No credit card · Analysis runs locally in your own session · Self-hosted available

See the four commands to your first board →

Or for writing on architecture that stays connected across systems.