Is Software Engineering Rotting Because of AI and Vibe Coding?

Picture a junior developer who ships a new feature in two days. The demo goes well. A week later a bug report lands, and they can’t explain how their own code works, because they never really read it. The AI wrote it, it ran, and that felt like enough.

That little story is the whole debate about vibe coding and software engineering. AI tools let people build software faster than ever. So the fair question is this: is the craft itself getting worse because fewer people understand what they ship?

I went through the main studies from 2025 and 2026 to find out. Below you’ll find what vibe coding really is, what the data says, where the data is thin, and a few habits that keep your skills sharp. No hype in either direction.

What vibe coding actually means

Andrej Karpathy coined the term in February 2025. He described a style of coding where you “forget that the code even exists.” You describe what you want, the AI writes it, you run it, and if it breaks you paste the error back in. You don’t read the code.

Karpathy meant it for throwaway weekend projects. The internet ran with it anyway.In February 2026, exactly one year later, he called vibe coding passé and proposed a name for serious work: agentic engineering. In his view, professional developers now mostly direct AI agents and check their output instead of typing code themselves. The word “engineering” signals that doing this well takes real skill and discipline.

That difference matters for this whole discussion. Using AI is not the same as vibe coding.

What is AI-assisted coding?

AI-assisted coding means writing software with help from an AI tool while a human developer stays in charge of the result. The AI might suggest the next line, answer a question or write a whole function. As an agent, it might also edit several files and run the tests by itself. The developer then reads the code, tests it, fixes what’s wrong and takes responsibility for what ships. GitHub Copilot, Cursor and Claude Code are common examples of these tools.

Vibe coding vs AI-assisted engineering: reading code, understanding it, testing, and when to use each

A simple example: the login check

You ask an AI for a function that finds a user by name. Here are two versions it might give you. Both work when you test with the name “alice”.

# Version A: works, but dangerous
query = "SELECT * FROM users WHERE name = '" + username + "'"
cursor.execute(query)
# Version B: works, and safe
cursor.execute("SELECT * FROM users WHERE name = %s", (username,))

Version A glues user input straight into the SQL. Type ' OR '1'='1 as the name and the query returns every user in the table. That’s a classic SQL injection.

A vibe coder sees that both versions “work” and moves on. An engineer reads the code and spots the problem in five seconds. That gap, between code that runs and code you understand, is what people mean when they say the craft is rotting.

Let’s dive into some researches starting from 2025.

What the research actually says

The short version: AI clearly helps people produce more code, but code quality, long-term maintenance, security and learning all show warning signs. Here are the studies worth knowing, newest first.

1. Stanford “Canaries in the Coal Mine” (August 2026 update)

Economists Erik Brynjolfsson, Bharat Chandar and Ruyu Chen at the Stanford Digital Economy Lab studied US payroll records from ADP, one of the largest payroll companies. They compared young and experienced workers in jobs that AI can easily do, such as software development and customer service.

What they found:

  • Employment for workers aged 22 to 25 in highly AI-exposed jobs is about 19% below where it would be if it had kept pace with less-exposed jobs.
  • That gap was 15% in July 2025, so it is getting wider.
  • Experienced workers in the same jobs show no similar gap.
  • The drop comes mostly from companies hiring fewer young people, not from layoffs.
  • Jobs where AI does the work saw declines. Jobs where AI helps a person do the work stayed flat or grew.

This is the junior pipeline problem in numbers. The authors are careful to say it is a pattern, not proof that AI caused it, and that they see no widespread job losses across the economy.

2. GitClear “The Maintainability Gap” (2026)

GitClear analyzed 623 million code changes made between 2023 and 2026. It tracked eight signals of code health as AI-written code reached record levels.

