How-to

An architecture diagram from your GitHub repo, kept up to date.

Pick your GitHub repositories and Slatebox’s GitHub architect, an agent, reads the code and draws a service map, a module graph and the API surface as editable slates. Every push to the default branch redraws them, and your team’s own notes stay theirs.

Sign in, then pick your repositories. Free on Slatebox Cloud and on your own server. The first run only suggests: nothing is kept until you say so.

Step by step

An architecture diagram from your GitHub repo, kept up to date in 6 steps.

Everything here works in a browser, on Slatebox Cloud or on your own Slatebox.

  1. Add Living architecture

    Sign in to Slatebox and open a project, then Recipes, Add a recipe, Living architecture. Choose Install Slatebox on GitHub and pick up to 10 repositories.

  2. Preview the first run

    The GitHub architect reads the code and draws a Service map, a Modules slate per repository with a slate for each module, an API surface and a What changed board. Choose Keep all to save them.

  3. Let it keep up

    Every push to the default branch redraws the slates after a 2-minute quiet time, and again each night at 03:00, or on a schedule you set. Say yes once to apply later updates on their own, each one undoable.

  4. Edit it with your team

    Rename, restyle or annotate any note. A note a person changes becomes theirs, and later runs leave it alone.

  5. Keep the diagrams in the repo too

    Optional: turn on Keep the diagrams in the repo too. Slatebox keeps the slates as Mermaid .mmd files in docs/architecture/, in one pull request from the slatebox/architecture branch that a person merges.

  6. Let your coding agent read it

    Claude, ChatGPT or Cursor read the map before a big change, with export_mermaid over the Slatebox MCP server, or from the merged .mmd files.

See it live

Slatebox maps its own code this way.

The Slatebox app and the SlateboxJS engine run Living architecture on their own repositories. Open Slatebox’s architecture project, view-only and with no account needed: the Service map, the module graphs, the API surface and the What changed board, redrawn on every merge.

The same diagrams, as Mermaid, wait in one open pull request on the slatebox/architecture branch, under docs/architecture/. Each service links back to the file that defines it.

docs/architecture/service-map.mmd, shortened
flowchart LR
  subgraph repo["Slatebox/slatebox"]
    proxy("proxy")
    app("app")
    collab("collab")
    mongo(["mongo"])
    init(["mongo-init"])
  end
  proxy --> app
  app --> collab
  app -->|"mongo"| mongo
  collab -->|"mongo"| mongo
  collab -->|"mongo"| init
  init -->|"mongo"| mongo
  click app "https://github.com/Slatebox/slatebox/blob/main/self-host/compose.yaml"

Questions

What people ask.

Can an agent draw an architecture diagram from my GitHub repo?

Yes. Slatebox’s Living architecture recipe connects to GitHub, and its agent, the GitHub architect, reads your repositories and draws a service map, a module graph and the API surface as editable slates. It redraws them on every push to the default branch.

What does it read?

Docker Compose, Kubernetes, Helm, Terraform, serverless files, JS and TS, Python, Go, Java, Rust, Ruby, OpenAPI, GraphQL, proto, routes and CODEOWNERS. It flags dependency cycles and can color modules by owner.

Does it write to my repository?

Never to your default branch. Only with Keep the diagrams in the repo too turned on, it commits .mmd files under docs/architecture/ to the slatebox/architecture branch and keeps one pull request open for a person to merge.

Is the diagram a picture or something my team can edit?

Something you edit. Every service and module is a note on a live slate your team moves, renames and comments on together, and a note a person changes stays theirs on later runs.

Can Claude, ChatGPT or Cursor read the diagram?

Yes. Connect them to the Slatebox MCP server and they read any slate as Mermaid with export_mermaid, or they read the merged .mmd files in your repository.

Is it free?

Yes. Living architecture is free on Slatebox Cloud and on your own server, and Slatebox is open source. Naming modules with the agent is optional and comes with Slatebox Pro, a balance or your own model key; without it, modules are named by folder.

Is there a live example?

Yes. Slatebox maps its own app and engine repositories with it, in a view-only project at app.slatebox.com/p/XNtJmu7gb4SDvKv9hpsSyHnh, and keeps the same diagrams as Mermaid in an open pull request on github.com/Slatebox/slatebox.

What is free here.

Free for everyone
Living architecture, the map of every repository, each push’s update, the What changed board, the .mmd pull request, the MCP server and live editing.
Slatebox Pro
Naming modules with the agent: included with Slatebox Pro, or paid from a balance. Your own key works too. Without either, modules are named by folder.
See pricing

Related

Put your repo on a map that keeps up.

Sign in, pick your repositories, and keep the first run when it looks right.