Emergency Code Rescue: What to Do When Your Only Engineer Quits

Last updated December 2026

If your only engineer quits, replacing them in an emergency begins with control, and hiring comes later. Use the first 72 hours to lock down admin ownership of the code, the cloud, the domain and the app store accounts, rotate every credential that engineer had, and put risky deploys on hold. After that, bring in a senior team to read the system before anybody touches it.

Most of what you will find on this subject is agency marketing that goes straight to “hire us.” It leaves out the part that decides whether any replacement can work: do you still own the accounts your product runs on, and could anyone deploy it tomorrow? This playbook deals with that first and gets to the replacement decision after.

How common is a one-engineer codebase?

It happens more often than founders expect. A study of 133 popular GitHub projects by Avelino, Passos, Hora, and Valente found that 34% of the systems had a truck factor of 1, so a single departure would leave the code with nobody who understands it, and 65% had a truck factor of 2 or lower. And those were well-known open source projects with lots of contributors. A startup MVP built by one engineer has a truck factor of 1 by definition.

AI-assisted development adds a particular twist. A solo engineer using Cursor or Claude Code can ship a large amount of code fast, while the reasoning behind it sits in chat sessions on their laptop instead of in the repository. Once they leave, you keep the code and lose the context.

What does emergency software developer replacement require in the first 72 hours?

Work through these in order, since each step protects the one after it.

  1. Confirm ownership of the source code. Make sure the repository lives in an organization account you control and not in the engineer’s personal account. According to GitHub’s documentation on transferring a repository, a transfer requires administrator access, and issues, pull requests, the wiki, stars and watchers all go with the repo. If it is a personal repo, request the transfer before their last day. An invitation to transfer from a personal account expires when the new owner fails to accept it within one day, so be ready to accept right away.
  2. List every account the product depends on. Work from the inventory table below and note, for each account, who has owner or admin rights right now.
  3. Add a second owner, then remove the departing engineer. Do not pull access until a company-controlled owner is on the account, or you risk locking yourself out.
  4. Rotate secrets. That means API keys, database passwords, signing keys, OAuth client secrets and any token stored in environment variables or CI settings. Treat anything the engineer could see as already known outside the company.
  5. Freeze non-urgent deploys. Until somebody can walk through the deploy path from start to finish, every release is a gamble with nobody around to roll it back.
  6. Capture the deploy path while it still works. Have the engineer screen-record one complete deploy and talk through each step, including any manual command they run from their own machine.
  7. Collect the context that is not in the repo. Think local scripts, .env files, seed data, cron jobs running on personal servers, and the prompts or agent rules files they used to generate code.

The access inventory to complete before the last day

Asset What to confirm Failure if missed
Code host (GitHub, GitLab, Bitbucket) Repo lives in a company organization; two company owners You cannot legally or practically change your own product
Cloud root account (AWS, GCP, Azure) Root email is a company address; MFA device is company-held No way to recover billing or production access
Domain registrar and DNS Registrant is the company; auto-renew on a company card Site and email go dark when the domain lapses
App stores (Apple, Google Play) Account holder is the company; signing keys stored by the company You cannot ship updates to existing installs
CI/CD and hosting (Vercel, Netlify, Render, Heroku) Team plan owned by the company; deploy hooks documented Builds stop and no one knows why
Third-party APIs (Stripe, Twilio, OpenAI, Anthropic) Keys issued under company accounts and rotated Payments or AI features fail, or a former employee holds live keys
Database and backups A restore has been tested by someone other than the departing engineer Backups exist on paper only
Password manager and MFA Shared vault owned by the company; no personal phone as the only second factor Every recovery flow dead-ends at one person’s phone

Is the engineer leaving on good terms or already gone?

How you handle this depends on how much time you have left.

With a notice period, put that time into the handover instead of new features. The Software Sustainability Institute’s handover guide advises starting the technical handover as early as you can and not underestimating how long it will take. It suggests agreeing on a prioritized list of everything that has to be covered, including the code repository, website, wiki and documentation. Pay for that time if you have to. A few paid days from the person who built the system are worth far more than weeks of guesswork down the line.

