# If AI writes the code and the tests, what do developers do?

By Vishal Kumar · Published 2026-06-28 · Updated 2026-11-13
Source: https://fungyaan.com/p/ai-writes-code-what-do-developers-do
Tags: ai, careers, engineering, software-development

**The verdict, which the rest of this post earns:** developers do the parts of the job that were always the hard ones:
- **deciding what to build,** and what not to;
- **designing how it should work:** boundaries, data, failure modes, cost;
- **specifying it precisely** enough that a person or a model can build it;
- **verifying it actually works,** with evidence rather than impressions;
- **running it in production;**
- **being accountable for the result.**

AI assistants are very good at producing plausible code and tests quickly. That makes the ability to tell *correct* from *plausible* the core skill, and turns an engineer's output from lines written into problems solved and verified.

The case, as it's usually put, sounds alarming: if the code and the tests write themselves, what's left? The usual suspect is "nothing much". That suspect has a weak alibi. Honestly, I find this an exciting shift rather than a worrying one. The tedious parts get faster, and what's left is the part most of us fell in love with in the first place: understanding a problem well enough to solve it properly.

> **Case file**
>
> | | |
> |---|---|
> | **The case** | If AI writes the code and the tests, what's left? |
> | **Suspects** | "Nothing much" |
> | **Culprit** | Typing code was never the job |
> | **The fix** | Move effort to specifying, reviewing and verifying |

## The first clue: what changes, and what doesn't

Here's the split as I see it, task by task.

| | Moves largely to AI | Stays with engineers (and matters more) |
|---|---|---|
| **Writing** | Boilerplate, glue code, first drafts of functions and tests, translations between languages and frameworks | Choosing the design the code implements; naming the concepts; deciding what *not* to build |
| **Testing** | Generating test cases, fixtures, edge-case suggestions | Deciding what must be true; tests that check behaviour rather than mirroring the implementation; evals for AI features |
| **Debugging** | Explaining errors, suggesting likely causes, writing a reproduction | Forming and checking hypotheses across systems; knowing which measurement settles it |
| **Reading** | Summarising unfamiliar code, finding where things happen | Judging whether it's right, safe and maintainable |
| **Operating** | Drafting runbooks and queries, scripting fixes | Being on call; deciding under pressure; owning the outcome |

## Case 1: building a feature with an assistant

The loop that works is pleasingly familiar; it's good engineering with a faster pair of hands:
1. **Frame the problem** in writing: what users need, the constraints, what "done" looks like, how you'll know it works.
2. **Design the shape** yourself: the data model, the boundaries, the failure modes. Ask the assistant for alternatives and critique, not for the decision.
3. **Generate in small, reviewable steps,** each with tests.
4. **Review like it's a colleague's pull request,** because it is one, from a colleague who is fast, well-read and occasionally confidently wrong.
5. **Verify with evidence:** run it, measure it, test the edge cases you named, not only the ones the model suggested.

```mermaid
flowchart LR
  A["Frame the problem"] --> B["Design the shape"]
  B --> C["Generate small steps, with tests"]
  C --> D["Review like a pull request"]
  D --> E{"Verified with evidence?"}
  E -->|no| C
  E -->|yes| F["Ship and own it"]
```

The verification step is where the engineering lives, and it's the one you can't hand over. Here the case gets interesting, because the false leads look exactly like evidence. Generated benchmarks and tests can be wrong in ways that look right. Test data can compress unrealistically and flatter a result; a consistency check can pass only because the dataset is small enough to read in one go; a lock can occasionally let two workers through under load. None of these show up by reading the code. They show up when you ask whether each number makes sense, and keep a test that pins it.

## Case 2: a production incident

AI helps you move faster through an incident: summarising logs, drafting queries, suggesting likely causes. It doesn't carry the responsibility. Someone still has to play detective:
- decide what to try, in what order, with what risk;
- know which signals to trust (traces, metrics, the database's own view);
- communicate with customers and stakeholders;
- make the call to roll back or fail over;
- write the honest post-incident review.

That's judgement built from understanding the system, which is exactly what engineers who only prompt and paste never develop. It's also, I think, one of the most rewarding things an engineer can earn.

## Case 3: reviewing AI-written code

AI-generated code has a recognisable modus operandi. Review for it:
- **Plausible but wrong logic:** the happy path works; the edge case, the concurrency case or the error path doesn't.
- **Tests that test the implementation,** not the requirement, and so pass even when the behaviour is wrong (more in the [test-first or test-after post](/p/test-first-or-test-after)).
- **Security:** missing authorisation checks, injection, secrets in code, unsafe defaults.
- **Invented APIs and outdated patterns:** functions that don't exist, deprecated libraries, versions that have moved on.
- **Too much code:** a new abstraction where the codebase already had one.

That clarifies the reviewer's job. The question changes from "is this well written?" to "**is this right, and how do we know?**"

## The reveal: the skills that gain value

The encouraging twist is that none of these are new. They're the skills good engineers have always been building, and the shift simply makes their worth impossible to miss.

- **Problem framing and product sense:** knowing which problem is worth solving.
- **System design:** data models, boundaries, consistency, failure, cost. Models can propose designs; choosing between them needs context only you have.
- **Fundamentals:** data structures, databases, networking, concurrency. You can't verify what you don't understand.
- **Verification:** testing strategy, evals, measurement, debugging.
- **Clear writing:** specifications, decisions and reviews. That's also how you get good output from an AI.
- **Operations and ownership:** running what you build, and being trusted with it.

> **Remember this**
> - AI makes code cheap: it doesn't make mistakes cheap.
> - The core skill is telling correct from plausible.
> - Verification is the step you can't hand over.

## What to do on Monday, for a team adopting AI assistants

1. **Use them everywhere they help,** and measure the outcome by working software, not by lines produced.
2. **Keep the review bar where it was, or raise it.** AI makes code cheap; it doesn't make mistakes cheap.
3. **Invest in tests, [evals](/p/llm-evals-before-shipping) and observability:** they're how you trust fast-moving code.
4. **Make design decisions explicit and written,** so both people and assistants work from the same intent.
5. **Keep learning the fundamentals.** They're what let you notice when the assistant is wrong.

As an engineering leader, I see the work moving exactly this way: less time typing, more time deciding, reviewing and verifying. The engineers who thrive are the ones who are best at those.

I find that the most reassuring answer the case could have: the tools change, but the heart of the craft, careful thinking about whether something works, is the part that lasts.
