Blog

Measuring AI-assisted development: When is the task really done?

How much time do coding agents really save? Four measures covering implementation, review and rework through to an approved change.

A coding agent makes a change, adds tests and opens a pull request. That happens quickly. Then someone reads the code, spots a missing requirement and sends the change back. Two more iterations later, it is ready for approval.

How much time did AI save on this task?

Measuring only the time to the first pull request gives you little basis for an answer. Review and rework are part of the job, too. What matters to a team is when a change meets the agreed requirements and fits the existing system.

Agree on what done means before implementation

Take a simple CSV export of customer data. The agent generates the file, the columns are correct and the test passes.

One question was left out of the task description: which customer records is the signed-in user allowed to export?

If the agent makes a wrong assumption and builds its tests around it, the code and tests can agree with each other. The business requirement still has not been checked. This example shows why passing tests alone cannot replace a complete acceptance check.

Before implementation, the team should therefore record the expected behaviour. For the export, that might mean:

  • The file contains only records the signed-in user is allowed to access.
  • An empty result produces a valid file with column headers.
  • A failed export can be retried without changing any data.

These criteria help the agent implement the change. They also give the reviewer a basis for checking it that was established independently of the generated code. Further questions will still arise. What matters is that the team records the answers as it goes.

Measure four things that matter in daily work

A first comparison needs only a few observations that can be recorded against a task.

Elapsed time: How long does it take from the start of implementation to approval? Keep time spent waiting for reviews, access or CI visible separately. Otherwise, an organisational bottleneck gets attributed to the tool.

Human effort: How much time does the team spend clarifying the task, guiding the agent, reviewing and correcting the result? An agent may work independently for a long time while needing little attention. Conversely, a short run may require a lot of supervision.

Rework: Which changes were needed before the result could be accepted? A brief classification helps: a missing requirement, incorrect behaviour, an unsuitable design, or a problem with tests and deployment.

Defects found after approval: Which problems are discovered later? A quick completion loses value if a fix or rollback is needed shortly afterwards. Comparisons need an observation period of the same length.

These details can initially live in the ticket or pull request. They do not necessarily need another dashboard.

Look at different types of task separately

A new internal endpoint and a change to an established payment flow have different requirements. Combining both into a single average tells you little about where AI helps your team.

It is more useful to compare similar tasks: new features, changes to existing behaviour and maintenance work, for example. Scope, familiarity with the system and existing tests also affect the outcome.

For a focused experiment, change as little as possible. For example, try the same type of task with a brief description and then with acceptance criteria agreed in advance. Keep the model, tools and checks the same.

Even then, you need several observations. A single good run may be luck. If you solve exactly the same task again, familiarity with the solution also affects the comparison.

Thoughtworks describes SpecBench, an approach to evaluating these workflows through output quality and resource use. The authors also explain the limitations of their examples. For a development team, the useful part is the method: expect a specific improvement, check whether it occurs and account for the additional effort.

The review needs the original task

A reviewer should know why the change exists and what behaviour it is meant to deliver. Reading only the diff can help establish whether the code looks understandable. It often makes a missing requirement harder to spot.

For the CSV export, the review therefore needs a targeted check of access permissions. Another model can help with that. Its assessment also needs evidence that someone can follow.

In its account of the Sashiko review system, Google describes how candidate bugs are first identified and then verified separately. The principle is useful: a plausible concern becomes a confirmed finding only after it has been checked against the actual system.

Use the results to choose the next step

If much of the time goes into follow-up questions, clearer task definitions are worth trying. If reviews take too long, smaller changes may help. If the same defects keep appearing, a targeted automated check may be useful.

Measurement then informs a decision about daily work. The team can see where it could reduce effort and what support it needs.

The next AI-assisted change is a place to start: agree on acceptance criteria before implementation, then record elapsed time, human effort and rework.

If you would like to discuss your team’s workflow, bring a concrete task or a typical pull request to a conversation with devs group.

A conversation, not a newsletter

Let's talk about your system

If this article describes something you recognise, a conversation is the shortest route to an answer.

Let's talk