If the engineer is already gone, or left on bad terms, the sequence stays the same but moves faster, and you may have to use the vendors’ own recovery processes. Cloud providers, registrars and app stores all offer account recovery for business owners, and they usually want proof of company identity. File those requests on day one, because they take longer than anything else on the list.

Emergency software developer replacement: full-time hire or interim team?

Hiring takes longer than most products can go unattended. Ashby’s 2026 recruiting benchmarks, drawn from more than 54 million applications between January 2021 and March 2026, put the median time to first fill at 75 days for technical roles and 71 days for senior roles. That works out to about two and a half months with nobody able to fix a production incident.

The table below can help you pick a path for that gap.

Option Time to first useful work Best when Main risk
Full-time hire A median of 75 days to fill a technical role, plus ramp-up The product is stable and you can wait Nobody covers incidents during the search
Freelancer Days Small, well-documented codebase The same truck factor of 1, with a new name
Emergency audit, then a pod About two weeks to a findings report, then ongoing delivery The code is undocumented, AI-generated, or already unstable Higher monthly cost than one contractor
Full rewrite Months Rarely the right first move You discard the only record of how the system works

For most founders the answer is two tracks at once: open the permanent search now, and get a senior team onto the code immediately so the product stays safe while you search. A new hire is also much more likely to say yes and stick around if they inherit an audited codebase with a written map rather than a mystery.

What does a replacement team need to read the codebase quickly?

Whoever takes over, hand them the access inventory, the recorded deploy and the context you collected in step seven. Then give them time to read before they write. In our 10-day audit process for AI-generated codebases, the early days are spent mapping data flows, the deploy path and the riskiest modules rather than fixing bugs. Changes made before that map exists are how a quiet departure becomes an outage.

This is the moment the $4,950 Rescue Audit was built for. Senior engineers with an average of 10+ years of experience go through the code, infrastructure and access, then give you a prioritized findings report. If you continue with us, the audit fee is credited toward remediation. When the findings call for ongoing work, a Delivery Pod starts from $15K per month with 30-day notice, so you are not tied in while your permanent hire gets settled.

Should you rewrite the app once the engineer is gone?

Usually not yet. A departure can feel like a clean break, which makes a rewrite tempting. Still, the current code is the only full record of the business rules, edge cases and integrations your former engineer took care of. Rewrite it before you understand it and you will rediscover each of those rules through customer complaints. Audit first, stabilize whatever breaks, and make the rewrite call based on evidence. Our rewrite or rescue decision framework lays out the criteria.

How do you make sure this never happens again?

  • Keep all production accounts owned by the company, each with at least two admins.
  • Make sure anyone with access can run a deploy from CI, with no step that depends on a personal laptop.
  • Commit prompt files and agent rules files to the repository next to the code they produced.
  • Test a backup restore once a quarter, and have someone other than the person who set it up run it.
  • Maintain a current one-page system map covering services, data stores, third-party dependencies and the owner of each.

For a broader look at when a codebase needs outside help and what that costs, read our guide to AI code rescue: what it is, what it costs, and when you need one.

Frequently asked questions

What is the first thing to do when your only developer quits?

Make sure the company, and not the developer, owns the code repository, the cloud account, the domain and the app store accounts. Put a company-controlled admin on each one before you remove the developer’s access, and then rotate every credential they had visibility into.

How long does it take to replace a software engineer?

According to Ashby’s 2026 recruiting benchmarks, the median time to first fill is 75 days for technical roles and 71 days for senior roles, and that is before onboarding. Most products need interim cover for that stretch.

Should I rewrite my app after my developer leaves?

Not as your first move. The existing code contains the business rules your developer built. Audit it and stabilize it, then decide about a rewrite based on what the audit turns up.

Start a Rescue Audit

If your only engineer just gave notice or has already left, the next two weeks will decide whether you get a handover or an outage. A senior team can lock down access, map the system and tell you exactly what you are working with. Start a Rescue Audit.