Answered from these docs only, by a model that cannot see your account. Check the pages it cites.

Measuring AI coding assistants, including GitHub Copilot usage metrics

What GitHub Copilot, Claude Code, Codex, Gemini Code Assist and Cursor report: what each figure is good for, how to value the time saved, the pitfalls.

View as Markdown

Answered from these docs only, by a model that cannot see your account. Check the pages it cites.

Checked against the product on November 19, 2026

GitHub Copilot, Claude Code, OpenAI's Codex, Gemini Code Assist and Cursor each report how much developers used them, such as suggestions offered and accepted, lines of code, and how many people used the tool on an average day. Not every tool reports every one of these. This page covers what those figures can tell you, how Roiva turns them into a value, and where they mislead.

What the figures are good for

  • Valuing the time an assistant saves. The AI Coding Assistant Rollout template values it as accepted suggestions × minutes saved per acceptance × your fully loaded developer hourly rate. For an assistant that counts no acceptances, such as Codex, or counts them in more than one unit, such as Cursor, it uses lines of code (the lines Codex wrote that developers kept, the lines developers accepted in Cursor) × minutes saved per line instead. An initiative measuring one assistant gets one of the two, never both, because both measure the same saved hour. With more than one assistant reporting, each gets a formula of its own, in its own unit.
  • Valuing what developers report, where the assistant reports nothing. See When the assistant reports nothing.
  • Following adoption. Active users and accepted suggestions, month to month, show whether a rollout is taking hold, slowing, or concentrated in a few people.
  • Comparing a tool with itself. The same assistant's figures this quarter against last quarter answer most of what a team wants to know.

The value is freed capacity, not cash: developer hours priced at what they cost. It's reported beside cash value and counts in no ROI until someone shows, with a document, that the time became cash, such as a contractor not renewed or a hire not made. See How Roiva calculates value.

Where GitHub Copilot's figures come from

Roiva reads GitHub's Copilot usage metrics API, which GitHub offers beside its Copilot usage metrics dashboard for reporting of your own. From each organization's daily report it takes acceptance activities, lines of code accepted, daily active users and Copilot code review, and from Copilot's billing it takes the seats assigned. This API replaced GitHub's older Copilot metrics API, which stopped answering on April 2, 2026. The organization needs Copilot Business or Copilot Enterprise, with the Copilot usage metrics policy turned on, and GitHub says a day's report can take two full UTC days to arrive.

The dashboard also shows pull request throughput and an impact view. Roiva doesn't read those: it counts merged pull requests from GitHub's pull requests themselves, as a check on the saving (see Best practices). GitHub advises reading these signals together rather than treating any one number as a measure of productivity, and the rest of this page does the same.

The units aren't the same across tools

Each assistant counts in its own unit, and they don't convert:

  • Copilot counts acceptance activities. One activity can bundle several completions.
  • Claude Code counts accepted tool actions, one edit or write each, whether it reports through an Anthropic Console organization or across Claude Enterprise seats.
  • Codex reports no count of accepted suggestions at all, so Roiva reads the lines of code it added that developers kept.
  • Gemini Code Assist counts the code suggestions developers accepted in the IDE and the Gemini CLI, as Google records them in Cloud Monitoring for the project it reports to. Built from Google's published reference. If Google's answer doesn't match that reference, or leaves out a day it reported before, Roiva records nothing from it and says so on the connection, rather than count no one coding.
  • Cursor counts accepted Agent and chat suggestions and accepted Tab completions separately, neither by lines, so Roiva values Cursor by the AI-written lines developers accepted, from its Admin API's daily usage report. It needs a team API key from a Teams or Enterprise plan, made by a team admin. The report lists each member by ID and email; Roiva adds each day up into the team's counts as it reads and keeps no member. Built from Cursor's published docs, with the same rule as Gemini Code Assist: an answer that doesn't match them is recorded as nothing and said so on the connection. Cursor's API reports usage, not its invoice, so Cursor's seats come from the charge on your company card or the bill in your books.

Codex comes through the ChatGPT Enterprise connection. A key made only for Codex analytics stops working on December 15, 2026, when OpenAI retires that endpoint; a key with Enterprise analytics usage keeps reading Codex after that. See Measuring a workplace AI assistant.

So Roiva reads coding assistants from one source at a time, the primary, and never adds two tools' counts together. Organization Settings → Metric Sources shows which one the account reads. Where a team runs more than one assistant and they report, the template gives each a formula of its own, so one that goes quiet holds only its own month. Copilot and Claude Code each have their own minutes figure. Claude Code on Console and on Claude Enterprise share one, and Gemini Code Assist, Codex and Cursor use the general figures for an acceptance and a line of code.

