AI code cleanup for a codebase
nobody can change
You shipped fast with AI. Now a small feature takes days, fixing one thing breaks two others, and nobody can explain why half the code exists.
You get a straight answer from the engineers who would do the work.
The code is not usually the problem
AI writes code fine. It writes more of it than you need, and it never refuses.
Ask a model to add a feature that needs a decision and it will add the feature without making the decision. Do that forty times and you have a codebase with three ways to do the same thing, no record of why any of them exist, and tests that pass without proving anything.
What you are untangling is decisions that were never made, forty times over.
If that sounds familiar, five signs your AI-generated codebase is becoming a liability goes through it in more detail.
Before you pay anyone, the health checklist runs twelve checks you can do yourself this afternoon. If most of them pass, we are probably not the right call, and you will have saved the money.
What we do about it
Audit, untangle, refactor, sustain, in that order. Each step is spelled out on the framework page. What matters here is what you end up holding.
What you get back
- A prioritised list of what is risky and what to fix first, with the evidence for each item
- A keep, fix or remove triage across the whole codebase, ranked by risk
- A dependency map showing what breaks when something changes
- Tests that fail when the behaviour is wrong, rather than tests that raise a coverage number
- Decision records, so the codebase explains itself to the next person
- Linting and CI set up for your stack, gating merges
- Onboarding docs, so the next hire is useful in days rather than weeks
When teams call us
Most of our work starts with one of these.
- A senior engineer opened the repository and asked what this is
- Due diligence or an enterprise security review is coming
- Every release breaks something, and confidence has gone
- The person who built it has left, or is the founder and is now out of their depth
- Tests exist, the suite is green, and nobody trusts it
The last one is the common one. A green suite over code nobody can change is worse than no suite at all, because it gives false confidence.
What you are actually buying
We clean up what is there.
A rewrite throws away working behaviour and the decisions baked into it, then hands you a new unknown to learn. It is almost never the right call, and if you ask for one we will say so.
One scoped project, then we leave.
You hire us for a piece of work. There is nothing to cancel afterwards and no tooling you have to keep paying for.
We stay to implement.
If we recommend something, we can do it. You are not buying a report that gets filed.
Judgment, rather than another tool.
The thing that created the inconsistencies cannot reliably notice them. It adds code. It does not delete it.
An engineer's answer, not a sales process.
One email, one honest answer, and a number before anything starts.
What we do and do not do covers the rest.
How it starts, and what it costs
Every engagement starts with an audit. It is the first step of the work, it is paid, and it is what defines the price. We read the repository, tell you where you stand, including the parts that are fine, and then quote a fixed number for whatever work you want done. Nothing after the audit starts until you have that number.
To be plain about it, the audit is not a free consultation and it is not a product you buy on its own. It is how a project begins here, and it is the only way we can price the rest without guessing.
There is also no "from €X" on this page. A three week old MVP with four thousand lines and a four year old product with two hundred thousand are not the same job. A price pretending otherwise would be the first thing we told you that was not quite true.
The findings are yours. You can act on them with us or without us, and taking them to your own team is a reasonable outcome rather than a wasted audit.
Questions we get asked
Is the audit free?
No. The audit is paid work, and it is the first step of an engagement rather than a free consultation in front of one. It is also the step that defines the price, which is a strange thing to give away.
What does it cost?
We cannot answer that honestly before we have read the repository, and the audit is how we fix that. The size and state of the codebase drive the price, not the hours. You get a fixed figure for the work before anything starts, and you can stop after the audit and act on the findings elsewhere if you want to.
How long does it take?
An audit takes three to five working days for most repositories. On a large codebase we start with the riskiest services, read those closely, and expand from there, so the first findings arrive early and you always know which parts we have read. Any refactoring after it depends on what the audit finds, and we scope that with you before we start. We do not disappear for three weeks and come back with a rewrite.
Which stacks do you work in?
Python, Go, and Terraform on AWS are where we are strongest. If your codebase is mostly something else, we will say so in the first email rather than learn it on your time.
Will you rewrite our codebase?
Almost never, and we will say so if you ask for one. Most of the value is in triage and targeted restructuring, so you keep your product, your history and the behaviour that already works.
Can we just ask Cursor or Claude to refactor it?
You can, and people do. The problem is that you are asking the tool that produced the inconsistencies to notice them. It will generate more code instead of deciding what to delete, and deciding is the missing part.
Will you work with our team, or on your own?
With your team, in your repository, on a branch you review. Pairing and code review are part of the engagement. When we leave, your team should be able to keep the codebase clean without us.
Do we have to give you production access?
No. Most of the work happens on a repository copy or a branch, read only where that is enough. NDAs are fine.
What if you look at our codebase and it is fine?
Then we tell you it is fine and send you back to shipping. An audit that ends in you are fine is a real result, and a cheaper one for you than an audit that has to find something in order to sell it.
What do we actually get at the end of an audit?
A prioritised list of what is risky and what to fix first. A keep, fix or remove triage ranked by risk rather than by tidiness. A dependency map showing what breaks when something changes. Summaries you can read, not a report nobody opens twice.
Still reading because something here is familiar?
Tell us what is going on. Describe the codebase in your own words, however badly it reflects on whoever built it. You will get an engineer's answer, not a discovery call.