AI Software Development Cut Our Sprint Time 30%. It Also Added New Bugs
DEV Community

AI Software Development Cut Our Sprint Time 30%. It Also Added New Bugs

A few weeks after we gave the whole team AI coding assistants, sprint planning looked great. Tickets that used to take days were closing faster, and velocity was up roughly 30%. I may have said "this is working" out loud in a standup.

Then I looked at the bug tracker. The number of bugs hadn't increased, but the bugs had. They were much harder to spot in review; they were hiding longer, and a couple actually made it into production because the code behind them was quite good.

If you're looking at AI software development services or indeed the option of building it in-house yourself, this is the bit that the pitch decks invariably omit: the speedup is very real, and the bill that comes afterward is very real too.

Where the speedup came from

The wins were all in the realm of work that had a known shape: CRUD endpoints, test scaffolding, simple schema migrations, refactors with good coverage and documentation. A correct answer to each of those already exists in the code the model has seen and can be checked very quickly.

The assistant saved a massive amount of time on typing and context switching, which is something developers spend a huge amount of time on.

We saw almost no gain on anything that depended on our own domain rules, such as pricing logic, permission edge cases, or any problem whose right answer lives in someone's head or a three-year-old Slack thread.

Where the saved time went

The 30% was real at the ticket level, but time doesn't disappear; it just gets shifted. Reviews took longer because the diffs were getting bigger, and the person reviewing often didn't know the code very well.

A bug that had slipped through review would show up in QA a sprint later under a different ticket. Debugging code you didn't write line by line is of course a lot slower than debugging code you did.

That is why our velocity chart misled us. The sprint that introduced a problem got credit for the speed, and the sprint that fixed it took the blame.

What the new bugs looked like

Human bugs look like human bugs: a typo, a forgotten null check, a copy-paste slip. You learn to spot them. AI-assisted code failed differently.

Plausible code that fails quietly

The most common problem was error handling that looks careful and hides failure. Here is a simplified example of the pattern:

async function getUserCredits(userId: string): Promise<number> {
  try {
    const res = await api.get(`/credits/${userId}`);
    return res.data.credits;
  } catch {
    return 0;
  }
}

It reads as defensive. When the credits service has a bad five minutes, though, every user appears to have zero credits and everything downstream treats them as such. The function turns an outage into wrong data, and the logs are completely silent on the matter.

The fix is boring: let the error propagate, or return a result type that separates "zero credits" from "couldn't find out."

Confident use of APIs that don't quite work that way

We also hit calls to real libraries which were built on slightly incorrect assumptions (a parameter that only exists in the newer version of the library, for instance). The default had changed; a method did something somewhat different from what you'd expect from its name. The code compiled and the happy path passed. It would fail on certain inputs.

Missing edge cases

Generated code invariably dealt with the case in the prompt and nothing else. We saw pagination that would only retrieve page one, date logic that completely ignored time zones, and a retry loop with no upper bound. An experienced developer would have those checks in there as scar tissue. A model will only add those checks if the prompt or surrounding code already indicates they're required.

Why review got harder

I thought clean-looking code would be easier to review. It wasn't. Messy human code sends all sorts of signals: odd naming, a comment half written, a function that's just too long to be sensible. Those are the things that tell you where to slow down.

AI code is uniformly clean, looks like it's complete, and we just went with that. We approved the diffs much quicker at the very point where we should have been reading them more slowly.

Reviewers use style as a proxy for care. When style stops carrying information, you have to review intent and behavior directly.

What we changed

We kept the tools and changed the rules around them.

  • Every pull request includes a short note on what the change should do, what it assumes, and what failure looks like. If the author can't write it, the code isn't ready, however good it looks.
  • For anything touching business rules, a person writes the test cases before the implementation is generated. The assistant fills in code against a spec instead of writing both the answer and the exam.
  • We capped how much generated code goes into one pull request, because review attention collapses on large AI-written diffs.
  • Authentication, payments, data migrations, and anything irreversible stay hand-written or get a second dedicated reviewer.
  • We tag AI-assisted changes so we can see which kinds of work produce which defects. Tagging can create stigma, so we look at the data by team, never by person.

Did the 30% hold up?

Not at that number. The 30% was a sprint-planning figure that counted the work as done before the rework. With the bug fix and review time reinstated, the net gain is considerably less. I can't give you a clean % as the cost was spread across several sprints and our tracking wasn't good enough to attribute it.

The gain was still positive, and it increased once we added the rules above.

What I'd tell a team starting out

Measure bugs and review time from day one rather than just ticket throughput (otherwise you'll be celebrating the wrong number). Start with low-ambiguity work and gradually increase the ambiguity as your review habits settle. Treat the generated code as a draft from a very fast, very confident junior developer who has never seen your codebase.

If setting up these rules is more than your team can absorb, a short AI consulting engagement to audit your workflow and review process can cost less than learning the same lessons from production incidents.

Where we are now

Writing code got faster. Knowing whether the code is right hasn't gotten faster, and that is now the bottleneck, so we spend as much effort on review, tests, and clear specs as we do on the assistant.

If your team has rolled these tools out, what did your bug patterns look like afterward?

FAQs

Does AI-assisted coding really make development faster?

Yes, for the very clear-cut, low ambiguity stuff (boilerplate, CRUD endpoints, test scaffolding, simple refactors). Some of the time saved filters into code review, QA, and debugging, so the net gain is typically less than the ticket-level figures would indicate.

What kinds of bugs does AI-generated code introduce most often?

The most common patterns we saw were error handling that simply hides the failure, library calls that are based on incorrect assumptions about what the library will do, and then, of course, the missing edge cases (pagination, time zones, unbounded retries, etc.).

Why is AI-generated code harder to review?

It's properly formatted and sensibly named, so it looks complete. Reviewers tend to interpret messy style as a signal to slow down, and that signal simply isn't there. Reviewing intent and behavior directly resolves most of it.

Which tasks should stay human-written?

Auth, payments, data migrations, and anything else that's hard to reverse. A small mistake in any of those areas is the most expensive to fix, so those areas should be hand-coded or have an additional reviewer.

How do I know if AI tools are helping my team?

Track more than just ticket throughput (i.e., velocity) and look at defect rates, review time per PR, and rework in later sprints. If velocity goes up while those three metrics go down, then the increase in velocity is being borrowed from the future.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.