Skip to content
Marvex

AI & messaging

Claude Code Integration

Not a usage dashboard bolted on the side. Claude Code authorship is detected in the commit record itself, so AI-assisted work is measurable at the level that matters: what actually landed, in which repository, by whom.

Marvex identifies Claude Code authorship from commit trailers and ingests per-commit and per-day usage records covering tokens, cost, models and sessions, so AI-assisted development can be read alongside the delivery metrics for the same teams.

AuthTwo paths, deliberately separate. Authorship classification needs nothing beyond the existing GitHub or GitLab connection, because it reads commit messages that are already being synced. Detailed usage records are pushed to Marvex over a machine-to-machine ingest endpoint protected by an internal token, which is the credential the ingesting job holds and no user ever sees. Reading the resulting analytics uses the normal user JWT with role checks, and every query is scoped to one organisation.
An engineer working at a workstation with code on screen

Data Marvex reads

What we pull from Claude Code

  • Commit messages from the connected git provider, classified into three authorship classes by the commit classifier
  • A Co-Authored-By trailer naming <noreply@anthropic.com>, which marks a commit as Claude-assisted
  • An ADLC-Metadata JSON line in the commit message, which marks a commit as ADLC and takes precedence over the Claude trailer when both are present
  • Per-commit usage records ingested over an internal endpoint: commit ID, commit message, GitHub username, repository name and session ID
  • Token counts on each commit record: input, output, cache creation, cache read and total, plus total cost
  • Models used, skills invoked, agents involved and the declared tier and mode for a commit
  • Repository and user ADLC version, so adoption can be tracked against the version of the workflow in use
  • Per-day usage records per GitHub username: tokens, cost, models used and per-model breakdowns, sessions, platform, gate mode and last heartbeat

Once connected

What it unlocks

  • AI authorship share: what proportion of commits, and which repositories, carry AI-assisted work
  • Token and cost reporting per user, per repository and per day, including per-model breakdowns
  • Cost-efficiency views that relate spend to delivered work rather than to raw token volume
  • Adoption tracking by workflow version, mode mix and onboarded repositories
  • Team-scoped filtering, so AI adoption can be read per team rather than only per person
  • CSV export of AI-authored commits for anyone who wants to check the underlying rows

Authorship is detected in the commit, not reported by a vendor

Most AI tooling analytics starts from a usage API: the vendor tells you how much their product was used, and you take their word for it. Claude Code authorship in Marvex works the other way round. It is read out of your own git history.

Claude Code adds a Co-Authored-By trailer naming noreply@anthropic.com to commits it helps produce. Marvex’s commit classifier looks for that trailer and marks the commit as Claude-assisted. Separately, it looks for an ADLC-Metadata line — a JSON object embedded in the commit message by a structured development workflow — and where that is present the commit is classified as ADLC, which takes precedence over the Claude marker. Everything else is classified as a normal developer commit.

The consequence is that AI authorship is measured at the level of what actually landed. Not seats, not sessions, not suggestions accepted in an editor: commits, in a repository, on a branch, in a pull request that was reviewed and merged. That is the only unit that connects cleanly to delivery metrics.

  • DEV — no AI marker in the commit message
  • CLAUDE — a Co-Authored-By trailer naming noreply@anthropic.com
  • ADLC — an ADLC-Metadata JSON line, which wins when both markers are present
  • Classification runs over commits already synced from GitHub or GitLab

The usage records, and what is actually in them

Beyond classification, Marvex accepts detailed usage records pushed to it over an internal ingest endpoint. Two shapes exist. A per-commit record carries the commit ID and message, the GitHub username, the repository name, a session ID, and the token counts for that piece of work: input, output, cache creation, cache read and total, plus a total cost. It also carries the models used, the skills invoked, the agents involved, a tier and a mode, and the ADLC version in force for both the repository and the user.

A per-day record aggregates the same territory per user: total tokens by dimension, cost, models used with per-model breakdowns, session count, the platform and gate mode in use, and a heartbeat timestamp.

Both are ingested over a machine-to-machine endpoint guarded by an internal token, which keeps the write path separate from anything a user session can reach. Reads go through the ordinary user JWT with role checks, and can be filtered by team or by an individual GitHub username.

Cache tokens are why raw token counts mislead

Recording input and output tokens alone makes AI-assisted work look more expensive than it is, because a large share of the context on any real session is cached rather than re-read at full price. Marvex records cache creation and cache read tokens as separate dimensions for exactly this reason.

This matters most when comparing engineers or repositories. A workflow that establishes a large cached context once and then works against it will show enormous cache-read volume and modest input volume; a workflow that starts fresh every time shows the opposite. Judged on total tokens alone, the first looks profligate. Judged on cost, it may be the cheaper of the two.

