Platform
AI Impact
See what your AI coding tools cost next to what your teams ship: merged pull requests from GitHub, AI-written lines from the Token Meter agent and resolved tickets from Jira, at team level.
AI Impact is a set of pages in the Coding tools view of the sidebar that join three kinds of data: what your AI coding tools cost, what landed in your repositories, and what was delivered in Jira. It answers questions such as “what does an AI-authored pull request cost us?”, “how do AI-authored pull requests fare in review?” and “roughly how much AI spend sits behind this ticket?”. Every figure links spend and output. It does not prove the tools caused the output.
Before you start
- To connect GitHub or Jira, you need to be an Owner or Admin of the workspace.
- For GitHub, you also need to be an admin of the GitHub organization you connect (or the owner of the personal account).
- For Jira, you need a Jira Cloud site and a Jira account that can browse the projects you want. Create your Token Meter teams first (see Connect Jira).
- GitHub, Jira and the Token Meter agent work on every plan.
What AI Impact shows
All pages are in the Coding tools view of the sidebar (the second icon at its top). Each has a 7d, 30d, 90d, 180d and 1y range (dates are UTC). On the Free plan the pages show the last 90 days, so 180d and 1y are greyed out; older data is kept and shows again after an upgrade.
- Repositories holds up to a year of GitHub history: the period chosen when the GitHub account was connected.
- The other pages hold what each AI tool’s analytics feed served when it was connected (90 days at most; GitHub Copilot metrics serve 28). When the range reaches further back, a notice under the header says where each source’s data starts.
- Jira is read over the connection’s lookback window, 365 days by default.
| Page | What it shows |
|---|---|
| Repositories | Tabs Repositories (merged and AI-authored pull requests and AI spend per repository), Quality (review and revert signals, AI-authored against human) and Code attribution (committed lines the Token Meter agent says AI wrote). Each pull request has a detail page. |
| Delivery | Tabs Cost per PR (cost per AI-authored pull request by team, spend against output, quality beside cost, before and after AI, spend by model), Jira (delivery and bug metrics, AI cost per ticket) and Recall (context tokens avoided by Agent Recall). |
| Team | Adoption: active users, power users, usage by role, and team adoption targets. |
| People | AI spend and engineering output per person, with no score or ranking (tab All people); members also see their own usage (tab Your usage). |
| Agent usage | How teams use AI coding tools and what they cost. |
| Connect | The Token Meter agent setup and keys. All data sources opens one list of the sources you can connect, a row each: the AI coding tools, Any OpenTelemetry tool, This machine (the Token Meter agent), GitHub and Jira. |
Who can see and set it up
| Role | Can |
|---|---|
| Team lead | Open Repositories, Delivery, Agent usage, Team and People. A team lead sees only the teams they lead. |
| Admin or owner | Everything above for the whole workspace. Connect GitHub, Jira, OpenTelemetry and the AI tool sources. Map Git authors to members. Set team adoption targets. |
| The person who connected a GitHub account | Manage that account: include or exclude its repositories, Sync now, Change repositories and Disconnect. Nobody else can, whatever their role. |
| Member | Create their own Token Meter agent keys on Coding tools › Connect with Create key. |
Connect GitHub
GitHub gives AI Impact the human baseline: commits, merged pull requests, reviews and reverts. You connect it by installing the Token Meter GitHub App. The App has read-only Metadata, Contents and Pull requests permissions. No code, diffs or commit messages are stored.
Set it up
- In Token Meter, open Coding tools › Connect, choose All data sources, then Connect on the GitHub row.
- Choose Connect GitHub in the Connection section. A dialog asks How much history should be read?
- Pick a period: 30 days, 60 days, 90 days, 180 days or 1 year. The default is 1 year (“Everything the reports can show”). A shorter period syncs sooner, but the Repositories page’s 180d and 1y ranges then have gaps. You can change it later.
- Choose Continue to GitHub. On GitHub, pick the organization or account, choose All repositories or Only select repositories, and approve the install.
- If you are not an admin of that GitHub organization, GitHub sends an install request to its owners instead. Once one of them approves it, come back and choose Connect GitHub again.
- GitHub sends you back to Token Meter and the first sync starts. The card shows the account, Status (Syncing…, then Active), Last sync, how many Repositories are included, and the History period. Repositories appear in the table as they are read; the page refreshes by itself.
- Check the repository table. Only repositories marked Included are read. Forks and archived repositories start Excluded. To change one, open its ⋯ menu and choose Include in reports or Exclude from reports.
- Under Git authors, check that each GitHub login is matched to a workspace member (see Matching authors to people).
Manage a GitHub account
Only the person who connected an account manages it
Each GitHub account is managed only by the person who connected it. Only they see Sync now, Change repositories, Disconnect and the include or exclude menu. Everyone else sees “Only <name>, who connected this account, can change its repositories, sync it or disconnect it.” Git author mapping is workspace-wide and open to any admin.- Change repositories on the account’s card asks for the history period again, then opens the App’s settings on GitHub. Use it to add or remove repositories or to change the period.
- Add GitHub account, top right, connects another GitHub organization or account. A workspace can have several; each has its own card.
- On Repositories, Add GitHub account in the header does the same thing, and Add repositories appears there when an account was installed for selected repositories only.
- Sync now starts a sync straight away.
- Disconnect stops syncing that account. Its imported history is kept, and other accounts keep syncing. Token Meter’s App stays installed on GitHub. To remove its access completely, also uninstall it on GitHub: for an organization, Settings › GitHub Apps, then the Token Meter app, Configure, and Uninstall; for a personal account, Settings › Applications › Installed GitHub Apps.
- The card says who added the account and when. If that person has since left the workspace, the controls can’t be used; ask the Token Meter team.
What a sync reads
- Syncs run once an hour, at 40 minutes past.
- A newly connected or newly included repository first reads the last 90 days, or your chosen period if that is shorter. A repository first picked up by the hourly sync reads 30 days instead.
- The rest of your chosen period, up to 1 year, is then filled in over the following hours. The History from column in the repository table shows how far back each repository is complete.
- After that, each sync re-reads the last 3 days, because pull requests merge late and history can be rewritten.
- Commits on each repository's default branch (merge commits are skipped), with their date, author, line counts and AI markers.
- Pull requests in any state (merged, open, closed), with dates, size, commit count, reviews by people other than the author, review threads and revert links.
- Jira-style issue keys (such as
PAY-123) found in pull request titles, branch names and commit messages, so tickets can be linked to pull requests. - 14 days after a pull request merges, line survival measured with GitHub's blame (no repository clone).
How AI authorship is detected
A commit counts as AI-authored when it carries a marker an AI tool leaves:
- a co-author trailer or footer from Claude Code, GitHub Copilot, Cursor, Codex, Devin or Gemini CLI (for example
Co-Authored-By: Claude, or “Generated with Claude Code”); - an Aider author name ending in
(aider); - a commit made by an agent account, such as Copilot, Devin, Codex, Cursor or Claude bot accounts.
A pull request is AI-authored when an agent account opened it, or when any of its commits is AI-authored.
AI-authored is a floor
This is not a code classifier. Stripped trailers, squash merges that drop them, and tab-completion tools that leave no mark are all missed. So “human” means “no AI marker found”, and the AI-authored figures are a floor.AI-written lines with the Token Meter agent
The Token Meter agent runs on each developer's machine. It reports token usage per AI session and model. For each commit, it also reports which lines in which files each AI session wrote. Setting it up is covered in Coding agents. It is set up from the Connect page, and its figures are labelled Token Meter.
With the Token Meter agent and GitHub both connected:
- Code attribution lists AI-attributed committed lines per commit and file, with the tool and model. A row appears only when the commit note could be read, the commit was synced from GitHub, and the author is a verified workspace member. Separate sessions can report overlapping lines.
- The pull request detail page shows Who wrote the lines (AI sessions against the human) and AI sessions behind this PR. A commit with no agent note counts as unknown, not human-written.
- Repositories, pull requests and Jira tickets get an AI cost (see How cost is tied to pull requests and tickets).
Only machines running the Token Meter agent contribute. Admins see every key under Everyone's keys on Coding tools › Connect. A key that has not uploaded for 3 days shows as quiet.
Connect Jira
Jira adds resolved tickets, story points, epics and bugs. Only Jira Cloud (https://<site>.atlassian.net) is supported.
Set it up
- Create your teams first. Each Jira project is mapped to a Token Meter team. Teams are created under Settings › Teams with Add team, by the workspace Owner (or someone with the CTO or CFO role). Each team’s slug is shown on its Manage page; the Jira form’s mappings box suggests them too, and once Jira is connected the Jira page lists them.
- Find your story points field ID. While signed in to Jira, open
https://<site>.atlassian.net/rest/api/3/fieldin your browser and search the page for “Story point”. The ID next to it looks likecustomfield_10016. (In Jira’s field settings, the field’s address ends inid=10016; addcustomfield_in front.) - Pick the Jira account Token Meter will use. A dedicated read-only integration account is best. It only needs permission to browse projects and issues in the projects you map.
- Signed in as that account, open
id.atlassian.com/manage-profile/security/api-tokensand choose Create API token (not the scoped option). Name it, pick an expiry, and copy the token. - In Token Meter, open Coding tools › Connect, choose All data sources, then Connect on the Jira row. Choose Connect Jira in the Connection section. A form opens on the side.
- Fill in the form (see the table below).
- Choose Save Jira connection. Token Meter first checks the token and the story points field with Jira. If either fails, nothing is saved and the page says why. On success it says “Jira accepted these credentials and the story points field.”
- Choose Sync now. The page shows the number of imported events, the last sync and any error. Refresh to see the latest status.
| Field | What to enter |
|---|---|
| Jira Cloud URL | The site address only, for example https://acme.atlassian.net |
| Account email | The integration account's email. |
| API token | The token from step 4. It is stored encrypted and never shown again. |
| Project-to-team mappings | One PROJECT_KEY=team-slug per line, for example PAY=platform. At least one. Every team slug must exist in the workspace. |
| Story points field id (required) | The ID from step 2, such as customfield_10016. |
| Issue types that count as bugs | Comma-separated, default Bug (1 to 10 types). |
| Lookback days (1–365) | How far back the first sync reads. Default 365. |
To change anything later (a new token, mappings, the story points field), choose Edit connection, top right. The form opens empty, and saving replaces the stored token and mappings, so fill in every field again. Disconnect stops syncing; imported issues are kept. To cut off access completely, also revoke the token in your Atlassian account.
What a sync reads
- Syncs run once an hour. Each sync reads issues in the mapped projects changed since the last sync, with a 2-day overlap. The first sync reads the whole lookback window (365 days by default), and so does the next sync after you change the lookback.
- Per issue: key, project, issue type, parent and epic, status category, priority, story points, and created, updated and resolved dates.
- Issue titles, descriptions and comments are not requested or stored. No assignee or reporter is read.
- The story points field must exist and be a number field. Saving is refused otherwise, and the message lists candidate field IDs (number fields named like “story point” or “estimate”).
Done without a resolution
Many team-managed Jira projects move issues to Done without ever setting a resolution. AI Impact treats an issue as resolved at its resolution date or, when there is none, at the time it entered a Done-category status. An issue outside the Done category with no resolution date is unresolved.
AI tool sources
The spend side of AI Impact comes from your AI coding tools: vendor analytics APIs connected from their rows on Connect › All data sources (Claude Code, Claude Enterprise, Cursor, GitHub Copilot, Codex, Windsurf and others), OpenTelemetry from the Any OpenTelemetry tool row, and the Token Meter agent. Only counts are read, never prompts, code or conversation content. What each tool reports, and which plan it needs, is in Coding agents.
Commits and pull requests come from GitHub only. GitLab and Bitbucket are not supported.
Reading the pages
Repositories
- By repository: merged pull requests, AI-authored pull requests, AI spend (Token Meter) and spend per merged or per AI-authored pull request. Select a repository for lines merged, spend with no committed code, estimated spend across all tools, tools and models, and review coverage.
- Quality compares AI-authored and human pull requests: reviewed before merge, reviews per pull request, changes requested, commits after first review, rework rate, 14-day churn, time to first review and reverted. Review data for older pull requests is filled in gradually after each sync; until then they are left out of the review figures. Recent pull requests shows no author names; the team is in the row's dialog. The number opens the pull request's detail page; the rest of the row opens a summary.
- The pull request detail page also shows Review, Did the code stay? (line survival, and whether it was reverted) and Linked Jira tickets.
Delivery
- Cost per PR: cost per AI-authored pull request by team, weekly or monthly. A trend verdict appears once a team has 8 weeks of history (the first four weeks against the last four). Without GitHub, the tab uses the pull requests, commits and lines the AI tools themselves report. It also shows spend over time, AI cost by Jira epic or project, story points against spend, Before vs after AI and Spend by model.
- Jira: By project (resolved issues, story points, bugs created, Est. AI spend), Bugs (created, fixed, open now, median lead time from created to resolved), By epic and AI cost per ticket.
- Recall: estimated context tokens avoided by Agent Recall; see Router.
Team
Org adoption rate, daily active AI users, power users (AI use on at least 75% of workdays), average cost per active user and usage by role. Admins set a target per team with Edit targets: the share of the team's roster that should be active, over a window of 7 to 365 days. A team below its target raises a warning alert, checked daily, which clears when the team is back on target.
How cost is tied to pull requests and tickets
The pages use five different figures, each with its own basis. They are never added together.
| Figure | How it is computed |
|---|---|
| Cost per AI-authored PR (Cost per PR tab) | A team's pay-as-you-go AI tool spend divided by its AI-authored merged pull requests. Subscription usage has no per-token cost and is left out; a team with only subscription usage shows its API-equivalent value marked "equiv.". |
| AI spend per repository and per pull request | Token Meter agent token counts priced at API list rates for the model. A session's cost is split across the commits it touched, by lines attributed; a pull request gets the share for its own commits and its merge commit. For seat-billed tools such as Cursor or Copilot, this is what the tokens would cost, not what was paid. |
| AI cost per ticket | The Token Meter agent cost of the merged pull requests linked to the ticket. A pull request that names several tickets splits its cost evenly between them, so nothing is counted twice. |
| Est. AI spend (Jira by project) | Each linked AI-authored pull request times its team's cost per AI-authored pull request. |
| Est. spend (all tools) (repository dialog) | Pay-as-you-go vendor and OpenTelemetry spend, spread by each person's commits per repository and day. |
- A ticket is linked to a pull request only when the pull request names the issue key in its title, branch name or commit messages. Revert pull requests are not costed. The Jira tab shows what share of merged pull requests carry a key.
- A dash means no cost is recorded, not $0. A leading
~means the figure is a floor (some linked pull requests have no cost, or some usage could not be priced). - Models with no price rule are counted as unpriced and named, never shown as $0.
- Token Meter agent session spend that no commit note attributes a line to is shown as No committed code. Treat it as spend without a delivered pull request, not as waste.
- Planning, review and work done without AI tools are not in any of these figures.
Privacy and limits
- No source code. The GitHub sync reads commit and pull request metadata: counts, line totals, authorship markers, reviews. It stores no code, diffs or commit messages. Pull request titles, bodies and commit messages are read in memory only, to find issue keys, revert links and AI markers.
- Jira stores no titles, descriptions or comments, and reads no assignee or reporter.
- The Token Meter agent sends counts and line ranges. Prompts and code are never stored.
- Team level. Repositories, Delivery and Agent usage report by team, not by person. Teams with fewer than 5 people are combined into Other (small teams). Per-person figures are only on People.
- Correlation, not causation. Team size, seniority and repository type are not controlled. Don't use these figures to rank teams or people.
- Very large backlogs are read in chunks: a sync that reaches its page limit catches up over later runs.
- Line survival is not measured for rebase-merged pull requests or pull requests adding more than 3,000 lines, and only the 10 files with the most added lines are checked.
Troubleshooting
| What you see | What to do |
|---|---|
| GitHub connection is not available on this deployment yet (or: The GitHub App is not configured on this server) | GitHub can't be connected on this Token Meter deployment yet. Contact the Token Meter team. |
| Installation requested | A GitHub organization owner has to approve the install. Choose Connect GitHub again after they do. |
| Only an admin of that GitHub organization can connect it | Sign in to GitHub as an organization admin, or ask one to connect. |
| That GitHub installation is already connected to another workspace | One installation belongs to one Token Meter workspace. Disconnect it there first. |
| Only <name>, who connected this account, can change its repositories, sync it or disconnect it | Ask that person, or connect your own GitHub account with Add GitHub account. |
| A repository shows Failing or Stale | The error is shown under the status. Stale means not synced in over 24 hours. "GitHub rate limit reached" clears on a later run. |
| The 180d or 1y range on Repositories has gaps or is greyed out | Greyed out: the Free plan shows 90 days. Gaps: the account was connected with a shorter history period, or history is still filling in (see History from). Use Change repositories to choose 1 year. |
| Work shows as Unassigned | Map the GitHub login to a member under Git authors. |
| Older pull requests have no review data | Review data for older pull requests is filled in gradually after each sync. Check again later. |
| Story points field is not set | Sync is paused. Set it under Edit connection, top right. |
| Jira no longer accepts these credentials | The API token was revoked or expired, or the account lost Jira access (for example when a trial ended). Create a new API token and save it under Edit connection. |
| Jira field … does not exist on this site, or … is not a number field | Use one of the candidate field IDs the message lists. |
| Use an HTTPS Jira Cloud URL such as https://acme.atlassian.net | Enter only the site address, with https:// and nothing after .atlassian.net. |
| No Jira outcomes imported yet | Run Sync now. Only issues in mapped projects resolved inside the lookback window are counted. |
| Tickets were resolved, but none can be costed | Put the Jira key in the pull request title or branch name. |
| No Token Meter line attribution found in this range | Connect GitHub and the Token Meter agent, map the author to a member, and wait for a note sync. |
| A ticket or repository shows a dash for cost | No Token Meter agent session is attributed to its pull requests. |