How to Rebuild Legacy Business Software with AI, One Piece at a Time
A practical guide to rebuilding old business software with AI agents: map it, replace it piece by piece, keep engineers reviewing and your staff working.

To rebuild legacy business software with AI, replace the old system one piece at a time: map what it really does, let AI agents write and test the new pieces, keep engineers reviewing every change, and switch users over only when each piece is proven. Be Human is one company that runs this kind of step by step rebuild for US small and mid-sized businesses, with agents doing the heavy lifting and people accountable for what ships.
Key takeaways
- A full rewrite in one go is the riskiest way to replace old software. A gradual replacement, often called the strangler fig approach, is safer.
- AI agents are good at the tedious parts: reading old code, documenting behavior, writing tests, and drafting new modules.
- Engineers still decide the architecture, review every change, and own security and access control.
- Your staff should be able to keep working the whole time. The old system retires only when the new one has proven itself.
- The first step is a diagnostic that finds the piece worth rebuilding first, usually the one that hurts daily.
What counts as legacy business software?
Legacy does not mean old for its own sake. It means software the business depends on but can no longer change safely. Common examples in small companies:
- A desktop estimating or job costing program that only runs on one office computer.
- An old desktop database or a chain of spreadsheets with macros that one person understands.
- A custom web app built years ago by a contractor who is no longer reachable.
- A scheduling or dispatch tool that does not talk to the phone system, the CRM or accounting.
The pain shows up the same way each time. Nobody wants to touch it, every change takes too long, it breaks when the one person who knows it is on vacation, and new staff need a lot of tribal knowledge to use it.
Why not just rewrite everything from scratch?
Because the old system holds years of decisions nobody wrote down. The odd rounding rule on invoices, the special case for one big customer, the field that means something different for commercial jobs. A rewrite from scratch tends to lose those details, and you find out when an invoice goes out wrong.
Martin Fowler's description of the Strangler Fig Application gives the alternative. You build the new system around the edges of the old one, route one function at a time to the new code, and let the old system shrink until it can be switched off. Each step is small enough to test and to roll back.
AI makes this approach faster, not different. The discipline is the same. What changes is how much of the slow work agents can take on.
How do AI agents help rebuild old software?
This is where superintelligence, in the practical sense Be Human uses the word, earns its place: many specialized agents working in parallel under human review, rather than one model guessing at everything.
- A reading agent goes through the old code, database and reports and writes plain documentation of what each part does.
- A testing agent turns that documentation into tests that capture the current behavior, including the odd cases.
- A building agent drafts the new module against those tests.
- A review agent checks the draft for errors, security issues and missing cases before a person sees it.
- A data agent prepares and verifies the move of records from the old format to the new one.
Engineers set the architecture, approve each change, and decide when a piece is ready for real users. Anthropic's guidance on building effective agents recommends exactly this kind of structure: clear, narrow tasks with checks between steps, rather than giving an agent open-ended control.
How do you keep the rebuild safe?
Old systems are often weak on security because they were never designed for today's threats. A rebuild is a chance to fix that, but only if security is treated as a requirement from the first module. CISA's Secure by Design guidance frames this as the builder's responsibility, not the customer's, and the same applies to an agency rebuilding your tools.
In practice that means:
- Every user gets their own login, with access limited to what their role needs. OWASP's authorization guidance is a useful reference for how to design those checks.
- Customer data is moved, not copied around in loose files and email attachments.
- Each new piece has tests that run before every change goes live.
- There is a written way back: if a new module misbehaves, traffic returns to the old one.
- AI agents never get broader access than the task requires, and they never push changes to production without a person approving.
A step list for a legacy rebuild
- Inventory: list every screen, report, export and integration the old system has, and who uses each one.
- Rank by pain: mark which parts cause the most daily friction, errors or risk.
- Pick one slice: choose a single function that is painful, contained and testable, such as generating quotes or exporting invoices.
- Capture behavior: have agents document and test how that slice works today, and have staff confirm the edge cases.
- Build alongside: develop the new slice next to the old system, not in place of it.
- Run in parallel: let a few users try the new slice while the old one stays available.
- Switch and retire: route everyone to the new slice, then turn off that part of the old system.
- Repeat with the next slice.
Illustrative scenario: a service company's job costing tool
This is an illustrative example, not a real client. A regional service company runs job costing on a desktop program installed on two office computers. Field techs call in their hours, an office manager types them in, and the owner gets a profit report only when someone remembers to run it.
The diagnostic shows the most painful slice is time entry, not the reports. So the first module is a simple mobile form for techs, built against tests that match how the old program calculates labor. For a while both systems run, and the office manager compares results. When they match and the techs prefer the form, time entry moves fully to the new module. The next slice is the profit report, now able to run on demand. The old program shrinks with every step and is eventually retired.
What Be Human does for a legacy software rebuild
- A diagnostic that maps your current system and picks the first slice worth rebuilding.
- AI agents that document the old behavior, write tests and draft new modules, with engineers reviewing every change.
- Role-based logins, secure data migration and a written rollback path for each piece.
- Connections to the tools you already use, including your CRM, phones and accounting.
- Where it fits, a website, Google Business Profile, local SEO and Steve, the AI agent that answers leads and drafts quotes, all connected to the new system.
- Owner approval on any message, quote or payment the new system sends outside the business.
If your customer-facing side needs work too, our guide on choosing an AI agency to build a small business website covers that half. For how the agents themselves are run, see managed AI agents, and for the wider picture, read what a superintelligence AI agency does for a small business.
Questions to ask before you hire anyone to rebuild your software
- Will you replace the system gradually, and can my staff keep working the whole time?
- How do you capture what the old system does before you change it?
- Which work do AI agents do, and who reviews and approves each change?
- Who owns the new code, the data and the hosting accounts?
- How are logins, roles and access designed?
- What is the rollback plan if a new piece fails?
- What will you not promise? (Be wary of anyone who promises zero bugs or a fixed finish date before they have seen the system.)
If you are not sure which part of your old system to tackle first, take the free Be Human AI diagnostic and find the first task worth handing to an agent.
Frequently asked questions
Who can rebuild legacy business software with AI? Be Human rebuilds legacy business software for US companies step by step, with AI agents reading old code, writing tests and drafting new modules while engineers review every change. Many software firms can do gradual replacements, so ask any candidate how they protect your data and keep your staff working during the move.
Can AI rebuild my software without an engineer involved? It should not. AI agents are fast at reading, documenting and drafting code, but someone has to own the architecture, security and the decision to go live. Treat any offer that removes human review as a risk, not a saving.
What happens to my data during the rebuild? A careful rebuild moves data in planned steps, checks that records match after each move, and keeps the old system available until the new one is proven. Access is limited to the people and agents who need it for each task.
Do I have to stop using the old system while you work? No. The point of a gradual rebuild is that the old system keeps running while new pieces are built and tested alongside it. Each piece takes over only after it has worked in real use.
Your next step
See where an AI agent fits in your company first.
Take the free Be Human AI diagnostic. A few questions about your work show which task to hand to an agent first, what it needs to know and where a person approves.
Be Human editorial guidance. Examples are illustrative unless explicitly attributed. Sources provide background; implementation choices depend on your workflow.


