Why Tech Companies Are Rehiring Engineers They Fired for AI

Companies that replaced engineers with AI are now quietly rehiring — here's what broke, why it was predictable, and what it means for your career.

empty brown and white building
Listen to this article
--:--

Tech companies regretting firing engineers for AI is the emerging 2026 pattern where employers who replaced engineering staff with AI automation are quietly rehiring humans to fix what broke. Klarna's CEO Sebastian Siemiatkowski bragged in 2024 that AI had replaced 700 customer service employees — then quietly started hiring humans again in 2025. That single reversal signals what's unfolding across the industry: the bills from 2023's AI-justified layoffs are coming due.

Why Did Companies Fire Engineers for AI in the First Place?

The tech industry laid off over 260,000 workers in 2023 alone, according to Layoffs.fyi, with many companies explicitly citing AI automation as justification. Now, in 2026, the bills are coming due. The companies that swung hardest at the "AI replaces engineers" thesis are the ones scrambling hardest to undo the damage.

Why Did Companies Fire Engineers for AI in the First Place?

The logic seemed airtight. AI can generate code faster than humans. AI can handle customer queries at scale. AI doesn't need benefits, PTO, or performance reviews. Executives saw a clean line from "AI generates output" to "we need fewer people," and they drew it with a Sharpie.

The Prototype Illusion: What AI Makes Easy vs. What It Leaves Broken

I've been in enough executive planning meetings to know exactly how this plays out. Someone demos an AI tool that produces a working prototype in 20 minutes. The room gets excited. The CFO asks how many engineers they can cut. Nobody asks the harder question: what happens when that prototype needs to survive contact with production?

The answer is that it breaks. Badly.

Klarna is the poster child, but they're far from alone. Apple has spent two full years struggling with AI-driven improvements to Siri, despite being one of the most well-resourced engineering organizations on the planet. Even with virtually unlimited budget and talent, replacing deep engineering expertise with AI tooling turned out to be far harder than any executive presentation suggested.

The Prototype Illusion: What AI Makes Easy vs. What It Leaves Broken

Julien Avezou, a software engineer writing on Dev.to, coined a term that nails the failure mode: the "prototype illusion." AI generates software that looks complete. Polished UI. Working buttons. Passing demos. But underneath, the invisible engineering is missing entirely: data integrity, permissions, edge cases, security, reliability, failure handling, maintenance, and user trust.

AI Codebase Remediation: The New Engineering Demand Nobody Predicted

This tracks perfectly with what I see in production environments. The gap between "it works in a demo" and "it works at 3 AM on a Saturday when traffic spikes and a database migration is half-complete" is enormous. Experienced engineers fill that gap. AI doesn't.

Here's the video from Pooja Dutt that crystallized this narrative for hundreds of thousands of viewers:

Marco Somma, a senior software engineer, put it even more sharply in a widely-shared essay: "Creation became cheap. Verification did not." AI accelerates code generation, but the cognitive load of verifying correctness, testing for security, and ensuring production-readiness hasn't decreased. It has increased. When AI generates ten times the code in one-tenth the time, someone still needs to review, test, and understand all of it. That someone is a human engineer.

"Creation became cheap. Verification did not." — Marco Somma, Senior Software Engineer

This is the fundamental miscalculation. Companies confused output volume with engineering value. The hard part of software was never typing code. It was knowing which code to write, understanding why it works, and predicting how it fails.

AI Codebase Remediation: A New Kind of Engineering Work

Here's the ironic part. Firing engineers didn't just fail to reduce costs. It created an entirely new category of engineering work.

Maxim Saplin, a software engineer documenting this trend on Dev.to, describes the emerging discipline of "AI codebase remediation." Companies that leaned heavily on AI code generation are discovering that AI-generated codebases accumulate bloat, redundancy, and technical debt at rates human engineers never would. The code works in isolation. But at scale, it's a mess: duplicated logic, inconsistent patterns, unnecessary abstractions, and security holes that only surface when you try to maintain the system long-term.

