A little help for your next big idea · Performance and operations

How to measure AI coding productivity

Did AI help? Count the work you can use.

Practice stories use made-up people and sample data. Use your own facts when you try the steps.

YOUR FIRST STEP

Pick three recurring, testable coding tasks.

Then follow the worked example below. Each step has a result you can check.

Start here with real output

Meet Rosa. Rosa leads a software team at Maple Bank. Her team tests a smart coding bot. The bot writes code fast. Yet Rosa asks a good question. Does this work help real users quickly? More text does not mean better work.

Think of coding like baking bread. A baker might make ten quick loaves. But people must want to eat them. If five loaves burn, the baker wastes time. Coding works the exact same way. We must count finished, tasty bread. We do not count spilled flour.

Lines of code do not show real gain. Extra code can even hide bugs. A bug is an error in code that stops work. Rosa wants small, clean fixes that work well. She wants honest team tests. Let us build an honest score together.

Define accepted work before you start

Rosa begins with a clear list of jobs. She picks tasks people do often. One job is a bug fix. Another job turns old forms into web forms. Rosa writes the goal down first. Everyone must know what passes. No one may guess later.

Each job gets strict acceptance rules. Acceptance criteria are tests a task must pass to count as done. Rosa names the exact code file. She names the code owner. She adds the test script that runs the checks. Big and tiny jobs stay separate.

List all tasks before picking tools. Do not pick only easy jobs for the bot. If hard jobs fail, write that down. Rosa tracks failed jobs in her book. That keeps her report fair and true.

Read more: METR: early-2025 developer productivity experiment · METR: February 2026 experiment design update

Track review time and total effort

Rosa sets a firm baseline. A baseline is your old speed before using a new tool. She times how long people work without the tool. She counts active minutes. She counts the reading of instructions. She counts time spent fixing bad lines.

Do not skip the reviewer's watch. A teammate named Amir checks the bot's code. Amir is a senior engineer. The bot writes in two minutes. But Amir reads lines for forty minutes. Rosa counts Amir's forty minutes in full. Review time is real human labor.

Rosa splits active time from waiting time. The computer can run while Amir eats lunch. That wait is elapsed time, which means the total clock hours between start and end. She keeps worker hours separate from clock wait time.

Run a fair and safe pilot

Now Rosa runs her team pilot. A pilot is a small test run before big choices. Rosa gives five tasks to the bot. She gives five twin tasks to humans alone. She keeps all rules identical. She never makes checks easier for the bot.

Keep tests safe from data leaks. Never feed private bank keys into a bot. Rosa uses fake practice profiles. She logs each failed check. She saves every team note. When work changes midway, Rosa notes why in her book.

Rosa avoids false claims. Her small test is not a giant lab study. Team speed changes on busy days. Still, clear notes reveal patterns. She spots where the bot shines. She spots where it slows people down.

Run a fair and safe pilot
FieldExample valueWhy retain it
Task and revisionProfile validation / rev ATie checks to the actual source
Active human minutesAuthor 35; reviewer 15Include supervision and review
Elapsed minutes90 with parallel workMeasure delivery separately
OutcomeAccepted / revised / abandonedKeep failures in the denominator

Read more: GitHub: enterprise research with Accenture · METR: February 2026 experiment design update

Calculate the true cost per task

Rosa tallies the real pilot cost. She adds tool fees, cloud fees, and worker wages. A wage is pay for hours spent working. If a test fails, its cost stays in the bill. Do not hide costly mistakes.

Now Rosa does simple math. She divides total cost by accepted tasks. Here is an invented example from Rosa's ledger. Her team spent six hundred dollars in all. The team accepted ten finished tasks. Six hundred divided by ten equals sixty dollars per task.

Rosa compares sixty dollars to her baseline. Did the old way cost less or more? Rosa shares both dollars and hours. A single blend number hides details. Clear math builds trust across the company.

Inspect code quality after release

Accepted code can still break later. A regression is an old feature that breaks after new code lands. Rosa watches code for thirty days. She logs every crash. She logs every patch. Quality lives in safe user outcomes.

Never let the bot grade its own work. The bot might write tests it easily passes. Those happy tests can miss huge flaws. A bad actor could slip through. Real security needs independent human eyes. Real users take unexpected paths.

Rosa tracks errors by how bad they are. A wrong font color is small. A broken user login is large. Rosa treats these flaws differently. High output means nothing if private data leaks.

Read more: GitHub: pull request reviews

Apply tests to data transformation

Rosa tests a second real case. The bank imports customer records from old files. This job is a data transformation, which turns data into a clean new format. The bot converts fifty messy postal records in seconds.