The cost-efficiency views exist to hold that distinction: spend related to delivered work rather than to raw volume. It is the difference between measuring how much of a tool was consumed and measuring what the consumption bought.

  • Input, output, cache creation, cache read and total tokens recorded separately
  • Total cost recorded per commit and per day
  • Per-model breakdowns, so a model change is visible in the numbers
  • Cost-efficiency views relate spend to work rather than to token volume

What this is not for

AI authorship data is per-person by construction, because commits have authors. That makes it easy to misuse, and it is worth being explicit about the line.

Ranking engineers by AI-assisted commit share measures adoption of a tool, not contribution, and publishing such a ranking reliably produces gaming rather than insight — the trailer is a line in a commit message, and any metric that can be improved by editing a commit message will be. The same reasoning applies here as applies to DORA metrics: these are system and adoption measures, not individual performance measures.

The questions the data answers well are collective. Which repositories have adopted the workflow and which have not. Whether cost per unit of delivered work is trending in the right direction. Whether AI-assisted commits are concentrated in the same teams whose cycle time is moving. Team-scoped filtering exists so those questions can be asked without going person by person.

Reading it next to the delivery metrics

The point of holding AI adoption data in the same platform as DORA and pull request data is that the comparison needs no export. AI-authored commits, cycle-time stages, pull request size, review depth and deployment frequency are all keyed to the same repositories, the same teams and the same date ranges.

The honest framing is comparative rather than causal. If AI-assisted commit share rises in a team and its rework time falls, that is worth investigating; it is not a finding on its own, because both could be driven by something else entirely. Marvex is built to show you the coincidence clearly and leave the causal claim to you.

Where an evaluator wants to check the reasoning rather than take the chart on trust, AI-authored commits can be exported as CSV, so the rows behind a summary are inspectable.

Frequently asked questions

How does Marvex know which commits were written with Claude Code?

It reads the commit message. Claude Code adds a Co-Authored-By trailer naming noreply@anthropic.com to commits it helps produce, and Marvex’s commit classifier marks any commit carrying that trailer as Claude-assisted. It separately looks for an ADLC-Metadata JSON line embedded in the commit message and classifies those commits as ADLC, which takes precedence when both markers are present. Commits with neither marker are classified as ordinary developer commits. No additional connection is needed beyond the existing GitHub or GitLab integration.

What does Marvex record about Claude Code usage?

Per commit: the commit ID and message, GitHub username, repository name, session ID, input, output, cache creation, cache read and total tokens, total cost, models used, skills invoked, agents involved, tier, mode, and the ADLC version in force for the repository and the user. Per day and per user: total tokens by dimension, cost, models used with per-model breakdowns, session count, platform, gate mode and a heartbeat timestamp. These records are pushed to Marvex over a machine-to-machine ingest endpoint rather than pulled from a vendor API.

Why does Marvex record cache tokens separately from input tokens?

Because raw token totals mislead without them. A workflow that establishes a large cached context once and works against it shows high cache-read volume and modest input volume, while one that starts fresh each time shows the opposite — and on total tokens alone the first looks more expensive when by cost it may be cheaper. Recording input, output, cache creation and cache read as separate dimensions is what makes cost-efficiency comparable between different ways of working.

How is the Claude Code integration authenticated?

Two separate paths. Authorship classification requires no new credential, because it reads commit messages already being synced from GitHub or GitLab. Detailed usage records are pushed to Marvex over a machine-to-machine ingest endpoint protected by an internal token held by the ingesting job, which keeps the write path away from anything a user session can reach. Reading the analytics uses the normal user JWT with role checks, and every query is scoped to a single organisation.

How is Claude Code data different from GitHub Copilot data in Marvex?

Granularity and source. Copilot data comes from GitHub’s Copilot API as organisation-level daily usage metrics and seat assignments. Claude Code data is per commit, derived from your own git history plus usage records keyed to specific commits, so it answers which commits were AI-assisted, in which repository and by whom. Copilot tells you about licensing and activity; Claude Code authorship tells you what actually landed in the codebase. Both feed the same AI adoption tracking views.

Should we rank engineers by their AI-assisted commit share?

No. AI authorship share measures adoption of a tool rather than contribution, and because the marker is a line in a commit message, any ranking built on it can be improved by editing commit messages — which is what a published ranking will produce. The same reasoning that keeps DORA metrics away from individual performance review applies here. The questions this data answers well are collective: which repositories have adopted the workflow, whether cost per unit of delivered work is improving, and whether AI-assisted work is concentrated where delivery metrics are moving.

Can we see the raw commits behind the AI adoption numbers?

Yes. Marvex exposes the AI-authored commit list and a CSV export covering both Claude-classified and ADLC-classified commits, so the rows behind any summary figure can be inspected rather than taken on trust. Read access uses the normal user JWT with role checks, and the views can be filtered by team or by an individual GitHub username.

Marvex

Connect Claude Code to Marvex

Authorise the Claude Code integration and Marvex builds your delivery views from the history already in it. Integration tokens are encrypted at rest and scoped to your organisation.