Measuring Engineering Productivity in 2027 When Agents Write the Code
Quick answer: In 2027, engineering metrics for AI agents should count outcomes, not output. Pull requests opened and lines of code rose sharply with agents in 2026 while the wait for review rose too, so they flatter the work. Track merge rate per agent, review time, changes merged without review, and problems traced to merged changes, a per-agent version of DORA's change fail rate.
Let an agent earn its place on your team
Define a Factorik agent once and it wakes on an issue, a failed build or a schedule, works in an isolated sandbox and ships a pull request. It starts with a person merging its work and earns more autonomy on its record. Try it free for 7 days, no payment details needed.
What should engineering teams measure in 2027 when agents write the code?
This article was written in November 2026, as teams set their goals and dashboards for 2027. The short answer: measure what reached production and how it behaved there, per author, whether the author is a person or an agent. Stop treating the volume of pull requests, commits or lines of code as a sign of progress. Those numbers went up a lot in 2026, and the studies that measured them also found the cost that came with them.
The shift is simple to state and awkward to adopt. When a person wrote most of the code, output metrics were a rough but tolerable proxy for effort, because a person's time was the scarce resource. When an agent can open ten pull requests in the time a person opens one, writing is no longer scarce. Review is, and so is the attention needed when something breaks after merge. A metric worth tracking in 2027 measures those scarce things.
A short definition you can quote: an agent-era engineering metric is one that counts a change only once it has merged and held up in production, and that can be broken down by the agent or person who made it. This article explains why the old metrics mislead, what to track instead, how DORA's change fail rate fits, and how Factorik's record per agent shows the same picture.
Why do pull requests opened and lines of code mislead?
Because they rise whether or not the work is useful, and the 2026 research shows them rising alongside the costs. A Harvard working paper by Fiona Chen and James Stratton, revised in November 2026 and reported by BERI, used Jellyfish data on 720,542 engineers at 655 firms. After AI coding agents arrived, pull requests rose 35.7%, commits 36.0% and lines of code 44.0%, while resolved issues rose only 13.7%, a result the paper calls borderline. In the same paper, the average time from a pull request's submission to its approval rose 56.1%. More was written, and each piece waited longer for a person.
A Microsoft preprint posted to arXiv in July 2026, studying tens of thousands of its own engineers, found that adopters of command-line AI coding agents merged roughly 24% more pull requests than they would have otherwise, across a four-month window. Its authors add the caveat that matters here: a merged pull request is not the same as the value it delivers.
A separate July 2026 preprint by He and colleagues followed one mid-sized company through a mandate to double merged pull requests with AI, across 802 developers and 196,212 pull requests. The company reached the target, but load per reviewer doubled, and the share of pull requests receiving at least one human review fell from 89% to 68% as automated AI review rose from about 19% to about 84% of pull requests. A throughput number improved while a safety number moved the other way.
Faros AI, which sells engineering analytics, reported in April 2026 from about 22,000 developers that 31.3% more pull requests were merged without any review in periods of high AI adoption; its September 2026 update put that rise at 76.3%. It is a vendor's report, so read it as a claim. Neither a throughput number nor a review number alone tells you whether the team is better off; together they tell you where to look.
What should you measure instead?
Four measures cover most of what matters, and each one can be split by author.
Merge rate per agent. Of the pull requests an agent opened, how many merged? A low rate means the agent is producing work people do not want, and every rejected pull request still cost someone review time. Context helps here: an arXiv preprint from April 2026 studying code review agents on open-source pull requests found that those reviewed only by code review agents had a 45.20% merge rate, 23.17 percentage points below pull requests reviewed only by people, at 68.37%. Merge rate is not a quality score on its own, but a falling one is an early signal.
Review time. How long does a change wait between opening and approval, and how much of a reviewer's week goes into agent pull requests? In Chen and Stratton's working paper, the time a pull request waited in the reviewer's backlog rose 59.9% after agents arrived, more than active review time did. If agents add work faster than review can absorb it, this is where it shows first.
Changes merged without review. Some of this is healthy: a small, low-risk change that passes checks may not need a person. The metric should be split by why the review was skipped. A change that merged without review because a written policy allowed it is a decision. One that merged without review because nobody looked is a gap.
Problems traced to merged changes. When a deploy fails, a change is reverted or a person reports a regression, which merged change caused it, and who made that change? This is the measure that keeps the other three honest. An agent with a high merge rate and a stream of problems after merge is not productive; it is moving work from the author to the on-call engineer.
| Metric | What it rewards | Use in 2027 |
|---|---|---|
| Pull requests opened | Volume, whether wanted or not | Context only; never a target |
| Lines of code | Larger changes, which take longer to review | Drop as a productivity signal |
| Merge rate per agent | Work people actually accept | Track monthly per agent |
| Time to approval | Changes a reviewer can read quickly | Track; watch the trend as agents are added |
| Merged without review | Speed, sometimes at the cost of safety | Split by policy-approved vs unreviewed |
| Problems traced to merged changes | Changes that hold up in production | Track per agent; the counterweight to all the others |
How does DORA's change fail rate apply to agent-written changes?
DORA's guide to its software delivery metrics defines change fail rate as the ratio of deployments that require immediate intervention following a deployment. It sits in DORA's instability group next to deployment rework rate, which DORA defines as the ratio of deployments that are unplanned but happen as a result of an incident in production. Its throughput group holds change lead time, deployment frequency and failed deployment recovery time.
Those definitions are a fair reference for agent-written code, with one adjustment: count at the level of the change and its author, not only the deployment. A deployment often carries several merged changes. If one of them came from an agent and caused the rollback, the team-wide change fail rate rises a little, and nobody learns which author to look at. Tracing the failure to the exact merged commit lets you compute a change fail rate per agent and per person.
There are limits worth stating. DORA's metrics describe a delivery system, not individuals, and turning them into a scorecard for people tends to change behavior in bad ways. For agents the concern is different: an agent does not game a metric the way a person might, but a team can still be fooled by a number that hides where the problems came from. A per-agent change fail rate is useful exactly because it attaches a consequence to the author that caused it.
Lead time also needs a second look. If review time rose by days while agents wrote faster, lead time may look unchanged even though the work inside it moved from writing to waiting. Splitting lead time into time to first review, time in review and time from approval to deploy shows where agents helped and where they only moved the queue.
How do you trace a problem back to the change that caused it?
Here is an illustration of the whole path, using an invented repository. It is not a customer story.
- A Dependency Updater agent working on the repository acme/billing-api opens a pull request titled "Bump date-fns and fix two call sites". It touches package.json, the lockfile and src/invoices/due-date.ts.
- Checks pass. A review agent reads the change in context and approves the exact commit it read. A person merges it, because the agent still works at the first level. The merge produces commit 4f2a91c on the default branch.
- The deploy that carries 4f2a91c fails a health check, and the team rolls it back. That is one failed deployment in DORA's terms.
- Because the failure happened at the exact commit the agent's change merged as, the problem is attached to that change and that agent, not just to the deploy. The team is told on its usual channels, with a link to the pull request.
- At the end of the month the team reviews its numbers per author. The Dependency Updater has a good merge rate and short review times, and one problem traced to a merged change. That single row explains the team's change fail rate for the month better than any total could, and it tells the team where to tighten the rules: in this case, treat changes to date handling in invoices as sensitive.
The key step is the fourth. Without a link from the failure to the merged commit, every later number is a team average. With it, each agent and each person has a record, and the record can carry consequences.
Let an agent earn its place on your team
Define a Factorik agent once and it wakes on an issue, a failed build or a schedule, works in an isolated sandbox and ships a pull request. It starts with a person merging its work and earns more autonomy on its record. Try it free for 7 days, no payment details needed.
What should teams expect from engineering metrics in 2027?
These are expectations, not facts, each grounded in something that already happened in 2026.
Expect review capacity to become the number engineering leaders watch most. Chen and Stratton's working paper and the He et al. preprint both found the wait for review, or the load on each reviewer, growing while output grew. Nothing in 2026 suggested review would scale on its own, so teams should plan for review load as a budgeted resource, the way they budget on-call.
Expect more changes to merge without a person reading them, and expect the question to become how, not whether. In the He et al. preprint, the share of pull requests with a human review fell from 89% to 68% within months of one company's mandate, and Faros AI's reports describe unreviewed merges rising through 2026. Most of that happened because nobody had time to look, not because a team decided it. The better direction is unreviewed merges by written policy, for changes that are low-risk by facts, measured afterwards.
Teams should plan for metrics that name the author of each change, agent or person, because the alternative is averaging a careful agent with a careless one. They should also plan for per-agent records to drive decisions, such as which agent may merge what, rather than sitting on a dashboard.
How does Factorik show an agent's record?
Factorik keeps a record per agent, because each agent has one job on one GitHub repository. The record is built from its merged changes, its merge rate and the problems traced to those changes. That record is what an agent's level depends on: every agent starts at the first level, where it opens pull requests that a person merges. It climbs one level when its record clears a bar (enough merged changes, a high merge rate, no problems), either when a person presses Promote or automatically if the organization chose that.
Problems are recorded as findings. When CI or a deploy fails at the exact commit an agent's change merged as, when the change is reverted, or when a person reports a problem on it, Factorik records a finding, tells the team on Slack, a webhook, email and a comment on the pull request, and moves the agent down a level at once. Watcher agents, such as the Change Watcher preset, can check production with tools like Sentry or Datadog a while after a change marked to watch merges; what they suspect counts only once a person confirms it. That keeps a suspicion from costing an agent its level.
Every level change is recorded with who or what made it and why. Review verdicts are tied to the exact commit the reviewer read, and auto-merge waits for every reviewer's approval of the current commit. Low-risk changes are defined from facts about the change, such as files and lines touched, how much it deletes and whether it touches sensitive paths, not from a model's opinion. A board shows where every change stands. Together these give you the four measures above for each agent, as a by-product of how the agents work rather than a separate reporting project. For the reasoning behind letting agents merge at all, see our piece on whether AI agents should merge their own pull requests.
What Factorik does not do: it does not measure your people, it does not replace a delivery metrics tool for deployments it is not part of, and it gives no benchmark for what a good merge rate is in your codebase. It also cannot trace a problem to a change if the problem never shows up as a failed check or deploy, a revert or a person's report. Those are the limits of tracing by facts, and they are the reason to keep people reporting what they see. For more on what happens after merge, read how to watch AI-written changes in production.
What can a team do now to be ready for 2027?
A short checklist for the next few weeks:
- Remove pull requests opened and lines of code from any goal or target. Keep them as context, never as a score.
- Start tracking merge rate per author, split into people and each agent.
- Split lead time into time to first review, time in review and time from approval to deploy, so you can see where agents moved the queue. If review is already the bottleneck, this look at the AI code review bottleneck covers reviewing by risk.
- Count changes merged without review, and label each one as allowed by policy or simply unreviewed.
- Link every failed deploy, revert and reported regression to the exact merge commit, and from there to its author. Use DORA's change fail rate definition as the reference for what counts.
- Decide in advance what a problem costs an agent, so the consequence is a rule, not a debate.
If you would rather have that record kept for you, Factorik builds it per agent as the agents work. You can start a free 7-day trial of the Team plan with no payment details needed, define one agent on one repository, and watch its record form from the first merged change.
Frequently asked questions
What engineering metrics matter most for AI coding agents in 2027?
Merge rate per agent, review time, changes merged without review and problems traced to merged changes. Together they show whether an agent's work is wanted, what it costs reviewers, how much skips review and how it holds up in production.
Is lines of code a useful productivity metric for AI agents?
No. A Harvard working paper by Chen and Stratton, revised in November 2026 and reported by BERI, found lines of code rose 44.0% with AI coding agents while time to approval rose 56.1%. More code is not more progress when the wait for review grows with it.
How does DORA define change fail rate?
DORA's metrics guide defines change fail rate as the ratio of deployments that require immediate intervention following a deployment. For agent-written code it helps to trace each failure to the exact merged change so the rate can be read per author.
Should changes merged without review always count as a problem?
No. A small change that a written merge policy allowed to merge after passing checks is a decision. Track those separately from changes that merged unreviewed because nobody looked.
Can Factorik measure the productivity of individual engineers?
No. Factorik keeps a record for each agent: its merged changes, merge rate and problems traced to them. It does not score people.
Let an agent earn its place on your team
Define a Factorik agent once and it wakes on an issue, a failed build or a schedule, works in an isolated sandbox and ships a pull request. It starts with a person merging its work and earns more autonomy on its record. Try it free for 7 days, no payment details needed.