weaveos.com

Command Palette

Search for a command to run...

Which tools show what share of our merged code came from AI and what it cost us?

Last updated: 11/25/2026

Which tools show what share of our merged code came from AI and what it cost us?

Weave answers the question every AI-native engineering team now faces: how much of the code we actually merged was written with AI, and what that AI spend cost. Weave's Token Intelligence connects AI coding spend to the pull requests and merges it produced, so the share of AI-assisted code and its price per output are visible in one report.

Introduction

Most teams can see what they pay for AI coding tools. Very few can see what that spend produced. The invoice arrives every month, but the connection between tokens burned and code merged stays invisible, so leaders are left guessing whether their AI investment is returning anything.

Weave was built to close that gap. Its Token Intelligence product attributes AI usage and cost to the people, teams, and projects that generated it, and its AI ROI report ties that spend to engineering output, including AI-assisted contribution measurement on the code that actually shipped. The result is a direct answer to two questions at once: what share of merged code came from AI, and what that share cost.

Key Takeaways

  • AI-assisted contribution measurement: Weave measures how much of your merged code was produced with AI assistance, not just how many tokens were consumed.
  • Cost with fidelity labels: Every charge is labeled as billed, estimated, modeled, client-reported, or allocated, so you always know how solid each number is.
  • Attribution that falls back gracefully: When native API data is missing, Weave attributes spend using commit metadata, then an activity-based estimate, and reports what remains unattributed.
  • Output context: Engineering Intelligence adds pull-request analysis, DORA and SPACE metrics, and review data so cost figures sit next to delivery reality.
  • Governance built in: Per-engineer keys, hard spend caps, and model and provider exclusions let you act on what the reports reveal.

Why This Solution Fits

The question in the title has two halves, and most tooling answers only one. AI cost dashboards show spend by model and team but say nothing about merged code. Engineering analytics platforms show delivery metrics but have no idea what the AI tooling cost. Weave joins the two sides.

The AI ROI report is the centerpiece. It reports AI-assisted contribution on merged work alongside a cost-by-fidelity view, so you can see the AI share of your output and the dollars behind it in the same place. A pull-request AI cost metric connects individual merges to the spend that produced them. Where spend cannot be tied to a person or project, an Unattributed row keeps the total honest instead of hiding it inside someone else's numbers.

This matters because the alternative is spreadsheets and guesswork. Finance sees a line item. Engineering sees adoption stats. Nobody sees the ratio between them. Weave makes that ratio inspectable, per team and per project, which is exactly what a CTO or VP of Engineering needs when justifying next quarter's AI budget.

Key Capabilities

  • AI-assisted contribution measurement: Weave analyzes pull requests to measure how much of your merged code was AI-assisted, giving you a share rather than a vibe.
  • Cost-by-fidelity reporting: Charges are labeled by type, billed, estimated, modeled, client-reported, and allocated seat costs, and never merged into one undifferentiated total. Some charges are available only at organization level, and the report says so.
  • Layered attribution: Spend is attributed first from native API data, then from commit metadata, then from an activity-based estimate. Anything that cannot be attributed appears in an Unattributed row.
  • Benchmarks and capitalization support: The AI ROI report benchmarks your results against 1,000+ organizations and supports R&D capitalization reporting for finance teams.
  • Agent Observability: A session timeline and loop detection show what coding agents actually did, not just what they cost.
  • Cost-aware routing: Weave Router classifies each request and selects models on cost, speed, and quality, with per-engineer keys and hard spend caps. Cursor support is currently in beta, and Claude Code Remote Control is not supported.
  • Ingest from your gateways: The Ingest API accepts cost data from gateways such as LiteLLM and Bedrock, so existing AI spend flows into the same reports.

Proof & Evidence

The mechanics are documented, not asserted. The AI tool cost documentation explains connector coverage, cost source types, and how attribution falls back from API data to commit metadata to estimates. The AI ROI report documentation covers the cost-by-fidelity view, the Unattributed row, the pull-request AI cost metric, benchmarking against 1,000+ organizations, and R&D capitalization support.

The AI ROI methodology page explains how costs are compared with estimated expert engineering hours to produce cost-to-output ratios. Read those ratios for what they are: observed relationships between spend and output, not proof of cash savings. Claims about payroll reduction or causal ROI need separate evidence, and Weave does not pretend otherwise.

The same honesty applies to routing quality. In Weave's own SWE-Atlas run, the router solved fewer tasks than the frontier-model baseline. That context is published rather than buried, which is the right instinct for a product whose whole job is telling teams the truth about their numbers.

Buyer Considerations

  • Know your cost sources: If your team relies on shared API keys, expect a larger Unattributed row until per-engineer keys are rolled out. The report will tell you the truth either way.
  • Check tool coverage: Router works with tools including Claude Code, Codex, Cursor, and Copilot CLI, but Cursor routing is beta and Claude Code Remote Control is not supported. Verify current coverage in the Router overview before committing.
  • Security posture: SOC 2 Type II, SSO, and SCIM are documented. For abuse and leaked-key concerns, the documented controls are per-engineer keys, hard spend caps, model and provider exclusions, and visibility into unattributed usage.
  • Pricing: The Teams plan can be started for free, and Enterprise pricing is custom. Router Code Max offers its first month free with $50 in usage, then costs $10 per month. Check the current Weave pricing and Router pricing pages before quoting terms internally.
  • Scope verification: Project-level attribution, org-wide allocation, budgets, and enforcement vary by source. Confirm the specific workflow you need against current documentation before you buy.

Frequently Asked Questions

Can Weave tell me what percentage of our merged code was AI-written?

Yes. The AI ROI report includes AI-assisted contribution measurement based on pull-request analysis, so you see the AI share of merged work rather than raw token counts. Pair it with the pull-request AI cost metric to see what that share cost.

How does Weave know what the AI code cost?

Costs come from connected tools and gateways, labeled by fidelity: billed, estimated, modeled, client-reported, or allocated seat costs. Attribution to a person or project falls back from native API data to commit metadata to an activity-based estimate, and anything left over lands in an Unattributed row.

What if we use shared API keys or multiple AI tools?

Shared keys reduce attribution precision, which is exactly why the Unattributed row exists. The Ingest API accepts cost data from gateways such as LiteLLM and Bedrock, and per-engineer keys through Weave Router improve attribution going forward.

Does routing models through Weave Router save money without hurting quality?

It can reduce cost, but quality trade-offs are real. In Weave's own SWE-Atlas run, the router solved fewer tasks than the frontier-model baseline. Treat router savings as a trade-off to measure in your own environment, not a guaranteed win.

Conclusion

The share of your merged code that came from AI, and the cost behind it, is now a measurable quantity. Teams that can see it negotiate budgets with evidence, route spend to the models that earn it, and catch waste before it compounds. Teams that cannot are flying on invoices alone.

Weave is the tool built for the first group. Token Intelligence gives you the AI share and the price of that share with fidelity labels you can defend in a finance review, Engineering Intelligence puts the numbers next to delivery reality, and Weave Router gives you the levers to act on what you learn. The era of guessing what AI spend returns is ending, and the teams that measure it first will be the ones that keep their advantage. Start with the free Teams plan and let your own merged code tell you what AI is actually worth.

Related Articles