So now those companies need senior engineers specifically to debloat, refactor, and make production-safe the code that AI tools generated. That's the opposite of reducing headcount. I've written about how AI-generated code quality is becoming a silent crisis, and this remediation demand is the logical consequence.

I've seen this pattern my entire career: every shortcut in engineering creates a longer road later. Skip writing tests today, spend three times as long debugging tomorrow. AI code generation is the same dynamic at industrial scale.

A fictionalized but pattern-based series on Dev.to by software engineer Xu Lingfeng illustrates these dynamics through composite cases drawn from real industry patterns: an AI platform that crashes months after launch, an expensive AI purchase that requires the fired engineering team to be called back, and an AI security system that blocks a legitimate vulnerability fix, leading to a costly incident weeks later. The specific figures are illustrative, but the patterns? Instantly recognizable to anyone who's worked in enterprise engineering.

What AI Genuinely Can't Do (Yet)

Let me be clear: I'm not an AI skeptic. I use AI coding tools every day. I've written about how AI is reshaping developer workflows and I genuinely believe this is the most interesting moment in tech. But "AI makes engineers more productive" and "AI replaces engineers" are two very different claims. The first is true. The second is wrong, and the companies that bet on it are proving it in real time.

Here's what AI still cannot own in 2026:

  • System architecture decisions. AI can generate code for a microservice. It cannot decide whether you should use microservices in the first place.
  • Cross-system debugging. When a production incident spans three services, two databases, and a CDN, AI can't reason about the full blast radius. I've been in those war rooms. You need someone who knows the system's history, not just its current state.
  • Security judgment. AI flags known vulnerability patterns just fine. But assessing whether a novel architectural choice introduces a novel attack surface? That takes experience and paranoia in equal measure.
  • Organizational context. AI doesn't know that the payments team deployed a breaking change last Tuesday, or that the VP of Product just changed the roadmap.
  • Trade-off reasoning under uncertainty. Should you optimize for latency or cost? Ship now or wait for better testing? These are judgment calls that require experience, not computation.
  • Legacy system knowledge. The engineer who knows why that config file has a commented-out line from 2019 is worth more than any model.

This isn't a temporary limitation waiting to be solved. These are fundamentally human capabilities that require context, judgment, and institutional knowledge that doesn't live in any training dataset.

What This Means for Engineers

If you're an engineer feeling anxious about AI displacement, take a breath. The data is clearly on your side now. But "AI won't replace you" isn't the same as "do nothing."

The engineers getting hired right now share specific traits. They understand systems at the architecture level, not just the code level. They can debug across boundaries. They have opinions about trade-offs and the experience to back them up. And they know how to work with AI tools while maintaining the judgment to catch what AI gets wrong.

This is where software engineering is heading. Not writing every line by hand, but operating as a plan-and-review layer on top of AI-generated output. The engineers who thrive will be the ones who can verify, architect, and make judgment calls. The ones who just typed code? They were already being replaced before AI, by better abstractions, better frameworks, and better tooling.

The practical advice is straightforward:

  1. Get deep on systems, not syntax. Distributed systems, failure modes, architectural patterns. More valuable than ever.
  2. Build verification skills. Code review of AI-generated output is a distinct skill. Practice reading code you didn't write with a critical eye.
  3. Invest in domain expertise. The engineer who understands the business domain is irreplaceable. AI generates generic code. It doesn't generate domain-specific judgment.
  4. Stay current with AI tools. Not to replace your skills, but to amplify them. The engineer who uses AI effectively and knows its limits is the most valuable person on any team right now.

The Correction Is Here. The Question Is What Comes Next.

The hype cycle peaked in 2023-2024 with mass layoffs and breathless predictions. The reality check is happening now, in 2025-2026, as companies discover that AI-generated code needs human engineers to maintain it, AI-driven processes need human judgment to govern them, and the "invisible work" of software engineering is what keeps production systems alive.

