# Who Maintains Your Software After the Agency That Built It Leaves?

_Author: Gaurav · Published: 2026-11-30 · Read time: 9 min · URL: https://wfnext.com/blog/who-maintains-your-software-after-agency-leaves/_

## TL;DR

> Agency handovers fail because documentation is minimal, the people who built the code aren't available to answer questions, and the new team has to learn the system under production pressure. The fix is overlapping the agency and the maintenance engineer before the contract ends, not after. If the agency is already gone, the approach is a structured audit: read the code, run the tests, understand what breaks in what order, and document as you go.

An agency builds your product, the engagement ends, and you're left holding a codebase you didn't write, with documentation that covers maybe 30% of the actual decisions that were made, and no one on the other end of a Slack message who can explain why the payment webhook is structured the way it is. This is an extremely common situation and it goes badly in a predictable pattern. Here's what actually happens, and how to get through it without a production incident taking the product down before you've figured out who to call.

## What documentation do most agencies leave behind?

Less than you think, and less than they promised. The standard agency handover includes a README with setup instructions, some API documentation if you're lucky, and a rough architecture diagram that was accurate when it was drawn six months ago. What it typically does not include: an explanation of the business logic that isn't obvious from the code, a list of known bugs and workarounds, documentation of environment-specific configuration that lives in someone's head, or an explanation of why certain decisions were made the way they were. The absence of that last category is the one that causes the most pain. When you encounter a function that handles a weird edge case in an unexpected way, the question you need answered is "is this intentional or is this a bug," and without the person who wrote it, you're guessing. The first month after a handover is usually spent discovering these gaps rather than making progress.

## What breaks first after an agency hands over the codebase?

Deployments. The agency had a deployment process that worked for them, involving specific credentials, specific environment variables, and specific steps that were tribal knowledge. What they handed over is a CI/CD config that assumes those things exist, without explaining what they are or where they come from. The second thing that breaks is external integrations. Third-party APIs, webhooks, background jobs, email providers, payment gateways: all of these involve configuration that lives partly in the codebase and partly in external dashboards, and the agency had access to both. After the handover, you have the codebase but may not have been handed over the external configurations, the credentials, or even the accounts. The third thing that breaks is monitoring. The agency likely had some visibility into what was happening in production. After the handover, that visibility disappears unless it was explicitly transferred and set up again, and you're now operating blind until the first incident teaches you what you need to watch.

## How do you audit a codebase you just inherited?

Systematically, starting with what can go wrong in production rather than with the code structure itself. First map the entry points: every HTTP endpoint, every background job, every scheduled task, every webhook handler. These are the places where real-world events trigger real behavior, and understanding them tells you what the system actually does in production versus what the README says it does. Next, understand the database schema and the relationships between tables. The schema is usually the most honest documentation of the data model, because it's the one thing that had to match reality to work at all. Then find the external dependencies: every third-party API call, every integration with a payment provider, email service, or infrastructure service. These are the places that break when credentials expire, APIs deprecate, or external services change their behavior. Finally, run the tests and note what percentage of the codebase is covered. If test coverage is below 40%, you're maintaining without a safety net and you need to add tests as you go, not defer them.

## What does a maintenance engineer actually do in the first 30 days?

Three things. First, they build a map of the system by reading the code, running it locally, and documenting what they find. Not a perfect map, but enough to know where the critical paths are and where the landmines are. Second, they establish a baseline by getting a working local development environment, a working staging environment, and a working deployment process. Without this, every change is a risk because you can't test it before it goes to production. Third, they start logging and monitoring if it isn't already in place, so that when something breaks in production you know about it before a user tells you. Good maintenance engineers don't try to understand everything before making any changes. They understand enough to change safely, change incrementally, and document as they go. For what good integration looks like in the first month, [the first 30 days with a new dedicated engineer](/blog/first-30-days-with-new-dedicated-engineer/) covers the same ramp-up pattern from the team management side.

## How do you prevent this problem before the agency leaves?

Overlap. Bring in the maintenance engineer while the agency is still accessible. Even two weeks of overlap where the new engineer can ask questions and get answers from the people who wrote the code is worth more than the best documentation the agency could produce. During overlap, the new engineer should run through the deployment process under supervision, trigger a few key workflows to understand the system, and ask about every place where the documentation says "see configuration" rather than giving the actual values. If the agency is unwilling to do an overlap period, that's a signal about how the engagement is being managed, and you should escalate the conversation about documentation and knowledge transfer before the contract ends, not after.

## When should you bring in a dedicated maintenance engineer versus a one-off audit?

If the product is in active use and needs to keep running and evolving, you need ongoing ownership, not a one-off audit. A one-off audit tells you what the codebase contains and where the risks are. It doesn't fix anything, it doesn't maintain anything, and it doesn't stop the system from drifting further from what the original documentation described. An audit is a starting point, not a solution. A dedicated engineer who takes ownership of the codebase, runs the deployments, monitors production, and extends the product over time is the solution. The audit is the first month of that engagement. If the product is basically finished and doesn't need active development, a lighter arrangement where someone is on retainer to handle incidents and security patches may be enough, but most products that are in production use need active engineering at some cadence. The [software engineer hire page](/hire/software-engineers/) covers how we approach ownership-first placement, and [why teams stay](/why-teams-stay/) explains the retention model that makes ongoing maintenance work rather than creating another transition problem down the road. If the codebase you inherited is particularly difficult because nobody wants to touch it, [how a remote engineer takes over legacy code safely](/blog/legacy-code-remote-engineer-takeover/) goes deeper on that specific situation.

## Frequently asked questions

### What should an agency include in a software handover?

At minimum: a working local development setup, a documented deployment process, all credentials and environment variable documentation, a list of all external integrations and how to access them, an explanation of the business logic that isn't obvious from the code, and a list of known issues and workarounds. In practice, most agencies deliver much less than this.

### How long does it take for a new engineer to become productive in an inherited codebase?

For a typical web application, 2 to 4 weeks to reach a point where they can make changes safely and confidently. For a larger or more complex codebase, 4 to 8 weeks. The timeline is heavily influenced by the quality of the documentation and whether the previous team is available to answer questions.

### What are the highest-risk areas in an inherited codebase?

External integrations (payment gateways, email providers, webhooks), deployment configuration, authentication and session handling, and any business-critical workflows with no test coverage. These are the places that break in production in ways that are hard to diagnose without prior knowledge of the system.

### Should I hire the same agency to maintain the software they built?

It depends on the relationship and their maintenance model. Agencies that are project-focused typically don't offer good ongoing maintenance support because their cost structure and staffing model are built for new project work, not for the steady operational cadence of maintenance. Dedicated engineers are usually better suited to maintenance than project teams.

### What happens if the agency is already gone and there's no overlap possible?

Start with the audit approach: map the entry points, understand the schema, identify the external dependencies, and document as you go. Prioritize the production-critical paths first. This takes longer without the agency available to answer questions, but it's the same process.

### How do I know if the engineer I'm bringing in is good at this kind of work?

Ask them to describe a codebase they took over that was poorly documented, what they did in the first month, and what they found that surprised them. Good maintenance engineers have specific stories about this. They can tell you what the system turned out to actually do versus what it was supposed to do, and how they figured out the difference.

---

Published by Workforce Next (https://wfnext.com).
Workforce Next is an IT consulting and IT engineering company that helps growing businesses hire pre-vetted developers and teams from India.