If an assistant reports work that no formula on an initiative reads, the initiative's Health tab says so, and its value leaves that assistant out until you count it. Count adds the assistant's formula from the month after the last month these formulas have an entry for, so no month is priced twice, and an earlier month with no entry stays unbooked. With no entries yet, it books past months too. A formula that reads only the primary source is replaced at that point: its booked months stay, and entries still waiting on it are dropped. The row is advice and doesn't count against Health, so you can leave an assistant out. If you archive an assistant's formula, it stays out and the row goes away.

Lines of code differ too. Copilot, Gemini Code Assist and Cursor count the lines developers accepted, Claude Code the lines it added, and Codex the lines it added that developers kept. Don't add them up or compare one tool's lines with another's.

Measured from your own GitHub

With GitHub connected and Copilot seats assigned, Roiva measures the saving instead of pricing each acceptance at a minute. It compares developers given a seat after the initiative began with developers who never had one, over the same months: how many pull requests each group merged a month in the two months before, and in the two months up to the month being valued. The change for developers with a seat, less the change without one, over their rate before, is the uplift. The same work in less time frees uplift ÷ (1 + uplift) of it, so an uplift of 25% frees 20% of their hours. Developer Capacity Freed by AI (measured throughput) prices that share of the hours the developers given a seat work, 35.3 a week by default, at your developer hourly rate. No minutes figure and no share you credit go into it: the developers without a seat are what nets out hiring, release cycles and everything else that moved both groups.

The template switches an initiative to it on its own once five developers who merged pull requests both before and after were given a seat after the initiative began, with two months on each side. Until then, the minutes-per-acceptance figures stand in, labeled as Roiva's. An initiative that has already booked value on another coding formula keeps it: Roiva never switches a formula with booked months, and leaves a formula you chose yourself where it is.

These make a month wait for you to approve it:

  • No comparison group: fewer than five developers without a seat. The figure is the seated developers' own change, with nothing to net out a change every developer shared, and its hours read Measured before and after rather than against a comparison group.
  • Pull requests got smaller: the seated developers' median pull request shrank by more than a quarter against the comparison group's. Smaller pull requests aren't more work.
  • Pull request size not checked: GitHub's line counts weren't fetched for enough pull requests to compare their size.
  • Throughput fell: the seated developers merged fewer pull requests than before, against the comparison group, which books negative freed capacity.
  • More time than the AI's lines: Copilot added fewer lines for the seated developers that month than they would have written, at their own pace before the rollout, in the time the comparison says it freed. Time freed can't be more than the time the AI's lines would have taken to write by hand. Past that, the comparison is picking up something besides Copilot, or Copilot's count missed some of its work. A day GitHub had no Copilot report for counts as a day with no lines, and the days after its latest report don't count yet.
  • AI lines not checked: GitHub had no per-developer Copilot report for the month in one of the organizations the groups come from, or GitHub's line counts weren't fetched for every pull request the seated developers merged in the two months before. The month is worked out again when either arrives. A GitHub connection's page says when GitHub refused the per-developer report.

Copilot's lines are only a bound. Roiva doesn't cut the figure down to them, and doesn't credit a share from them. The lines a developer accepted show how much they used Copilot, not how much time it saved them.

The lines come from GitHub's Copilot report for each developer: completions accepted, code blocks applied from chat, and agent and edit mode edits. They include code that was never merged and code in repositories Roiva doesn't read, while the developers' pace before counts only what they merged in the repositories it does. So the bound is a loose one: it catches a month whose time freed no use of Copilot could explain, not one that's only somewhat high.

Roiva reads that report only while one of your initiatives uses this measure, and deletes what it kept once none does. It keeps each developer only as the same code it keeps for a seat holder, adds up only the developers given a seat, and never shows or exports one developer's lines.

Roiva keeps each seat holder only as a code it matches against the pull request authors it already keeps, and shows the two groups' figures, never one developer's. A group under five shows only its size.

When the assistant reports nothing

Some assistants report nothing Roiva can read. Claude Code signed in with a claude.ai plan (Pro, Max or Team) reports to that plan, and no API reads it. Connected through an Anthropic organization whose developers work that way, Claude Code reports no acceptances or lines at all. With GitHub connected, the template values the extra merged pull requests instead, and only the share you credit to the initiative. Without it, the formula books $0.

