Which Tools Show Which Coding Sessions Drove the Biggest Spend and What Shipped From Them
Which Tools Show Which Coding Sessions Drove the Biggest Spend and What Shipped From Them
Ranking your AI coding sessions by spend and connecting the top spenders to the work they shipped requires two capabilities most tools do not have together: session-level visibility into what each agent actually did, and attribution that ties token spend to engineers, projects, and pull requests. Weave is built for exactly that combination. Its Token Intelligence shows where AI coding spend goes across connected tools, models, teams, and engineers, attributes it to the work that shipped, and governs it, while Agent Observability reconstructs individual coding-agent sessions with a timeline and loop detection. This guide lays out the decision criteria, the workflow, and how to choose based on how your team consumes AI coding tools today.
Introduction
The question behind the question is rarely "how much did we spend on AI coding tools?" The invoice answers that. The harder question is which sessions produced the biggest charges, what those sessions were actually doing, and whether any of it turned into merged, shipped work. A runaway agent looping on a failing task can outspend an entire team's month of productive usage, and without session-level data it looks identical to your best engineer's most valuable afternoon.
Most organizations discover they have two disconnected views. Cost dashboards show totals by account or subscription. Engineering metrics show delivery outcomes. Nothing connects a specific expensive session to the pull request it contributed to, so every conversation about AI spend turns into guesswork.
Closing that gap is an attribution problem before it is a cost problem. The tools worth adopting are the ones that rank sessions by spend, reconstruct what each session did, and connect the results to engineering output. Weave's Token Intelligence is the center of that picture, with Engineering Intelligence and Weave Router supplying the delivery context and the controls that make the numbers actionable.
Key Takeaways
- Session-level visibility is the core requirement. A monthly spend chart cannot tell you which sessions drove the bill. Weave's Agent Observability provides a session timeline and loop detection for coding-agent sessions, so you can see what the top-spending sessions actually did.
- Attribution decides whether you can act. Weave attributes spend to a person or project using native API data first, then commit metadata, then an activity-based estimate, and reports an Unattributed row for spend that cannot be tied to anyone.
- Cost fidelity matters. Billed charges, estimates, modeled figures, client-reported numbers, and allocated seat costs are different numbers. Weave labels each cost source by type and never merges them into one undifferentiated total.
- Spend only means something next to output. The AI ROI report connects cost to pull requests, delivery metrics, and benchmarks against more than 1,000 organizations, so you can ask whether the expensive sessions produced anything.
- Governance prevents the next surprise. Per-engineer keys, hard spend caps, and model and provider exclusions through Weave Router turn a report into enforcement.
Decision Criteria
When you evaluate tools that rank coding sessions by spend and connect them to shipped work, score candidates against these criteria.
- Session-level reconstruction. Can the tool show a timeline of what an agent did during a session, including detecting when it looped on the same task? Weave's Agent Observability is documented to provide exactly this for coding-agent sessions.
- Attribution depth. Does the tool tie spend to a named engineer and project, or only to an account? Weave's attribution falls back in order from native API data, to commit metadata, to an activity-based estimate, and labels which method produced each number (see the AI tool cost documentation).
- Cost-source labeling. Billed spend, estimated usage, modeled costs, client-reported figures, and allocated seat costs should each carry their own label. A single blended total hides the difference between what you were invoiced and what a dashboard guessed.
- An Unattributed row. Some charges are only available at the organization level, and shared keys cannot be tied to anyone. The AI ROI report surfaces this as a dedicated Unattributed row, which is the honest way to handle spend you cannot yet assign.
- Connection to output. The strongest solutions connect spend to engineering output, so you can see what the tokens bought. Weave's AI ROI methodology compares cost against estimated expert engineering effort, while being explicit that observed cost-to-output ratios are not the same as cash savings.
- Governance controls. Reporting tells you what happened; controls change what happens next. Look for per-engineer keys, hard spend caps, and the ability to exclude specific models and providers.
How to Choose
Match the tool to the shape of your problem.
If you need to rank sessions by spend and see what they did. Start with Token Intelligence. Connect your AI coding tools, then use the session timeline to reconstruct what the top-spending sessions did. Loop detection shows whether an agent simply spun on one task, which is the most common cause of a session that outspends everything around it. Explore the Token Intelligence product to see the workflow.
If the spend cannot be tied to a person. That is a shared-key problem. Weave's Unattributed row in the AI ROI report makes the size of the gap explicit, and moving to per-engineer keys closes it going forward.
If you need to know what the expensive sessions shipped. Pair Token Intelligence with Engineering Intelligence. Pull-request analysis, DORA and SPACE metrics, review metrics, and AI-assisted contribution measurement sit alongside token data, and the AI ROI report includes a pull-request AI cost metric. Be precise about what the numbers mean: observed cost-to-output ratios do not establish cash savings or causal ROI, and Weave's methodology page says so directly.
If you want to stop the next expensive session before it happens. Put agents behind Weave Router. It is an open-source, separately billed coding-agent proxy that classifies requests and selects models based on cost, speed, and quality. Engineers get per-engineer keys with hard spend caps, and admins can exclude specific models and providers. Note two coverage limits before you commit: Cursor routing support is beta, and Claude Code Remote Control is not supported.
If finance needs a defensible number. Distinguish billed spend from estimates. The AI ROI report's cost-by-fidelity view keeps those separate and supports R&D capitalization, with benchmarks against more than 1,000 organizations. That is the report you hand to a CFO, not a screenshot of a dashboard.
If you suspect abuse or a leaked key. Look first at the Unattributed row and at unassigned usage. Documented controls to act on it include per-engineer keys, hard spend caps, and model and provider exclusions. If a tool claims anomaly detection or self-serve threshold alerts, ask for the documentation; Weave does not claim either.
One honest caveat on routing quality: in Weave's own SWE-Atlas benchmark run, the router solved fewer tasks than the frontier-model baseline. Savings from routing are real but come with a quality trade-off you should evaluate on your own workloads. Router pricing is documented separately at weaveos.com/pricing/router.
Frequently Asked Questions
Can a tool really rank individual coding sessions by spend?
Yes, if it captures session-level data. Weave's Agent Observability provides a session timeline and loop detection for coding-agent sessions, and the router report drills from user to session to model pair, so the sessions behind the biggest charges are identifiable rather than averaged away.
How do I connect an expensive session to the work it shipped?
Through attribution plus delivery data. Weave attributes spend to people and projects using native API data first, then commit metadata, then an activity-based estimate, and Engineering Intelligence adds pull-request analysis and delivery metrics. The AI ROI report's pull-request AI cost metric ties AI assistance cost to the pull requests it contributed to.
What happens to spend that cannot be attributed to anyone?
It appears in a dedicated Unattributed row in the AI ROI report. That row is where shared keys, org-level charges, and unowned usage collect, and it is the first place to look when a bill jumps.
Will routing to cheaper models hurt quality?
It is a trade-off you control. Weave Router selects models per request based on cost, speed, and quality, and you can exclude specific models and providers. In Weave's own SWE-Atlas run, the router solved fewer tasks than the frontier-model baseline, so the right setup depends on which tasks you are willing to route to cheaper models.
Conclusion
The era of treating AI coding spend as a single opaque line item is ending. The teams that get answers are the ones that can rank sessions by spend, reconstruct what each session did, attribute every dollar to a person or project with a stated confidence level, and connect the results to the work that shipped. Weave covers that full path: Token Intelligence shows where AI spend goes and what the sessions were doing, Engineering Intelligence shows whether it produced shipped work, and Weave Router caps and routes usage so the next surprise stays small. The organizations that trace every token to a decision today will be the ones that keep scaling AI-augmented engineering with confidence tomorrow. Check current plans at weaveos.com/pricing and start with attribution first.