Amir checks the converted files. The bot missed five zip codes. Amir spends twenty minutes writing the missing zip code logic. Rosa writes down all twenty minutes. The bot helped, but human care made it pass.

The team now knows the truth. The bot writes quick drafts for data tasks. Yet humans must verify every edge case. Finding this out early saves the bank from costly production errors later.

Avoid common measurement traps

Many leaders make a big mistake. They count raw code lines. Coders then ask bots for long, messy lines. Fix this mistake quickly. Grade tasks only by passing checks. Stop praising code volume.

Another mistake is ignoring failed runs. A team tries five bot runs before one works. They count only the winning run. Fix this by counting all failed runs in total cost. That shows the true effort.

A third trap is missing senior review time. When junior coders paste bot code, senior staff clean it. If seniors spend extra hours, the tool is not saving time. Track senior review on every ticket.

Run your own task test today

You can run this test this week. Pick two small bug fixes. Time yourself without any bot. Write down your minutes and review notes. Then pick two similar fixes with a bot. Record those active minutes too.

Compare your two cards. Look at work time, review time, and fixes needed. Let data guide your path, not hype. Roseram can help with a task, but access and limits depend on the current plan. Keep your tool test narrow and clear. Measure real work, protect your team time, and ship code that users trust.

Read more: METR: early-2025 developer productivity experiment · METR: February 2026 experiment design update

Try this AI request — add your own details

Complete the bounded task in the supplied repository revision. Preserve existing public behavior except for the specified change. Read the relevant source and instructions first. Apply a reviewable change and run the acceptance checks. Report changed files, exact checks and failures, remaining limitations, and a safe revert path. Stop if source, permissions or requirements are missing. Do not replace real evidence with a successful-looking mock.

Your idea. Your next step.

Put Roseram super intelligence to work.

Bring the idea you keep coming back to. Choose a Roseram plan, then give your project a clear first task. You can think it through, build a first version, and improve it as you learn.

Check current access, plan limits, and pricing before joining.

Your next step

Your quick checklist.

Tick a step as you finish it. Your ticks and feedback stay on this device. They are not public reviews.

0 of 6 complete

Was this guide useful?

Tell the community what you tried or tell us what needs fixing. Include a source if you are correcting a fact.

Your questions, answered

Are lines of AI code a good productivity measure?

No. More lines just mean more text. They do not prove code works. Good code must stay very safe. It must help real people too.

How many tasks should our pilot include?

A pilot is a small test. Pick everyday tasks your team does. A few tasks give good clues. They do not prove everything though.

Do studies prove AI coding always saves time?

No. Tests show many different results. Hard jobs need extra careful checks. Fixing mistakes can eat up time.

Why must review time be counted in the pilot?

People spend real time checking code. Bots might type code very fast. Slow reviews make the work longer.

Want the technical details?Open the code notes, deeper checks, and common questions.

These notes go deeper. Use the parts that fit your project. Examples are for learning; they are not claims that we tested your app.

Technical workflow: Define accepted work → Record the baseline → Run the pilot → Review cost and quality
A closer look at the original workflow.

Define useful completed work before starting the pilot

Select a recurring task whose output can be judged independently: a bug fix, a data transformation or an accessible form. Write the acceptance criteria before assigning a tool. Name the relevant repository revision, owner and verification command. Keep scope comparable across observations. A ten-line correction and a database migration should not become interchangeable tasks simply because each creates one pull request.

Create an inventory before participants choose the tasks they prefer to do with AI. Include difficult and unsuccessful work. If people select only tasks they believe suit the assistant, describe that selection in the report. It can be a sensible operating choice, but it answers a narrower question than whether every backlog task improves. Keep changed requirements and abandoned attempts in the ledger.

Read more: METR: early-2025 developer productivity experiment · METR: February 2026 experiment design update

Record a baseline that includes review and rework

Use the existing release requirements for the baseline and the assisted work. Record when the task begins, when an acceptable change is ready and how much active human time it consumes. Include reading source, clarifying requirements, reviewing the diff and correcting mistakes. Do not omit a senior reviewer’s time merely because the author finished quickly.

Keep elapsed time and human effort separate. A model may work while a developer attends to another task. Counting every minute of model runtime as labor exaggerates effort; counting only typing omits supervision and review. Record overlap explicitly, using an agreed allocation for shared review or context switching. An honest small ledger is more useful than a dashboard with an unexplained productivity score.

Compare tasks without changing the quality contract

Where feasible, assign comparable tasks before observing which method looks attractive. Do not relax the acceptance checks for generated code to make assisted work appear faster. Capture reviewer comments and failed checks with the revision they refer to. If a task changes scope, record the change and explain whether it remains comparable. Never include production credentials or sensitive customer material simply to make the pilot realistic.

