For teams that write code with AI agents

Architecture that stays
true to your code.

Your AI builds a C4 model from your code, checks it after every change and finds antipatterns and security threats. Add it to your pipeline and every merge request gets checked. You decide what reaches the model.

Every finding of your AI comes with evidence the server checks against the code itself: file, line and quote. The work goes step by step with checks, changes arrive as a branch, and you merge them.

No repository upload. Your AI reads the code in your environment.

One model · Four levelsChoose a level ↓
L2 · Services and relationships

From repository to a working model

See the system.
Review what changed.

Familiar cards, useful levels of detail and AI proposals you can review before applying.

Demo shop / Online shop / ModelInteractive example · Keystone cards
Demo shop/Model

Swipe across the model →

SystemOnline shopContainers · architecture sliceHTTPSSQLPublishes events
Application
Web shopCatalog, cart and checkout
ReactTypeScript
Container
orders-serviceOrders and payments
Java 21Spring BootDocker
Topic
order-eventsOrder events for other services
Kafka
Database
Orders DBOrders, payments and refunds
PostgreSQL 16
L2 · Services and relationships
Model built from repositoryExample project

Review before changing

AI proposes.
You decide.

Review the detected change and apply it to the model. Your AI reads the code in your own environment.

Open components or tables from a card’s bottom plate.

From the first connection to every change

Your AI keeps the model current.
The model gives your AI focused context.

Code changes become proposals. The model gives back the architecture slice your AI needs for its next task. You stay the reviewer.

Connect your AI

Add Keystone’s MCP connection to your existing tool. Ask your AI to build the model from code, configuration and migrations.

Review the proposal

See the new elements, relationships and descriptions. Apply the changes that match how your system works.

Keep it current

After code changes, ask your AI to check for drift. Or call it straight from your pipeline, and it adds the changes to the model by itself.

REPOmainMODELKeystonea3f9e1 · init orderse48d02 · feat: refunds91ac3f · add audit_logAI READS CODEThe first modelElements, links, descriptionsAI PROPOSESThe API changedReview → applyAI READS MIGRATIONA new tableUpdate ER after reviewAI reads one moduleAI reads the relevant DBv1v2v3
Code → Model

AI builds. You review.

Code, configuration and migrations become a proposal. You accept the changes.

Model → AI

Context for the next step.

AI gets a module, its API or the relevant database instead of exploring the whole system again.

Code → AI → proposal → your review → modelModel → focused context for AI

Connect through MCP with Claude Code, Cursor, VS Code with Copilot, Gemini CLI and other tools.

Connect your AI

Your AI keeps the picture current.
Your team knows what to trust.

Context that fits the task

The right slice.
Fewer tokens.

For a question about one module, your AI reads that module, its API and its relationships. Questions about the whole system still get the full graph.

Explore the method and data Context for AI agents
−77%

input tokens
per module question

The whole graph97,900
The relevant module22,600
Average input tokens. Same question, same facts in the answer.

Measured on one anonymized project with 281 elements, using Claude Haiku across 120 trials. Questions covered modules, APIs and change impact. These results apply to that task set; system wide questions still require the full graph.

Connected to the model

One system.
More clarity for your team.

Diagrams, scenarios and decisions stay together. Your team and your AI work from the same picture.

C4 / ER

From context to columns

Systems, containers, components and data. The right depth for the architectural question.

FLOWS

Follow the request

Play scenarios on the model and inspect the interactions in a sequence diagram.

ADR

Keep the reason behind decisions

Attach decisions to the elements they affect. Return to the reasoning as code and requirements change.

REVIEW

Find drift and antipatterns

Check the model against the code. Each antipattern comes with the exact relationships, a priority and a fix plan.

TEAM

Discuss it in context

Live editing, comments, roles and project access. Keep the conversation beside the model.

STRIDE

Check security against the code

Your AI finds where requests come in from outside and where sensitive data lives, then checks common threats against the code: spoofing, tampering, data leaks, privilege escalation. Each threat is tied to an element on the model.

Before you start

Good questions.
Clear answers.

Looking for setup or deployment details? They’re in the documentation.

Open the documentation

Does Keystone receive my source code?

You don’t upload the repository to Keystone. Your AI reads the code in your own environment and sends Keystone what it learns about the architecture: elements, relationships, descriptions and evidence. Descriptions and evidence may contain pieces of code. The code itself is processed by the AI provider you choose, not by Keystone. Companies can also run Keystone inside their own network.

Which AI tools does it work with?

Tools that support MCP, including Claude Code, Cursor, VS Code with Copilot, Gemini CLI and Windsurf. The docs cover connection steps.

Is this a vulnerability scanner?

No. Keystone doesn’t scan dependencies for CVEs. It builds a threat model: your AI finds trust boundaries and sensitive data, checks STRIDE threats against the code (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege) and ties each one to the model. A dependency scanner complements it.

Can I start for free?

There’s a free plan with limits on keystone-core.pro. Start a model and see how the workflow fits your project.

Can we host it ourselves?

Yes. A self hosted edition is available for teams that need Keystone inside their own network. Talk to us about deployment.

Does AI change the model without me?

Not unless you turn it on. An AI proposal arrives as a branch that a person reviews and merges. A project can merge proposals without conflicts automatically; a proposal with conflicts still waits for a person.

What if I already have a diagram?

You can draw and edit the model yourself. Connect AI later to check drift, add descriptions or look for architectural antipatterns.

Can I take the model with me?

Yes. PNG and SVG for discussion; Markdown with Mermaid, Structurizr DSL, Obsidian notes and JSON of the whole project for further work.

Start with your own system

Keep your architecture
true to your code.

Build your first model. Bring your team into the picture. Keep code and decisions connected.

Build your model free

Free plan available · Connect through MCP