Skip to main content

Codebase Remediation

Identify what's broken, then fix it.

Architectural decay tends to follow a pattern. I work out where in that progression a codebase sits, then ship working code that addresses the structural issues, not just the symptoms.

Book a call

Taking on one new engagement. Typical start: 4 to 6 weeks from agreement.

Four stages of decay

Most struggling codebases sit somewhere on this progression. Each stage is fixable; the approach changes depending on how far things have gone.

1

Productivity slowdown

Early

Features that used to take days now take weeks. Estimates keep slipping because no one's sure what touching a given area will break. It still feels manageable.

Why it happens

Architectural decisions weren't written down. Nobody knows why things are the way they are, so every change starts with archaeology.

What doesn't work

"We'll refactor next sprint." It never happens. The backlog keeps growing.

2

Reliability issues

Painful

Production incidents are weekly. Most of the team's time goes to firefighting rather than building. Deployments happen at night. Everyone's careful about pushing code.

Why it happens

No architectural boundaries. Changes in one area cascade unpredictably. No CI/CD safety net.

What doesn't work

"Hire more developers." Adds communication overhead and makes coordination worse.

3

Talent leaving

Serious

The tech lead has left. Exit interviews say the same thing: "I can't grow here." Candidates see the codebase and pass. Domain knowledge leaves with people.

Why it happens

Technical debt becomes a career liability. Good engineers don't want legacy work on their CV.

What doesn't work

"Pay more." Money doesn't fix career stagnation.

4

Business constraint

Critical

Timelines have doubled. Clients are churning from outages. The roadmap is full of features marked "technically impossible." Competitors ship faster. A rewrite would take 18 months that aren't available.

Why it happens

Years of workarounds compound. The foundation can't support what's been built on top of it.

What doesn't work

"Rewrite from scratch." A long march with a high failure rate and serious business risk.

All four stages are recoverable. The approach is what changes.

What you get

Diagnosis followed by hands-on remediation. I identify what's wrong structurally and then fix it. Working code rather than recommendations.

Core Deliverable

Working code, shipped

Not a roadmap for your team to execute. I do the remediation: refactored modules, cleaned dependencies, test coverage for changed areas, deployed and running.

Clear diagnosis

What's actually broken, why it happened, and the order to fix it in.

Code changes

Refactored modules, cleaned dependencies, structural fixes. Committed and deployed.

Handoff

Tests for changed areas and a written record of the decisions, so the team can carry on.

How it works

1

Intro call

We talk through the situation and check it's a fit. If so, we arrange codebase access.

2

Assessment

Architecture analysis and stage identification. I pinpoint what's causing the pain.

3

Remediation

Hands-on refactoring, dependency cleanup, and structural fixes. Working code committed to your repo.

4

Validation and handoff

Automated tests for changed areas, a written record of the decisions, and a knowledge-transfer session with your team.

Scope

Included

  • Codebase diagnostic assessment
  • Architecture analysis and recommendations
  • Hands-on remediation of priority areas
  • Automated test coverage for changed code
  • Documentation of architectural decisions
  • Team knowledge transfer session

Not included

  • Full codebase rewrite
  • Infrastructure or DevOps changes
  • UI/UX redesign

Building something new? If you're starting fresh or expanding into new areas, Architecture covers getting the foundation right from the start.

Why architecture matters here

Remediation without restructuring is temporary.

Fixing symptoms buys time, but the same pressures recreate them. Decay comes from structure: modules that know too much about each other, dependencies pointing the wrong way, and no tests at the seams.

I fix the structure that produced the decay, so the fixes hold after I move on to the next piece of work.

Delivered as part of a monthly engagement

A remediation is one stretch of work inside a full-time engagement. Once the structure holds, the same engagement carries on with features on a codebase I already know.

Full-time capacity
Month one on your backlog
Architecture included
Month to month
See the monthly rate

Got a broken codebase?

Tell me what's going on. I'll let you know if it's a fit.

Taking on one new engagement. Typical start: 4 to 6 weeks from agreement.