A trial may be observational rather than randomized. That limits causal conclusions because task complexity, experience and interruptions can differ. Record those factors and state what the comparison supports. Avoid claiming that a subscription caused every improvement after its purchase. A team can still identify promising task categories without pretending it conducted a controlled laboratory experiment.

Compare tasks without changing the quality contract
FieldExample valueWhy retain it
Task and revisionProfile validation / revision ATie checks to the actual source
Active human minutesAuthor 35; reviewer 15Include supervision and review
Elapsed minutes90 with parallel workMeasure delivery separately
OutcomeAccepted / revised / abandonedKeep failures in the denominator

Read more: GitHub: enterprise research with Accenture · METR: February 2026 experiment design update

Calculate cost per accepted task with explicit assumptions

Add the expenses attributable to the trial: licenses, measured model usage, runtime charges and agreed labor costs. State the allocation period for subscriptions used across several projects. Divide by tasks that meet the acceptance contract, while retaining the cost of failed attempts in the numerator. Do not count a rejected change as a successful deliverable because the model produced an answer.

For illustration only, a pilot costing $600 across ten accepted tasks has a $60 cost per accepted task. This is arithmetic, not a vendor quote or a prediction. Compare it with a baseline using the same expense categories. If labor is estimated rather than timed, label it. Report both cash expense and time where a single blended number would hide how the team actually pays for the work.

Illustrative pilot calculation
total_cost = licenses_allocated + usage_cost + runtime_cost + human_review_cost
cost_per_accepted_task = total_cost / accepted_tasks
# Include failed-attempt costs; never divide by zero.
# State currency, period and labor-rate assumptions.

Inspect quality after acceptance, not just at generation

Track regressions, reverted changes and defects discovered after release. Define a reasonable observation period and keep severity visible. A cosmetic correction and a data-access failure should not be reduced to an interchangeable defect count. Inspect unauthorized data access and error handling independently of the happy-path tests generated by the assistant.

Do not ask the same model to invent both the requirement and the sole evidence that its output meets it. Use the business contract, existing tests and an independent review to identify meaningful failure cases. A change can pass a generated unit test while failing the deployed user journey. Keep local verification, staging behavior and production outcomes in separate fields.

Read more: GitHub: pull request reviews

Give the agent a measurable task, then make a bounded decision

Use the brief below for a task that belongs to the pilot. Keep the agent’s goal focused on the outcome, not on maximizing code volume. Ask for the files changed, verification evidence and remaining limitations. The human pilot owner should collect time and cost independently rather than accepting a model’s estimate of its own efficiency.

Review the pilot by task category and identify where assistance helps, where it adds review burden and where evidence is too limited. Expand access for the demonstrated use cases, adjust the workflow for weak ones and repeat after material tool changes. Date the conclusion. Neither a historical slowdown nor a vendor success story establishes the behavior of every current tool on every future task.

Copyable pilot task brief

Complete the bounded task in the supplied repository revision. Preserve existing public behavior except for the specified change. Read the relevant source and instructions first. Apply a reviewable change and run the acceptance checks. Report changed files, exact checks and failures, remaining limitations, and a safe revert path. Stop if source, permissions or requirements are missing. Do not replace real evidence with a successful-looking mock.

Read more: METR: early-2025 developer productivity experiment · METR: February 2026 experiment design update

Common questions

Are lines of AI-generated code a productivity measure?

They measure output volume. They do not establish useful accepted work, quality or lower total cost. Use task outcomes and the full delivery workflow.

How many tasks should a pilot include?

Choose enough representative tasks to expose differences in your workflow. State the sample and uncertainty; a small convenience sample cannot establish a universal speedup.

Do published studies agree that AI coding always saves time?

No universal result follows from the sources here. Their settings and dates differ. METR’s later update also explains why selection effects complicate a current estimate.

Where the facts come from

Use these links to check the technical facts. The stories here are made-up examples to help you learn. Roseram sells AI tools; our examples are not promises of results.

  1. METR: early-2025 developer productivity experiment ↗
    What this source covers

    Historical randomized experiment on experienced open-source contributors. It does not estimate every current tool or development task.

  2. METR: February 2026 experiment design update ↗
    What this source covers

    Selection and time-measurement limitations in the follow-up experiment; not a precise current productivity estimate.

  3. GitHub: enterprise research with Accenture ↗
    What this source covers

    Vendor-led trial, adoption analysis and surveys. Our pilot design is original analysis and does not promise the reported enterprise results.

  4. GitHub: pull request reviews ↗
    What this source covers

    Review and approval concepts; passing checks are not a universal security certification.

References last reviewed 2026-10-12. Writing refreshed 2026-10-14. Spot a mistake? Tell us.