Recipe · Code

Your architecture, redrawn on every merge, and drawn again for every pull request.

Turn on Living architecture and Pull request impact in a project. Each push redraws the map from your code, each pull request gets a slate of what it changes, and reviewers mark it up with stickies.

Free on Slatebox Cloud and self-host. Naming modules with the agent is optional.

Turn it on

Set it up in a few minutes.

  1. Add Living architecture

    Open a project, then Recipes, Add a recipe, Living architecture. Choose Install Slatebox on GitHub and pick the repos.

  2. Choose who names modules

    Optional: turn off “Name modules with the agent”. The recipe then names modules by folder and uses no agent work.

  3. Keep the first run

    Preview the first run, Turn on, then Keep all.

  4. Add Pull request impact

    Add it the same way. “Where the impact goes” can be the slate, a comment, or both.

  5. Allow the PR comment

    Grant “Comment on pull requests” under Changes outside Slatebox if you want the diagram on the pull request.

  6. Give your coding agents the map

    Optional: add Diagrams as code and map the Service map, Modules and API surface slates. They are committed as docs/architecture/*.mmd.

On a self-hosted Slatebox, recipes stay off until a server admin turns them on in Admin, Recipes. A team admin can turn them off in Team settings.

How it runs

How do I keep an architecture diagram up to date automatically?

Slatebox redraws your service map, module graph and API surface on every push to the default branch, and draws what each pull request changes. Free, open source, suggest-first.

  1. Every push to the default branch, after a 2-minute quiet time and again at 03:00, redraws the Service map, Modules and API surface. The “What changed” board lists new services, edges and endpoints.
  2. It reads compose, Kubernetes, Helm, Terraform, serverless, JS and TS, Python, Go, Java, Rust, Ruby, OpenAPI, GraphQL, proto, routes and CODEOWNERS, and it flags cycles.
  3. Every pull request with 3 or more changed files gets a slate in the Pull requests folder: what it adds, removes and touches. A changed manifest or infrastructure file counts even below 3. Drafts and PRs labeled no-slatebox are skipped.
  4. With permission, the pull request gets one diagram comment, edited in place on each push. Reviewers see the architecture diff where they already review.
  5. A reviewer marks up the PR slate with stickies. A note a person rewords or restyles becomes theirs, and the recipe never touches it again.
  6. Coding agents read the map before a big change: export_mermaid over the Slatebox MCP server, or the committed .mmd files and one line in AGENTS.md.
  7. Outbound webhooks fire architecture.new_dependency, architecture.cycle_detected and pr_impact.service_changed for your own alerts.

Where you decide

What runs by itself, and what waits for you.

Nothing outside Slatebox changes without a standing permission or an Approve.
Runs by itselfA person decides
Redrawing the map on each push and every night, once you keep the first run and turn on automatic updatesKeeping the first run
Drawing each pull request’s impact slateGranting the PR comment and the neutral “Slatebox architecture” check
Anything a person edited stays theirs

What this recipe uses

Questions

What people ask.

Does it push to my repo?

Not by itself. The comment and the check each need a permission you grant. Mermaid files go only to a pull request on a slatebox/ branch, with Diagrams as code.

What languages does it read?

Compose, Kubernetes, Helm, Terraform, serverless, JS and TS, Python, Go, Java, Rust, Ruby, OpenAPI, GraphQL, proto, routes and CODEOWNERS. Modules are named by folder unless you let the agent name them.

Will a big repo turn into a hairball?

Modules drill down into their own slates in a Modules folder. A pull request’s slate shows only what that pull request touches.

What does it cost?

Recipes are free on Slatebox Cloud and self-host. Naming modules uses the agent: Slatebox Pro credits or your own key on Cloud. Without either, the recipe still draws by folder.

What is free here.

Free for everyone
Living architecture, Pull request impact and Diagrams as code, the map, every PR slate, webhooks and the MCP server.
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

For teams. Slatebox Business on Slatebox Cloud gives your team single sign-on, people added and removed automatically from your identity provider, the team activity log of recipe runs and changes outside Slatebox, and the agent and calls for every member. See Slatebox Business

More recipes

Plug in the next one.

Put your repo on a map that keeps up.

Start free, open a project and add Living architecture. The first run only suggests.