Either way, the formula's page offers Developer Capacity Freed by AI (hours saved, self-reported) instead. It values developers who answered a survey × the hours a week they say the assistant saved them × the weeks in the period × your developer hourly rate. DX's AI measurement framework tracks the same figure, time saved per developer per week. Missing Inputs asks for both from each month's survey, once the month has ended, and a month waits until both are in. Only a person switches to it: Roiva never picks it from your connected tools.

This figure is what developers report, not a measurement. In METR's 2025 randomized trial, experienced developers believed AI tools made them 20% faster, but they took 19% longer. METR now marks that result "out of date", and its February 2026 update couldn't give a reliable estimate: both of its ranges include no effect, and many developers held back tasks they didn't want to do without AI. So every month this formula books says Self-reported and waits for a person to approve it, even with auto-approve on. Before you approve, check the hours against something your team already watches, such as merged pull requests or cycle time. Ask the same question the same way each month, and count only the developers who answered.

Best practices

  • Set the minutes yourself. Roiva ships a default for minutes saved per acceptance and per line so a figure appears on day one, but no published study measures either one, so each is a convention rather than a measurement. A time study can't set them either: it times whole tasks, and no assistant reports how many acceptances or lines one task took. Replace each default with a figure your engineering leads will stand behind, and say why in its note. Ground it in more than how much faster people feel: in METR's 2025 randomized trial, experienced developers took 19% longer with AI tools while believing they had been 20% faster, though METR now marks that result "out of date" (see its February 2026 update). The defaults themselves are in Assumption defaults.
  • Price Copilot and Claude Code separately. An accepted Claude Code edit is a smaller unit than a Copilot acceptance, so one minutes figure for both overvalues one tool or undervalues the other.
  • Use a fully loaded rate. The developer hourly rate should include benefits and overhead, not salary alone, or the saving reads low.
  • Read counts beside active users. A month with twice the acceptances might mean twice the developers rather than twice the help per developer.
  • Prefer acceptances to lines. An accepted suggestion is a decision a developer made. A line is output, and says nothing about how hard it was to write.
  • Look for the saving downstream. If time is really being saved, it tends to show up somewhere a team already watches, such as merged pull requests or cycle time, which GitHub reports too. Those figures have many causes, so treat them as a check, not as the value. The exception is an assistant that reports no accepted suggestions or lines at all: then the formula library values the extra merged pull requests, and only the share you credit to the initiative.

Pitfalls

  • Accepted isn't shipped. An accepted suggestion can be rewritten or deleted an hour later. The count says a developer took the code, not that it survived review.
  • Usage isn't value. Acceptance counts rise as people try a tool, and stay high when the tool is used for work that wouldn't have taken long anyway. The minutes figure is where that's accounted for, which is why it's worth setting yourself.
  • Seats aren't users. Licenses bought and people using the tool on an average day are different numbers. Cost follows seats, value follows use.
  • Two Claude Code populations. If some developers use Claude Code through an Anthropic Console organization and others on Claude Enterprise seats, a new initiative gets a formula for each. One already on a formula counting Claude Code from one of them leaves the other out, and its Health tab says so.
  • Agent-sized pull requests. The merged pull request formula prices each extra pull request at the developer hours one took before the assistant, 9.3 by default, worked out from teams merging 3.8 a week per engineer. Where agents open and merge many small pull requests, that figure doesn't fit them. When GitHub's count of a month's pull requests says who opened them, a month whose extra pull requests, at that figure, come to more hours than those people work can't be approved, whatever share you credit, and doesn't count as waiting for approval. A count typed by hand, or a month GitHub synced before Roiva could tell people from bots, doesn't say who opened them, so that month is marked Hours not checked and waits for you to check it. Set your own hours per merged pull request for pull requests that size, or measure the initiative another way.
  • A baseline from after the rollout. Roiva works the baseline out from the months before the initiative began, where GitHub has them. If the team already used the assistant then, the difference says nothing about what the assistant changed. Record a baseline from a month before anyone used it, or measure the initiative another way.
  • The API bill isn't the assistant's bill. An Anthropic connection reads the Console organization's whole API bill, which also carries anything else built on it, such as your product's own features. Linking Anthropic as a coding assistant initiative's cost source, or editing it, asks for the workspaces Claude Code bills to; Anthropic names the one it creates "Claude Code". Claude Code on a claude.ai plan isn't on that bill at all: its seats come from your books, or a recurring cost if they aren't there.

Each of these figures has its own entry in the Metric registry, with what to watch out for when you read it.