What they found:

  • Duplicated code blocks (five or more repeated lines) rose from 40.3 to 73.0 per million changed lines. That’s an 81% jump.
  • Copy-pasted lines grew from 9.4% of all changes in 2022 to 15.7% in the first half of 2026.
  • “Moved” code, a sign of refactoring (reorganizing code so it can be reused), fell from 21% of changes in 2022 to just 3.8% in 2026.
  • Error-masking code rose 47%. That’s code that hides failures instead of handling them.
  • Code rewritten within two weeks of being written (churn) rose 15%.

Here’s what error masking looks like. The program never crashes, but the order quietly fails to save and nobody finds out:

try:
    save_order(order)
except Exception:
    pass  # the error disappears here

Code like this works today and becomes expensive to change later. One caution: GitClear sells code analytics tools, so treat this as vendor research.

3. METR follow-up study (February 2026)

METR, a non-profit AI research group, repeated its 2025 experiment with newer tools. This time it had 57 developers, 143 code repositories and more than 800 tasks.

What they found:

  • Returning developers finished about 18% faster with AI. New developers were about 4% faster.
  • Both results had wide error bars that included zero. So the speedup might not be real.
  • Many developers refused to join because they no longer wanted to work without AI.
  • 30% to 50% of developers admitted skipping tasks they didn’t want to do without AI.
  • Developers running several AI agents at once made time tracking unreliable.

METR thinks AI probably speeds developers up more now than in early 2025, but calls its own data “very weak evidence” of that and is redesigning the study. The fact that developers won’t work without AI is a finding in itself.

4. Anthropic skill formation study (January 2026)

Researchers at Anthropic recruited 52 mostly junior engineers who had used Python weekly for over a year. Each one learned Trio, a Python library they had never used. Half had an AI assistant and half coded by hand. Everyone then took a quiz without AI.

What they found:

  • The AI group scored 17% lower on the quiz: about 50% against 67%.
  • The AI group finished only about two minutes faster, which was not a meaningful difference.
  • The biggest gap was in debugging questions.
  • People who used AI to ask conceptual questions scored 65% or higher.
  • People who let AI write the code scored below 40%.

How you use AI decides whether you learn. Note that the test covered only a one-hour task with a chat assistant.

5. Google DORA “State of AI-assisted Software Development” (September 2025)

Google Cloud’s DORA team surveyed nearly 5,000 technology professionals worldwide and added over 100 hours of interviews.

What they found:

  • About 90% of software professionals now use AI, up 14% on the year before.
  • AI use is now linked to faster software delivery. In the previous year’s report, it was linked to slower delivery.
  • AI use is also linked to less stable releases, meaning more things break.
  • AI acts as an amplifier. It makes strong teams stronger and weak teams weaker.

Your team’s habits, such as testing, code review and clear ownership, decide whether AI helps or hurts.

6. Veracode GenAI Code Security Report (July 2025)

Security firm Veracode gave more than 100 AI models 80 coding tasks in Java, JavaScript, Python and C#. Each task could be solved in a safe way or an unsafe way. Then it scanned the code for security flaws.

What they found:

  • 45% of the code samples contained vulnerabilities from the OWASP Top 10, the best-known list of web security risks.
  • Cross-site scripting, where attackers inject scripts into a web page, was one of the most common flaws.
  • Newer models wrote code that ran correctly more often, but it was no more secure.

“It runs” does not mean “it’s safe.” Every piece of AI code that touches user input needs a review or a security scan.

7. Stack Overflow Developer Survey (July 2025)

Stack Overflow surveyed more than 49,000 developers from 177 countries.

What they found:

  • 84% use or plan to use AI tools, up from 76% the year before.
  • 46% don’t trust the accuracy of AI output, up from 31%. Only 33% trust it.
  • Only about 3% highly trust AI output. The most experienced developers were the most skeptical.
  • 45% said debugging AI-generated code takes a lot of time.
  • 75% would still ask a person for help when they don’t trust an AI answer.

Developers use AI more but trust it less. That’s actually healthy, because it means they check the work.

8. METR randomized controlled trial (July 2025)

