---
uid: application-development.existing-codebases
description: "Get all the benefits of Intent Architect on your existing codebase. An AI agent reverse-engineers your system's design straight from your code, in any language, and the drift engine keeps that design true to your code from then on."
---

# Using Intent Architect on an existing codebase: what to expect

Get all the benefits of Intent Architect on your existing codebase. An AI agent reverse-engineers your system into Intent Architect, in whatever languages and frameworks you use: your applications, your system's design and clear diagrams of each area. Your code and your patterns stay exactly as they are. From then on, the drift engine keeps the design and the code in step, so the picture your team works from is always accurate.

This page explains what you get and how it works. To get started, see [Bring an existing codebase into Intent Architect](https://docs.intentarchitect.com/docs-md/how-to-guides/bring-in-an-existing-codebase/bring-in-an-existing-codebase.md).

## Your applications, set up for you

The agent works out how your system is deployed and creates an Intent Architect application for each part of it, such as an API and its front end. Each application sits over its code right where it is in your repository, so nothing moves.

It also adds your repository's own build and test commands as tasks, so you and your coding agents can run them from Intent Architect.

## Your system's design, visualized

The agent models your system across the layers you choose: your domain and how it's stored, your APIs and the services behind them, the messages between your services, and your front end's pages and the API calls they make. It links them all up, so you can follow a page through the API it calls to the service and the data behind it.

Then it draws focused diagrams, one for each area of your system, so anyone on the team can understand a part of it at a glance.

![The User Interface designer showing each React page, the API client calls it makes, and the backend operations they reach](images/ui-diagram.png)
_The front end of the Acme Orders sample: each page, the API calls it makes, and the backend operation each call reaches._

Together they form a living design blueprint of your system. See [Authoritative Design Blueprints](https://docs.intentarchitect.com/docs-md/key-concepts/authoritative-design-blueprints.md).

## Hard guardrails ensure AI keeps code and design aligned

Once your codebase is in, you direct the work and the AI does it: ask for a feature, and the agent changes your code and your design together. The drift engine governs every one of those changes. Each time the agent runs the Software Factory, the drift engine checks the design against the code. It's deterministic: it reads your code with real parsers, not AI, so the same code and design always give the same answer.

If the agent got something wrong, or left part of the change out of the design, the drift engine tells it exactly what, down to the file and line, and the agent puts it right before it reports back. You get the change back complete, in the code and in the design, without having to step in.

![A drift report showing an endpoint whose route in the code no longer matches the design](images/drift-report.png)
_What the agent sees when the design and the code disagree._

That makes your design a hard guardrail for agentic development. Agents can't quietly drift away from it, the diagrams your team relies on always match the code, and Change Review shows every design change the AI made as a visual diff. See [Reliable Architectural Guardrails](https://docs.intentarchitect.com/docs-md/key-concepts/architectural-guardrails.md).

## Any stack, and your own patterns

It works with the code you have: C#, Java, Python, TypeScript and JavaScript, with frameworks such as ASP.NET Core, Spring, EF Core, JPA, React, Angular, Vue and Blazor.

Every codebase also has its own conventions, such as house frameworks, helpers and patterns. You can adapt the standard modelling to your patterns, and extend Intent Architect with your own modelling and drift rules, so the design captures and enforces what matters in your system. The agent sets this up during the run wherever your code needs it, and you can add more at any time with `/create-custom-drift-rules`.

## Your code stays as it is

Bringing in a codebase doesn't rewrite it. The agent describes your code in the model, and doesn't generate or change it, so your existing code, structure and conventions stay exactly as they were. Intent Architect keeps its own files alongside your code, mostly in an `intent` folder, ready to commit with the rest of your repository.

## How the run works

You create a solution in your repository, run `/initialize-brown-field` in the AI Assistant, and answer a few questions: how to split your code into applications, which layers to model, and whether to zone your code for Change Review. The agent takes it from there. It sets up the applications, models each layer, checks every one with the drift engine, proves the check catches a change, and draws the diagrams.

The agent works through your system one application and one layer at a time, so you can get on with other work while it runs. The Acme Orders sample, an API and a React front end, was done in just over an hour, and a large system with many services takes longer. The agent records its progress as it goes, so a long run can always pick up where it left off.

When it's done, it gives you a summary of what it modelled, flags anything in your code that looks like a bug for you to review, and suggests next steps.

## Related articles

- [Bring an existing codebase into Intent Architect](https://docs.intentarchitect.com/docs-md/how-to-guides/bring-in-an-existing-codebase/bring-in-an-existing-codebase.md) - bring your codebase in, step by step.
- [Authoritative Design Blueprints](https://docs.intentarchitect.com/docs-md/key-concepts/authoritative-design-blueprints.md) - how living design blueprints keep your team on top of your system's design.
- [Reliable Architectural Guardrails](https://docs.intentarchitect.com/docs-md/key-concepts/architectural-guardrails.md) - how Intent Architect's guardrails keep AI-assisted development on track.
- [Classify your codebase so reviews focus on what matters](https://docs.intentarchitect.com/docs-md/how-to-guides/classify-your-codebase/classify-your-codebase.md) - zone your code so reviews focus on what matters.
