# Claude Code Analytics: Investigating Team Bottlenecks

Canonical: https://weaveos.com/blog/how-claude-code-analytics-reveal-hidden-team-bottlenecks

Published: 2025-12-22T00:00:00.000Z

Updated: 2026-10-17T03:28:01.184Z

By Brennan Lupyrypa

Claude Code analytics can show how a team uses the assistant and, for supported configurations, which merged work includes its contribution. To investigate a delivery bottleneck, combine those signals with the events that show where work waits: review requests, review responses, checks, merges and deployments.

A rise in sessions or accepted code does not tell you whether review became slower or a module needs more maintainers. Start with a workflow question, inspect the underlying records and test a specific change.

## Know Which Claude Code Data You Have

Anthropic documents different analytics for different access paths:

| Source | Documented data | Boundary to check |
| --- | --- | --- |
| Claude Team and Enterprise analytics | Usage and adoption; GitHub contribution metrics with additional setup | Contribution coverage depends on the organization, GitHub integration and retention configuration |
| Claude Console analytics for API customers | Usage, accepted lines, activity and estimated spending | The Console dashboard does not provide the same GitHub contribution metrics |
| Configured OpenTelemetry export | Usage, cost and tool-activity telemetry; optional tracing | Exporters, identities and content settings determine what arrives in your backend |

See Anthropic's [analytics guide](https://code.claude.com/docs/en/analytics) and [monitoring documentation](https://code.claude.com/docs/en/monitoring-usage) for the current setup and definitions.

Team and Enterprise contribution metrics are documented as a public beta. They cover users in the claude.ai organization, not Console API or third-party integration usage. They require GitHub setup, cover github.com repositories and are unavailable with Zero Data Retention enabled. Verify those conditions before comparing teams with different access paths.

Keep accepted suggestions, attributed merged code and delivered changes separate. A PR with no detected Claude contribution is not proof of human-only work. Missing telemetry, excluded files and later rewriting can affect what is observed.

For cost allocation and the broader renewal decision, use the separate [Claude Code ROI guide](/blog/claude-code-analytics-the-missing-piece-in-ai-development-roi). This article focuses on investigating delays and rework.

## Define the Bottleneck Before Asking for a Summary

Choose a concrete question, such as: **Why do review-ready PRs wait before someone responds?** Specify the repositories, period and team workflow. Decide how drafts, automated reviews, weekends and reopened work affect the measure.

For a review investigation, collect only the fields needed to answer it:

- PR identifier, repository and relevant ownership context.
- Opened, ready-for-review and review-request timestamps, where available.
- The first substantive human review, later review rounds and merge time.
- Required-check results and deployment records when the question extends beyond review.
- Available AI-assistance labels and their source; keep missing attribution unknown.

Do not replace missing events with zero waiting time. A PR that has not received a review is still waiting, so report its age separately from completed waits. Inspect the distribution and the oldest open items rather than relying only on an average for merged PRs.

## A Worked Review-Wait Example

Consider this hypothetical PR timeline. All events occur on the same day, in UTC:

| Event | Time |
| --- | --- |
| Draft PR opened | 09:00 |
| PR marked ready for review | 11:00 |
| First substantive human review | 15:00 |
| PR merged | 16:00 |

Under a definition that starts waiting when a PR becomes ready, the first-review wait is **4 elapsed hours**: 15:00 minus 11:00. Measuring from PR creation would produce 6 hours and include 2 hours spent in draft. The 1 hour between review and merge is another interval, not additional time waiting for the first review.

These timestamps do not establish how many hours anyone worked. A business-hours measure would need the team's calendar and time-zone rules. Neither the timeline nor a Claude-assisted label identifies why the reviewer responded at 15:00.

The next step is to inspect the review request, reviewer availability, PR scope and checks. A missing handoff, a difficult design question and a failing test need different interventions.

## Use Claude to Organize Evidence, Then Check the Result

[Claude Code](https://code.claude.com/docs/en/overview) can read code, work across files and run commands. That makes it useful for examining a prepared dataset or a specific change, provided its access and task match the investigation.

A bounded analysis request could be:

~~~text
Using only the provided PR event records, calculate elapsed time from
ready-for-review to first substantive human review. Keep unreviewed PRs
in a separate age table. List missing events and the PR IDs behind each
summary. Suggest questions to investigate long waits; do not infer a
person's effort, motivation or AI-caused improvement from the timestamps.
Do not change files or contact anyone.
~~~

Check a sample against the repository timeline before using the summary. Confirm that the model did not mix time zones, count bot comments as human reviews or discard still-open work. An explanation should point to records a teammate can inspect.

## Investigate Three Patterns Separately

### Review queues

Look for repeated waits at the same handoff, several simultaneous requests to one reviewer, or a cluster of unusually broad PRs. Ask the team whether the records match what happened. Then try a clear review owner, a smaller change or a revised request process, depending on the cause.

Compare the same waiting-time definition afterward and include open work. A faster first response can still accompany more review rounds or later defects, so inspect those outcomes too.

### Rework and technical debt

Repeated edits in a module can be a reason to investigate, but they do not establish technical debt by themselves. Examine representative diffs, tests, reversions and the people maintaining that area. A planned migration can create repeated changes without indicating a design failure.

Claude can help explain unfamiliar code and propose tests or refactoring candidates. Validate those suggestions against behavior and constraints. For detailed signals, see our [technical-debt metrics guide](/blog/code-quality-metrics-that-reveal-technical-debt).

### Concentrated knowledge

A module with one frequent author or reviewer may need broader coverage. Commit counts do not reveal all mentoring, pair programming or incident work, so ask who can operate and change it before concluding that knowledge is confined to one person.

A useful experiment is to have another engineer follow the runbook, review a change or make a small fix with support. Record the documentation and context they needed. That gives the team something concrete to improve.

## Investigate the Workflow Without Ranking People

Explain the question and the data being used to the team. Start with a shared workflow problem and let engineers challenge missing or misleading context. The [SPACE framework](https://queue.acm.org/detail.cfm?id=3454124) explains why activity alone should not determine developer rewards or penalties.

Use the minimum data needed for the question. Review timestamps may be enough to study a review queue; prompt contents are a different and more sensitive source. Anthropic's monitoring documentation describes content-logging controls, with user prompt content disabled by default. Check the actual configured capture, access and retention before using those records.

A usage leaderboard describes a vendor-defined activity or contribution count. It is not a ranking of the value people bring to the team. Pair repository evidence with developer feedback and inspect work that the records miss.

## Connect the Investigation with Weave

[Weave Engineering Intelligence](/products/engineering-intelligence) brings review activity, quality and delivery measures into the engineering view. [Code Intelligence](/products/code-intelligence) adds estimated expert effort for PRs, while [Token Intelligence](/products/token-intelligence) connects supported AI usage and spending sources.

That combination can help a team examine whether more AI activity accompanies more completed work, extra review rounds or rework. Weave's [methodology](/methodology/ai-roi) distinguishes direct, commit-based and estimated attribution. Expert effort is a model of the work, not a timesheet or proof that AI saved that time.

During an evaluation, trace a slow PR through its review history and available AI signals. Check identity mapping, repository coverage and the observation window for quality outcomes. Then choose an intervention the team can test. [Book a Weave demo](/demo) to work through that investigation with your own workflow.
