
Metrics
AI coding ROI: a framework for engineering leaders
How to calculate the return on AI coding tools: every cost line, a value model with an explicit capture rate, a worked example and the numbers to measure.
By Omar Contreras
6 min read
What the built-in analytics of Claude Code, Cursor and GitHub Copilot each report, per their docs, and what only a cross-tool view can show a team.

By Angel Lindarte (opens in a new tab)
Cofounder & CTO
Published 6 min read
Tags
An engineering manager opens three dashboards on a Monday: one from the editor, one from the terminal agent, one from the pull request assistant. Each shows a rising line. When she tries to answer “how much of our code does AI write?”, she has three numbers, three definitions and no way to add them up.
This article reads each tool’s official documentation as of November 2026. Dashboards change often, so check the linked pages before you rely on a detail.
Claude Code analytics shows usage and contribution metrics for organizations on Claude for Teams and Enterprise, and usage and spend for API customers. Admins and Owners see the dashboard at claude.ai/analytics/claude-code on Team and Enterprise plans.
The Team and Enterprise dashboard reports lines of code accepted, suggestion accept rate, daily active users and sessions. With the GitHub integration enabled, it adds contribution metrics: merged pull requests that contain at least one line written with Claude Code, and the lines of code in those pull requests. A leaderboard ranks the top 10 users, and contribution data exports as CSV.
Three details from the documentation change how you read it. Contribution metrics are in public beta, need the GitHub app, cover repositories on github.com, and are not available with Zero Data Retention. Attribution matches Claude Code session activity against the merged diff, counts only lines with high confidence, and does not attribute code a developer rewrote by more than 20 percent, so Anthropic describes the numbers as an underestimate. And the dashboard covers users within your claude.ai organization, not usage through the Console API or third-party integrations.
For per-user token counts and cost, the documentation points to OpenTelemetry export or the spend report. API customers get a Console dashboard with lines accepted, accept rate, active users, sessions and daily spend.
Cursor analytics is for Team and Enterprise plans, and it centers on committed code and on how people use each Cursor feature. Admins see data for themselves and all members; non-admin members see their own data plus some users on the leaderboard. Data comes only from client version 1.5 or higher.
The documented sections include:
Enterprise adds Conversation Insights, which classifies agent sessions by type of work and complexity, and an Admin API. Charts export as CSV, and you can filter by up to 10 users, groups and up to 90 continuous days.
GitHub Copilot’s usage metrics cover adoption, engagement, acceptance rate, lines of code and the pull request lifecycle, through dashboards and a REST API. The documentation lists a usage metrics dashboard, a code generation dashboard, an impact dashboard and repository insights.
The metrics named are how many licensed developers actively use Copilot, how often they use it and which features, how often they accept suggestions, code suggested, added or deleted in the editor, and pull request creation, merge counts, time to merge and review activity. The impact dashboard places adoption depth next to pull request output, and the API offers organization and enterprise reports with repository and user detail, plus NDJSON exports.
The documentation is candid about limits. A day’s data is available within two full UTC days after the day closes. Detailed IDE breakdowns need supported clients with telemetry enabled. The metrics are not a complete record of all Copilot activity. Organization totals overlap, so they should not be summed into an enterprise total. And impact comparisons “show associations, not proof” that adoption caused productivity changes.
Each dashboard answers the same family of questions with a different unit.
| Claude Code | Cursor | GitHub Copilot | |
|---|---|---|---|
| Adoption | Daily active users, sessions | Active users per product | Active licensed developers |
| Code | Lines accepted, lines in merged PRs | AI share of committed lines | Lines suggested, added or deleted in the editor |
| Pull requests | Merged PRs with Claude Code (needs GitHub app) | Cloud Agent PRs opened and merged | Creation, merge, time to merge |
| Cost | Spend in the API Console, spend report | Not listed in the sections above | Not listed in the docs read here |
| Programmatic access | Analytics API (Enterprise), Console API | Admin API (Enterprise) | REST API, NDJSON exports |
Read the “Code” row slowly. Lines accepted in an editor, lines in merged pull requests and lines in commits are three different measurements. A tool’s own number is useful for that tool’s trend. It is not a basis for comparing tools, and the sum of the three is not the team’s AI share.
A cross-tool view measures the same signals the same way for every agent a team uses, so the numbers can sit next to each other. That is the one thing a built-in dashboard cannot do, because each one only sees its own tool.
HubBound Analytics works on sessions, tokens, cost, commits and code lines reported from each machine, and splits them by provider and model. The Bogotá build day gives a concrete case. Nine builders ran Claude Code and GitHub Copilot, and HubBound counted active time per agent (92 percent Claude Code, 8 percent Copilot), tokens per model, and 91,129 lines written with AI across 289 commits. Only the line counts per commit left each computer. The full story, and its limits, is in how much code AI agents write in a hackathon: one day, nine volunteers, fresh projects.
Access follows the dashboard’s rules, and Boundy AI, HubBound’s chat in the web app, answers questions about usage, adoption and costs under the same ones: org admins see organization-wide and per-person breakdowns, team admins and leads see their team, and members see only their own metrics.
If the team uses one coding agent, its own dashboard is the right start, and a second tool adds little. The case for a cross-tool view starts when people use two or more agents, when you need to answer the same question for all of them, or when leadership asks about cost and adoption together.
Whichever route you take, decide the unit before you read the chart. Lines, accepted suggestions and merged pull requests describe activity, not outcomes. They tell you whether people adopted a tool, and they do not tell you whether delivery improved. For that, read them next to delivery measures, as we argue in AI adoption is not AI productivity.
Book a demo and we'll walk through Artifacts, Kits, distribution and metrics with the tools your developers already use.