If you're zooming out and wondering whether this is part of a bigger market shift, I unpack that angle in Is the AI Bubble Actually Bursting? What a Developer Who Shipped Real AI Products Thinks. It digs into what "bursting" looks like in practice versus the quieter normalization we're seeing inside engineering teams.

My prediction: by the end of 2026, the companies that treated AI as a tool for engineer productivity (not a replacement for engineers) will have pulled decisively ahead. The talent they retained and invested in will be building AI-augmented systems that their competitors, the ones who fired everyone and are now rehiring at premium salaries, simply can't match.

AI doesn't replace engineers. It raises the bar for what engineers need to be good at. The companies that understood this from the start never had to learn the lesson the hard way. The rest are writing very expensive job postings right now.

Photo by Sergei Wing on Unsplash.

Continue reading

a blurry image of a bright orange and blue light

Is the AI Bubble Bursting? What a Developer Who Shipped Real AI Products Thinks

Rogue agents racking up $6,531 AWS bills, zero switching costs between LLM providers, and companies extracting developer expertise into AI then laying off the humans. The AI bubble conversation is everywhere — here's what's actually happening from the production trenches.

man in black jacket and orange knit cap standing on sidewalk during night time

Forward Deployed Engineer: Role, Skills, Pay and Career Path

The forward deployed engineer blends software engineering, consulting, and solutions architecture into one high-impact role. Here's what it takes and why AI companies can't hire them fast enough.

text

Plan-and-Review: How AI Is Changing Software Engineering

AI writes the code now. The engineers who thrive won't be the fastest coders — they'll be the best directors of AI systems that code for them.

Man working late at a dimly lit office desk.

Senior Engineer Skills: 4 Roles Beyond Writing Code

Most mid-level engineers think the next promotion is about writing better code. It's not. Here are the 4 roles senior engineers actually play — and none of them are 'faster coder.'

Cite this article
Kunal Ganglani (2026, June 8). Why Tech Companies Are Rehiring Engineers They Fired for AI. Kunal Ganglani. Retrieved December 6, 2026, from https://www.kunalganglani.com/blog/regret-firing-engineers-ai

Frequently Asked Questions

Why are tech companies rehiring engineers after replacing them with AI?

Companies discovered that AI-generated code and AI-automated processes break down in production environments. AI can produce working prototypes and demos, but it cannot handle the invisible engineering work — system architecture, security, debugging across services, edge cases, and long-term maintenance. The cost of fixing AI failures often exceeded the savings from layoffs.

Which companies regret replacing workers with AI?

Klarna is the most cited example — its CEO publicly boasted about replacing 700 customer service employees with AI, then began actively recruiting humans again in 2025. Apple has also struggled for two years to improve Siri with AI despite massive investment. Numerous companies that laid off engineers in 2023 have since posted new engineering job openings for roles requiring system design, security, and architecture expertise.

What jobs can AI not replace in software engineering?

AI currently cannot handle system architecture decisions, cross-system production debugging, security judgment for novel attack surfaces, organizational context, trade-off reasoning under uncertainty, or legacy system knowledge. These require human experience, institutional context, and judgment that no training dataset contains.

How should software engineers adapt to AI?

Go deep on systems rather than syntax, practise reviewing code you did not write, build domain knowledge a model cannot copy, and use AI tools daily while learning where they fail. Teams now value engineers who can design, verify and make the judgment calls on top of AI-generated output.

What is AI codebase remediation?

It is cleanup work on codebases written largely by AI tools: removing duplicated logic, untangling inconsistent patterns and closing security gaps so the system can be maintained. Companies hire experienced engineers for it because the debt builds up faster than in human-written code.

Is AI replacing software engineers?

No. AI has made writing code faster and cheaper, but it has not removed the need for people who design systems, debug production and make trade-offs. Several companies that cut engineers for AI are now hiring again. Treat AI as a productivity tool that lifts the skill bar rather than a substitute for engineering judgment.