c4-model-agentic-plugin
A Claude Code plugin that explores any codebase, writes a brief of what it found, and generates two
self-contained, interactive HTML pages:
- Project deck: a reveal.js slide deck that explains what the project is about.
- Architecture explorer: a C4 model page for drilling from system context down to code, with runtime flows,
state machines, pictures of what users see, a view of the data and its schemas, and an editor of its own model.
Around them:
- the architecture as an RDF graph (Turtle, JSON-LD, N-Triples, rete) in a
published C4 ontology, from which the page can be rebuilt;
- its history from git: versions with provenance, diffs between commits, branches and pull requests, blame, and
a compare mode in the explorer;
- an MCP server that brings the explorer to ChatGPT and Claude, drawn inside the chat.
Each page is one HTML file (pictures, if any, sit in an img/ folder beside it or inside the page). The reader needs
no server and no build step.
Documentation and live example: caviri.github.io/c4-model-agentic-plugin ·
Try an empty explorer: caviri.github.io/c4-model-agentic-plugin/explorer (build a map by hand or with an AI agent)

Install
Let your agent do it: paste this into Claude Code.
Install the Claude Code plugin c4-model-agentic-plugin for me.
Read https://raw.githubusercontent.com/caviri/c4-model-agentic-plugin/main/INSTALL.md
and follow its "Steps for the agent" section exactly. When you are done, tell me
what you ran, what you checked, and how I start using the plugin.
INSTALL.md has the agent's steps, team installs, updating and removing.
Or install it yourself, in Claude Code:
/plugin marketplace add caviri/c4-model-agentic-plugin
/plugin install c4-model-agentic-plugin@c4-model-agentic-plugin
To try it from a local clone without installing:
git clone https://github.com/caviri/c4-model-agentic-plugin
claude --plugin-dir ./c4-model-agentic-plugin
Requirements
- Python 3 to build the deck (standard library only).
- Node.js 18+ to build and validate the explorer, and (with git) to build its history. Optional for the
explorer: without it, Claude pastes the model into the template by hand.
- Chrome or Edge, optional, so Claude can screenshot its own output and fix layout problems.
Use
Open Claude Code in the project you want documented and run:
/c4-model-agentic-plugin:explain-project
| Command | Result |
|---|
/c4-model-agentic-plugin:explain-project | Both outputs, for a new developer |
/c4-model-agentic-plugin:explain-project deck | Only the deck |
/c4-model-agentic-plugin:explain-project explorer | Only the explorer |
/c4-model-agentic-plugin:explain-project both for stakeholders, focus on the review flow | Free text sets audience and emphasis |
Plain requests work too: "explain this project as a deck", "build an architecture explorer for
this repository".
What happens
- Explore. Claude reads the repository from the outside in: README, deployment files,
manifests, entrypoints, then the main flows.
- Ask. It asks a few scoping questions (audience, scope, which flows matter) and shows you
its one-paragraph summary and container list to correct.
- Brief. It writes
communications/project-brief.md: actors, external systems, containers,
components, relationships, the data model, state machines and flows, each with a file reference.
- Generate. It builds the deck and the explorer from the brief, then opens them in a
headless browser to check them.
Output
communications/
project-brief.md
project-deck/
index.html the deck
src/ slide source, figure code, build script
architecture-explorer/
index.html the explorer
model.js the architecture model it was built from
architecture.jsonld the same model as an RDF graph
architecture.ttl the same graph in Turtle
architecture.rete written when the rete CLI or npm package is available
img/ pictures the model shows, if any
Open either index.html directly from disk, or publish the folder on any static host. Commit model.js with the
code: /c4-model-agentic-plugin:architecture-history then follows how the architecture changes
(History and diffs).
The deck
