AI Agent Insights¶
Overview¶
AI coding agents bill by tokens and usage, and their vendor dashboards don't say what the spend produced. AI Agent Insights shows what your AI coding agent costs your team, what it produces, and whether it pays for itself, on one page:
- Cost: Spend over time, and tokens processed.
- Adoption: How many developers use the agent, how often, and how often they accept its proposals.
- Output: Lines of code the agent wrote, the files and commands it worked with, and time spent in active sessions.
- Return on AI spend: The estimated value of the agent's output compared with its cost.
In the console, this dashboard is titled AI Tools Tracking.
AI Agent Insights works with Claude Code.
Prerequisites¶
Step 1: Set Up CodeCortex¶
Set up CodeCortex by following the Overview guide.
Step 2: Turn On AI Agent Insights¶
To turn on AI Agent Insights for your workspace, contact CloudAEye support. CloudAEye provides the settings your developers add to Claude Code, so it sends usage data to your workspace.
You can also ask CloudAEye to set the values used for the return estimate: your loaded hourly rate, baseline output per developer hour, adoption target, and monthly budget. See How the Return Is Estimated.
Open the Dashboard¶
Open console.cloudaeye.com/dev-onboarding/ai-tools-tracking.
Choose the period with From and To, then select Apply. The default period is the current month to date. Dates are in UTC. To reload the data, select the refresh button.
The screenshots on this page use sample data for a team of 14 developers over the first 19 days of a month.
How to Read These Metrics¶
- Read cost next to output. Spend going up is fine when output and adoption go up with it. Spend going up while output stays flat is the signal to look into.
- Use the return to compare. It turns the agent's output into engineering hours and value, using your organization's hourly rate and baseline. Compare it across periods and teams. See How the Return Is Estimated.
- Pair it with delivery metrics. AI-written code creates value when it ships. Read this page alongside Individual & Team Insights, to check that throughput rises and review quality holds as AI use grows.
Summary Cards¶

The top of the page shows the period you're looking at and five summary cards. Each card shows its value for the period and the change from the previous period: the period of the same length just before the selected one. Green arrows are improvements. Cost stays grey, because higher spend is neither good nor bad on its own.
In this example, 14 developers used Claude Code, accepted 88% of its tool proposals, and added about 490 lines of code each per week, for $6,120 of spend.
Added LOC / Active Developer¶
Measures: How much code the agent writes for each developer who uses it.
Calculated as: Lines of code the agent added, divided by the number of active developers, divided by the number of weeks in the period.
Better when: Higher, as long as review quality holds.
How to read it: It shows how much of the coding developers hand to the agent. More lines are not always better: large AI-written changes still need review. If it rises while PR size and review response time rise too, reviewers may be struggling to keep up.
When it's useful: Three months after rolling out Claude Code, an engineering manager reports that each active developer adds about 490 AI-written lines a week, up from 430 the month before, while review time stayed flat.
Tool Proposal Acceptance Rate¶
Measures: How often developers accept what the agent proposes to do.
Calculated as: Tool calls the developer accepted and ran, divided by all proposed tool calls, including those denied by permission settings.
Better when: Higher, around your adoption target. The default target is 85%.
How to read it: A high rate means developers trust the agent's proposals. A falling rate can mean the agent is proposing actions developers don't want, or that permission settings block common actions. Use Tool Execution Outcomes to see which tools are rejected.
When it's useful: A team tightens its permission settings, and the acceptance rate drops from 88% to 70%. Tool Execution Outcomes shows most rejections are routine git status commands, so they allow those again.
Active AI Developers¶
Measures: How many developers use the agent.
Calculated as: The number of distinct developers with Claude Code activity in the period.
Better when: Higher, up to the number of developers with a license.
How to read it: Compare it with the number of licenses you pay for. A gap means seats aren't being used. Use Active days per developer to tell regular users from people who only tried it.
When it's useful: Before a license renewal, a manager sees 14 active developers out of 18 licenses, and follows up with the four who don't use it.
Cost¶
Measures: What the agent cost in the period.
Calculated as: The total Claude Code cost reported for the period.
Better when: It grows in line with output and adoption, and stays within budget.
How to read it: Compare cost with Added LOC and Active AI Developers. When you select a whole calendar month and a monthly budget is set, the card shows spend as a percentage of the budget. Use Cost Usage to see which models drive spend.
When it's useful: Halfway through the month, a manager sees spend at 61% of the monthly budget and checks whether a few long sessions on the most expensive model explain it.
Modeled Output Value / Cost¶
Measures: How much the agent's output is worth for each dollar spent.
Calculated as: The estimated value of the agent's output divided by the spend.
Better when: Higher. Above 1x, the agent's output is worth more than it costs.
How to read it: Compare it between periods, or after changes such as a new model or new guidelines, rather than reading the number on its own.
When it's useful: After switching routine tasks to a cheaper model, a team sees the multiple rise from 11x to 12.2x with no drop in output.
Return on AI Spend¶