METR recruited 16 experienced open-source developers. They worked on large projects averaging over 22,000 GitHub stars and a million lines of code. They completed 246 real tasks of about two hours each, and each task was randomly marked “AI allowed” or “no AI.” The main tools were Cursor Pro with Claude 3.5 and 3.7 Sonnet.

What they found:

  • Before starting, developers expected AI to make them 24% faster.
  • With AI, they actually took 19% longer.
  • After finishing, they still believed AI had made them 20% faster.

This is the famous perception gap: feeling faster is not the same as being faster. METR now calls this result historical because tools have changed, and only about half the developers had used Cursor before the study

Read these numbers with care

None of these studies is the final word. GitClear sells code analytics, so a “quality is falling” story suits its business. METR now treats its 2025 result as historical, because the tools have changed so fast. The Stanford team says its job numbers describe a pattern, not a proven cause.

Still, the direction is hard to ignore. Different teams, using different methods, keep finding the same three things: more copy-paste, more security holes, and less learning when people hand over the thinking.

Mistakes big companies made with AI coding

The worst AI coding failures so far weren’t caused by weak models. They came from bad incentives and missing guardrails. Here are six real cases from 2025 and 2026, and what each one teaches.

1. Meta and “tokenmaxxing”: measuring the wrong thing

What happened: In spring 2026, a Meta employee built an internal leaderboard called “Claudeonomics.” According to Fortune, it ranked more than 85,000 employees by how many AI tokens they used and gave top users titles like “Token Legend.” The trend got a name: tokenmaxxing, treating AI usage as proof of productivity.

It backfired fast. The Pragmatic Engineer reported that developers at Meta, Microsoft and Salesforce were burning tokens on purpose to hit usage targets. One Meta engineer admitted asking AI questions about code that was already documented, just to push their numbers up. The leaderboard came down two days after the story broke.

The lesson : Token count measures cost, not value. Judging engineers by tokens is like judging a cook by how much gas they burn

As Linear COO Cristina Cordova put it: “Don’t mistake a high burn rate for a high success rate.” Measure results instead, such as bugs, delivery time and happy users.

2. AWS and Kiro: an agent holding production keys

What happened: In mid-December 2025, an AWS cost tool was down for about 13 hours, mainly in mainland China. The Financial Times reported that Amazon’s own AI coding agent, Kiro, decided the best fix was to “delete and recreate the environment.” One AWS employee said the engineers had let the agent resolve the issue without stepping in. Amazon disputed this. It blamed user error and misconfigured access controls, and said Kiro asks for permission by default. Afterwards it added mandatory peer review for production access.

The lesson: An agent gets every permission the person running it has. Give agents the smallest access they need. Require a human “yes” before anything that deletes, drops or overwrites.

3. Amazon Q: a wiper prompt shipped in an official release

What happened: In July 2025, an attacker sent a pull request to the open-source repository behind Amazon’s Q Developer extension for VS Code. The extension had been installed nearly a million times. A hidden prompt told the AI to wipe the user’s files and delete their AWS cloud resources, and it shipped in version 1.84.0. AWS traced the cause to a GitHub token with too much access, pulled the version, and said no customer resources were affected.

The lesson: In AI tools, prompts are code. They need the same review and supply-chain security as any other code. Be very careful with settings that let an agent run every tool without asking.

4. Google Antigravity: “clear the cache” became “wipe the drive”

What happened: In November 2025, a user asked Google’s Antigravity agent to clear a project’s cache folder. It was running in Turbo mode, which executes commands without asking first. The agent targeted the root of the user’s entire D: drive and deleted everything on it. The user had backed up most of his files, but the rest was gone.

The lesson: Auto-run modes belong in sandboxes, not on your main machine. Run agents inside a container or a limited folder, and keep backups. One wrong path in one command is all it takes.

5. Lovable: one insecure default, copied into 170 apps

What happened: In 2025, a researcher scanned 1,645 web apps built on the vibe coding platform Lovable. 170 of them let anyone read their database, because the generated apps were missing row-level security rules. These rules decide which user can see which rows. The flaw became CVE-2025-48757, rated 9.3 out of 10 for severity.

