What an Engineering Manager Should Measure About Agents
To measure AI coding agent productivity, measure results, not activity: how much agent work was merged, what share of runs a person judged good, what each good result cost, how much of your people's time went to answering agents, and how often agents collided. Lines of code, sessions and prompts tell you agents were busy, not that the work was worth having. This guide gives the five measures, where each number comes from, a one-page weekly report to copy, and the one thing not to do.
Why activity metrics mislead when you measure AI coding agent productivity
An agent can write a thousand lines in a minute, open a pull request nobody merges, and do it again. Counting its output rewards the wrong thing. Factory, the company, makes the same point in its "Introducing Agent Effectiveness" post (13 Aug 2026, updated 22 Oct 2026): "Autonomous engineering should be measured by outcomes, not logins, session counts, or survey estimates." Its product links agent sessions to cycle time and shipped artifacts.
DX's Laura Tacho recommends defining "a baseline for your core engineering metrics" before measuring AI's effect, and that "When tracking metrics like tool adoption or code suggestions accepted, always aggregate at the team level." Swarmia's Rebecca Murphey (5 Dec 2025) frames adoption data as a way to find barriers: "you're looking for patterns that help you make better decisions."
So the frame is: team-level, outcome-first, compared with a baseline you took before agents arrived.
1. Outcome: what was kept
Three numbers:
- Merged versus abandoned. Of the agent branches or pull requests opened this week, how many were merged, how many closed unmerged, how many are still open. This is the plainest measure and comes from your Git host.
- Runs judged good. For repeated work, a person marks each run good or bad. In Forkit, a factory (a saved fan-out that can be run again, not the company Factory) records a verdict per run with
forkit factory verdict RUN_ID good|bad --note "…", andforkit factory show NAMEprints the runs, how many were judged good and bad, the share judged good among judged runs, the cost in all and per run, and seconds per run. - Rework. How many merged agent changes were reverted or patched within two weeks. Keep the count small and look at each one.
A judged pass rate is only as honest as the judging. Ask the person who reviews the work to judge it, with a note when it is bad, and do not count unjudged runs as good.
2. Cost: per run and per kept result
Cost per run is easy to get and misleading alone. A cheap run that produced nothing usable costs more than an expensive one that merged. Divide by kept results: the week's agent spend over the number of merged agent changes gives a cost per merged change.
Know what kind of number you have. Forkit's per-thread and per-fan-out costs are estimates: it reads the tokens Claude Code and Codex record, or what other agents report with forkit usage, and prices them at list price. Cache writes are all priced as 5-minute writes, and an unknown model is priced as an expensive one and flagged. Your provider's bill is the real figure. Compare the two once a month and note the gap. See coding agent cost tracking compared and estimating coding agent cost for how each tool counts.
Braintrust's post on coding agent costs (7 Oct 2026) suggests the same comparison when you change a prompt or setup: "Completing similar tasks with fewer failed attempts and lower costs gives you better evidence that the change helped."
3. People's time: questions, waits, grouping
Agents spend your engineers' attention every time they stop to ask. Measure it:
- Questions asked of a person per week, split into permission requests and plain questions.
- Time to answer. The median and the slowest. A permission request that waits ten minutes is an agent stopped for ten minutes.
- Questions saved by grouping. In Forkit, identical permission requests from one fan-out (same tool, subject and repository) are shown and answered as one question. In the recorded demo of 17 Nov 2026 on staging (one run), six agents asked to run
node --testwithin 46 seconds, and one "Allow once" answered all six. Count how many requests a single answer settled. - Questions answered by rules. Each request answered by an allow rule is one a person did not have to read. A rising share means the rules are doing their job; a request type that keeps reaching people is a candidate for a rule, unless it is about production, secrets or money, which Forkit always sends to a person.
4. Friction: conflicts, holds, refused claims
When several agents work on one codebase, collisions cost time even when they are caught. Count:
- Claims refused. How often an agent asked to own a file another agent held. A few is normal. Many on the same file means the work was split badly.
- Merge-check holds. Forkit's Stop hook compares a fan-out agent's change with its peers' and holds an agent whose change would conflict, naming the file, the lines and the peer. Count holds per run and which files they name.
- Conflicts at collect time.
forkit fanout collect --mergeleaves conflicting agents as their own branches. Count them.
The fan-out page in Forkit lists each agent's files, lines added and removed, and which peers it would not merge with, refreshed every 10 seconds, so a lead can see a hotspot file while the run is still going.
A weekly one-page report
Copy this and fill it in from your Git host and Forkit each Friday. Keep it at team level.
# Agent work, week of ____ (team: ____)
## Outcome
- Agent changes merged: __ closed unmerged: __ still open: __
- Factory runs judged: __ good: __ bad: __ (share good: __%)
- Merged agent changes reverted or patched within 2 weeks: __
## Cost
- Estimated agent spend (Forkit): $__ provider bill (if known): $__
- Cost per merged change: $__
- Most expensive run: ____ ($__, result: ____)
## People's time
- Permission requests: __ answered by rules: __ by people: __
- Plain questions from agents: __
- Median time to answer: __ min slowest: __ min
- Requests settled by one grouped answer: __
## Friction
- Claims refused: __ (top file: ____)
- Merge-check holds: __ conflicts left at collect: __
## One change for next week
- ____
The last line matters most. Each week, pick one rule, prompt or split to change, and check the numbers the week after.
What not to do
No per-engineer agent leaderboards. Ranking people by sessions, tokens or agent pull requests rewards running more agents, not better work, and it is the kind of individual metric DX warns erodes trust. If one person's agents produce better results, find out what their prompts and rules do differently and copy that.
Do not count unjudged runs as good. A pass rate built on silence is a measure of how busy reviewers were.
Do not treat estimated cost as the bill. Use it to compare runs with each other, and the bill to know what you spent.
Do not measure in the first week. The pilot week is full of setup. Take the baseline before, and the first real comparison after a few weeks.
Where Forkit fits
Forkit is the coordination system for agent teams. For measurement it supplies factory verdicts and pass rates, estimated cost per thread, fan-out and run, the record of every question and who answered it, grouped answers, and the conflicts and holds a fan-out ran into. It does not replace your Git host's merge data or your provider's bill. For how factories work, see what is a software factory. Free to try at forkit-mcp.com.
Sources
- Forkit engineering notes: factories (verdicts,
forkit factory show), what agents cost, grouped approvals, live per-agent diffs, the recorded demo of 17 Nov 2026 (staging, one run). - Factory, "Introducing Agent Effectiveness", 13 Aug 2026, updated 22 Oct 2026, https://factory.com/news/agent-effectiveness (read 27 Nov 2026).
- Laura Tacho, DX, "How to introduce AI impact metrics into an engineering organization", updated 4 Aug 2025, https://getdx.com/blog/introduce-ai-impact-metrics-in-engineering/ (read 27 Nov 2026).
- Rebecca Murphey, Swarmia, "AI adoption for engineering teams: a four-stage approach", 5 Dec 2025, https://www.swarmia.com/blog/staged-approach-AI-adoption-for-engineering/ (read 27 Nov 2026).
- Braintrust, "Optimizing coding agent usage and costs", 7 Oct 2026, https://www.braintrust.dev/blog/coding-agent-insights (read 27 Nov 2026).