The Return on AI spend panel, on the left, shows how much value the agent's output represents for each dollar spent, and how the estimate is calculated, one step per line:
| Step | Value |
|---|---|
| AI-written lines of code | Lines of code the agent added in the period. |
| ÷ Baseline output per developer hour | Lines a developer writes in an hour. |
| = Engineering hours saved | The hours the agent's output is equivalent to. |
| × Loaded hourly rate | The cost of an engineering hour. |
| = Estimated value | |
| − Claude Code spend | |
| = Net savings |
In this example, 18,600 AI-written lines at 25 lines an hour equal 744 engineering hours. At $100 an hour, that is $74,400 of estimated value. After $6,120 of spend, that leaves $68,280 of net savings, or a 12.2x return per dollar.
The Evidence list shows the data behind the estimate:
| Item | Meaning |
|---|---|
| Tokens processed | All tokens Claude Code used in the period. |
| Tokens per dollar | Tokens processed for each dollar of spend. |
| Lines per dollar | AI-written lines for each dollar of spend. Higher means cheaper output. |
| Tool proposals accepted | Accepted tool calls out of all proposals. |
| Permission denials | Tool calls blocked by permission settings. |
| Monthly budget | Your monthly budget, if one is set. |
How the Return Is Estimated¶
The return turns the agent's output into the engineering time and value it represents:
- Value is based on the lines of code the agent added.
- The defaults are a loaded hourly rate of $100, and a baseline of 1,000 lines of code per developer per 40-hour week (25 lines an hour). CloudAEye can change these for your workspace.
- Spend is the cost Claude Code reports.
Set the assumptions to match your organization before you share the numbers. A lower baseline (fewer lines per hour) makes the same output worth more hours.
Adoption¶
The Adoption panel, on the right in the screenshot above, shows how widely and how often the agent is used:
| Item | What it shows | Better when |
|---|---|---|
| Developers using Claude Code | Developers with Claude Code activity in the period. | Higher |
| Acceptance rate | The tool proposal acceptance rate, with a marker at your adoption target. The default target is 85%. | At or above the target |
| Active days per developer | How many developers used Claude Code on 1 day, 2–3 days, 4–5 days, or 6 or more days. | More developers in the higher buckets |
In this example, all 14 active developers use Claude Code, and the 88% acceptance rate is just above the 85% target. Five developers used it on 6 or more days, while two tried it on only one day. Those two are good candidates for onboarding help, such as pairing with a regular user.
Usage and Activity¶
Cost and Tokens¶

- Cost Usage: Daily spend, split by model. Use it to see which models drive cost, and to spot unusual days.
- Token Usage: Daily tokens, split into input, output, and cache reads. Cache reads cost less than new input and output tokens, so token volume and spend don't always rise and fall together.
How to read them: Spend should follow the working week, with low bars on weekends. A spike on one day is worth checking: it is often one long session or an automated job.
Output and Engagement¶

- Lines Changed Trend: Lines Claude Code added and removed each day. The return estimate is based on added lines.
- Active Time by Developer: Hours each developer spent in active Claude Code sessions.
How to read them: Use active time alongside the active-days histogram to see who relies on the agent and who has only tried it. A developer with many hours but few added lines may be using the agent mostly to read and explain code, which also saves the team time.
Tool Execution Outcomes¶

Measures: For each tool, how many proposed calls the developer accepted and how many were rejected.
Better when: Fewer rejections.
How to read it: A high rejection rate on one tool, such as Bash in this example, can point to commands developers don't trust the agent to run, or to permission settings worth reviewing.
Command Class Mix and File Extension Activity¶
- Command Class Mix: What the accepted shell commands do: git, test, build, package manager, lint, format, file system, and network. Here, most are git and test commands, which means the agent is used to verify work, not only to write it.
- File Extension Activity: Which file types the agent edits most. Here, most edits are to TypeScript files. Use it to see which parts of your stack get the most AI help.
What Data Is Collected¶
Claude Code sends CloudAEye:
- Usage metrics: tokens, cost, sessions, lines of code added and removed, code edit decisions, and active time.
- Session events: when sessions start and end, and when tools are proposed, run, fail, or are denied.
File paths and shell commands are hashed before they are stored. Commands are classified by type, such as git or test, so the dashboard can group them.
Troubleshooting¶
| Problem | What to do |
|---|---|
| AI tools tracking isn't available yet | There is no Claude Code usage data for your workspace yet. Check that your developers' Claude Code is set up to send usage data, or contact support. |
| No Claude Code activity in this period | Choose a wider date range. |
| You don't have access to this page | Ask a workspace admin to give you access. |