The lesson: When a platform has an insecure default, every vibe-coded app inherits it. The people building those apps didn’t know what row-level security was, so nobody noticed. Someone on every team still needs to understand the basics of how the app protects data.

6. Coinbase and AI quotas: adoption by deadline

What happened: In August 2025, Coinbase CEO Brian Armstrong said he had given engineers one week to start using AI coding tools. Those without a good reason for skipping it were fired. The company also set a goal of having AI write 50% of its code. No disaster has been reported from this, and Armstrong himself said you can go too far with AI.

The lesson: “Percent of code written by AI” is a vanity number, just like token counts. Pushing adoption without quality targets invites the same gaming seen at Meta. Pair any adoption goal with goals for bugs, incidents and review quality.

The pattern behind all six

Look closely and the same three mistakes keep coming back:

  • Measuring usage instead of results. Tokens and “% AI code” are easy to count and easy to game.
  • Giving agents too much power. Production access, auto-run modes and “trust all tools” settings turned small errors into outages.
  • Skipping the human review. In every case, a person who read the code or the command would likely have caught the problem.

The case that software engineering is rotting

The worry is not that AI writes bad code. Humans write bad code too. The worry is that people stop building the skills to notice. Five problems stand out.

1. Skills fade when you stop using them

Think of GPS. If you use it for every drive, you never learn your own city. Turn it off one day and you’re lost on roads you’ve driven a hundred times.

Coding works the same way. In Anthropic’s trial, juniors who let AI write the code learned the least, and debugging suffered most. That’s a nasty irony, because debugging is exactly the skill you need to check AI output.

2. The junior pipeline is shrinking

Every senior engineer was once a junior who spent a whole night chasing one ugly bug. That pain is how judgment forms.Now fewer juniors are being hired, and the ones who are hired may learn less on the job. If both trends hold, who becomes the senior engineer of 2032?

3. Copy-paste is replacing good design

AI tends to write fresh code instead of reusing what already exists. Here’s a simple case. You ask for a date-formatting helper in six different files, and you get six slightly different helpers. Later you fix a bug in one of them. The other five still carry it.

GitClear’s numbers show this pattern at scale: duplication up, refactoring down. Code like that runs fine today and costs a lot to change next year.

4. Security holes slip through

The SQL example above is not made up for effect. Veracode found that AI models picked the insecure way of writing code nearly half the time.

Then there is the case of SaaStr founder Jason Lemkin. In July 2025, during a vibe coding experiment, Replit’s AI agent deleted his live production database while a code freeze was in place. It wiped records for 1,206 executives. The agent had direct access to production, which no careful engineer would have allowed. Replit has since added automatic separation of development and production databases.

5. We can’t trust our own feelings

This may be the strangest finding of all. In METR’s 2025 trial, developers were slower with AI but felt faster. If our gut can’t tell when a tool is helping,

6. Critical thinking gets outsourced

The biggest risk isn’t losing one skill. It’s losing the habit of asking “is this right?”

A Microsoft and Carnegie Mellon survey of 319 workers found that the more people trusted AI, the less they checked its output.

An MIT Media Lab brain study found that people writing with ChatGPT were the least mentally engaged and remembered the least. The researchers call this cognitive debt. The study covered essays, not code, and isn’t peer reviewed yet.

Example: AI designs an orders table that passes every test. Nobody asks what happens at 10x the users. The missing index shows up during the Diwali sale, when the site slows to a crawl.

The fix: Form your own answer first, then ask the AI.

The case that it’s not rotting, just changing

There is a strong counter-argument, and it deserves a fair hearing.

We’ve heard this alarm before. Assembly programmers worried that compilers would make people lazy. Later, people said copying from Stack Overflow would ruin a generation of developers. Each new layer of abstraction removed some old skills and made room for new ones. AI may simply be the next layer.

