Main image of article AI Code Rescue Is Contract Work. Price It Like One

A client hands you an AI-built app; it runs, and the list of bugs looks manageable, but you have no idea what the codebase looks like because you didn’t build it. Then you find out the repository it leans on and the app customers are using are not exactly in harmony. Any estimate based on the handoff alone might leave out much of the work it takes to make the app production-ready and reliable for users.

Developers who take over these projects and clients who hire them have learned to ask for more concrete terms before they agree on a price. They want to see what’s running, which problems need to be addressed and how they’ll verify it all works. Their experiences show how those answers can turn a quick fix into a larger job, make a partial rebuild the better deal, or give either side a reason to walk away without damaging the relationship.

Establish What’s Running Before You Quote the Fix

Juan Chen, founder of FLOURISHAIHR Inc., says a partial deployment removed two server functions from his company’s résumé-checking site. The $9 checkout kept working, but the report customers paid for was unavailable for about 12 hours. The deployment summary gave him no indication that the functions were gone.

Chen says the team agreed on the exact scope of the change before pricing it. “Before anyone quoted the fix, discovery produced three artifacts: a manifest of the current published deployment (every file, with hashes), a diff showing exactly which paths a proposed change would touch, and a list of money-path pages to spot-check afterwards. Only when the diff matched the approved change set exactly was implementation priced.”

On another site, the local source tree had 60 files while the live deployment had 149, Chen says. His team ruled out any quote based on the local copy until they had established what was actually running. For a developer inheriting an app, that changes where discovery starts. A repository may explain how the app was built, but the live deployment is where the client needs the repair to work.

Timur Rakhmatullin, a senior software engineer at Softline Solutions, spends two or three days on what he calls a “code autopsy” before giving a client an estimate. He looks at what the tests actually verify, checks how the application behaves under load and looks for hardcoded secrets.

“The client gets a written report. Here is what works, here is what is dangerous, here is what I would throw away. That report is the deliverable before any estimate happens,” Rakhmatullin says.

He also checks how the application’s layers fit together. “I trace one real user request from the frontend all the way to the database and back, reading every line it touches.”

The analytics dashboard he was brought in to rescue looked polished in the browser. Inside, Rakhmatullin says, some React components ran to 800 lines. Features had been built in large, self-contained blocks, leaving little reusable code. That gave him a reason to examine the architecture even though the interface looked finished.

The first estimate can still move. Rakhmatullin initially scoped an analytics dashboard rescue at about three weeks. When he examined its infrastructure configuration, he found that the service account had project-wide Owner permissions and that the deployment lacked network segmentation. Adding infrastructure work brought his estimate closer to seven weeks. The client could see which finding had expanded the job and why.

On an inventory platform, Riken Shah, founder and CEO of OSP, proposed two weeks of paid discovery when the client was expecting three weeks of reporting fixes. The report mapped the architecture, ranked defects by business impact, recommended whether to repair or rebuild, and gave the client a budget with stated assumptions. The client owned the report and could take it to another vendor.

Shah says stock calculations were hardcoded in several places. That gave the client a more specific question than whether the reports could be fixed: Would the proposed work also cover the calculations feeding them? Ranking defects by business impact makes that decision part of the scope. The people who rely on the reports can tell the developer which numbers they use to make decisions, and the developer can explain which fixes the estimate covers and which ones would need a separate quote.

Define What Counts as Done

A list of existing defects gives the developer and client a record of what they found. Acceptance criteria give them a way to tell whether the agreed repair worked. Shah says he listed the defects identified during discovery on an e-commerce project and agreed with the client on which ones the job would cover.

“Acceptance meant a successful payment creates exactly one order and a failed one never creates a paid order. We owned what we changed. The rest was documented as existing risk,” Shah says.

Chen’s team applied the same discipline to deployment. They agreed in advance on the expected number of server functions and checked live pages against the approved build. “That split – inventory first, blame second – is what made a fixed quote possible at all,” Chen says.

Chen also describes how his team drew the line around the work. “Defects found in the live inventory during discovery were logged as pre-existing and explicitly out of scope; anything the rescue changed was ours to re-verify.”

That distinction matters when a defect turns up during sign-off. The client and developer can check whether it was already recorded, whether the rescue touched the affected behavior, and whether the agreed checks reproduced it. If the client wants a previously excluded problem fixed, both sides can discuss that work with the original scope in front of them.

Decide When to Rebuild or Walk Away

Paul Scolieri, founder of Lever Agency, inherited an order and quoting app for a custom framing manufacturer. The code was sound, he says, but the app reproduced the manual workflow the sales team already had in Excel. “There was no incentive to switch,” he says.

During discovery, Scolieri built a working pricing prototype from the spreadsheet so the owners could try an automated version of their process. The pricing engine turned out to be central to whether the app would be useful. His team chose to rebuild around it. Scolieri says integrating with the inherited code would still have been an option, especially if it had been running well in production.

Scolieri says the original plan appeared to leave the pricing engine for a later integration. His team saw it as central to the job. “But we treated the pricing engine as a foundational element for the entire project, and started building it from Day 1.”

That changed what the owners could evaluate during discovery. They could try the part of the app that would determine whether the sales team could move away from its spreadsheet. A demo of the order screens alone would have left that question open.

A rebuild can also have a narrower scope than the whole app. Shah describes a finance dashboard where the team kept the existing interface and replaced the code behind it. “On a finance dashboard, a backend rebuild took eight weeks against ten to twelve to repair, and we kept the frontend.”

The rebuild took eight weeks. The 10 to12-week figure was Shah’s comparison for repairing the backend. When the two options are priced separately, the client can ask which components the team can retain and whether replacing the rest would take less time than repairing it.

Chen draws a line at proposals to overwrite the entire live deployment. He says redeploying from stale snapshots twice wiped out months of live fixes across several of his sites. He now declines proposals that would replace the verified live deployment wholesale. Shah has a boundary on the vendor side. He declines fixed-price commitments before discovery.

A rescue proposal should give the client enough evidence to choose what to keep, what to repair, and what to replace. The developer should be able to point to the live behavior or business need behind each choice, explain how it affects the estimate, and show how the client will verify the result. That gives both sides a scope they can still use when the next defect turns up.