---
title: "Modernize an existing codebase"
description: "Import a legacy repo, map it, and evolve it safely with AI-driven pull requests."
url: https://evonx.ai/docs/use-cases/modernize-existing-code
locale: en
updated: 2026-09-04
---

# Modernize an existing codebase

Import a legacy repo, map it, and evolve it safely with AI-driven pull requests.

The software already exists — a tired .NET API, a React admin, a repo nobody
wants to rewrite. Evonx does not ask you to start over. You import GitHub, let
it map the code, then request changes as pull requests you still review.

## The path

1. [Connect GitHub](/docs/integrations/github) and
   [import the repositories](/docs/build/import-from-github) into a business.

2. Wait for the scan. Open the system graph and the
   [health report](/docs/launch/health-checks). High-severity risks are the first
   threads, not a rewrite of everything.

3. Start small: a copy change, a known bug, a field the team has wanted for
   years. [Preview](/docs/preview-and-debug/preview-hub) the result. Merge the
   [pull request](/docs/evolve/publishing-changes) on GitHub.

4. Grow the requests as the AI learns the conventions. Keep production deploys
   on your existing pipeline until you choose to
   [publish on Evonx](/docs/launch/publish-to-evonx) as well.

> **Tip**
> Calibrate with something you could revert in five minutes. A first thread that
> rewrites auth is how people lose trust in the loop.

## Related

- [Import from GitHub](/docs/build/import-from-github)
- [Health checks & recommendations](/docs/launch/health-checks)