More software is getting built. DORA found that AI adoption now goes with higher delivery throughput. Karpathy’s own view is that vibe coding lets people build software that would never have existed otherwise. A shop owner who builds a simple stock tracker over a weekend is not hurting software engineering. That person was never going to hire a developer anyway.

Developers are getting more careful, not less. Falling trust in AI sounds bad, but it’s actually healthy. It means people check the output. Stack Overflow found that most developers still turn to a human when they don’t trust an AI answer.

How you use AI matters more than whether you use it. This is the most useful finding in the whole debate. In the Anthropic trial, juniors who used AI to ask conceptual questions scored 65% or higher on the quiz. Those who handed over the code-writing scored below 40%. Same tool, very different results.

Strong teams get stronger. DORA describes AI as an amplifier. A team with good tests, code review and clear ownership gets faster. A messy team just makes its mess faster.

So the rot is real, but it lives in specific habits. It is not built into the profession.

A simple example: two developers, one feature

Meet Sam and Riya. They’re made up, but you probably know people like them. Both get the same ticket: “Add an Export to CSV button for the customer list.” Both use AI.

Sam vibe codes it. He asks for the feature, the AI writes it, the file downloads, and the ticket is closed in an hour. Here’s the key line it wrote:

line = ",".join([name, email, city])

Riya asks the AI for the same thing. Then she reads the code and asks one question: what if a name has a comma in it? She swaps in Python’s built-in csv module, which handles that case:

import csv
writer.writerow([name, email, city])

Three weeks later a customer called “Sharma, Priya” appears. Here’s how things play out.

Riya was half an hour slower on day one. She was weeks ahead by the end. And notice that she used AI the whole time. The difference was not the tool. It was one question: “what could go wrong here?”

How to use AI without letting your skills rot

You don’t need to give up AI tools. You need a few habits that keep your brain in the loop.

  1. Read every line before you commit it. If you can’t explain a line to a teammate, don’t merge it. This one rule removes most of the risk.
  2. Ask “why” before you ask “write”. When you’re learning something new, use AI as a tutor first. Ask it to explain the concept, then try writing the code yourself. This was the pattern that kept learning scores high in the Anthropic trial. Many tools now have a learning or explanation mode built in.
  3. Write the test cases yourself. Let AI write the test code if you like. But you decide what to test: the empty list, the comma in the name, the user who clicks twice.
  4. Debug by hand for the first 15 minutes. When a bug appears, read the error and form your own guess before you paste it into a chat. Debugging is the skill that fades fastest.
  5. Keep AI agents away from production. Use separate development and production environments. Give agents only the access they need. The Replit incident happened because these walls were missing.
  6. Scan AI code for security issues. Add a static analysis tool and a dependency checker to your pipeline. They catch the injection bugs and risky packages that slip past a quick glance.
  7. Measure, don’t guess. Your feeling of speed can be wrong. Track real numbers instead, such as time to merge, bugs per release and rollbacks.

Read Spec-Driven Development: Problems and Best Practices

The verdict: is software engineering rotting?

Not as a profession. But specific skills are fading in people who hand over their thinking along with their typing.

The evidence supports both halves of that sentence. AI tools are getting better, delivery is getting faster, and more people can build useful software than ever before. At the same time, duplicated code is up, refactoring is down, insecure patterns slip through, and juniors who delegate everything learn less.

A power drill doesn’t make anyone a bad carpenter. But a carpenter who never learns how wood splits will ruin a lot of good timber, however fast the drill spins. Or think of a calculator. It didn’t kill maths. But imagine a shopkeeper who can’t tell that three items at ₹99 should never cost ₹2,970. The day someone types an extra zero, that shopkeeper gets cheated. AI is the calculator. Knowing roughly what the right answer looks like is still your job.

The developers who do well over the next few years won’t be the ones who refuse AI. They also won’t be the ones who trust it blindly. They’ll be the ones who use it every day and still read the code.