AI Copilot Metrics
AI Copilot metrics measure how developers interact with AI coding assistants, adoption rates, and the impact on productivity across your organization. They read from theai_copilot table: one row per user, per day, per connected copilot source (Cursor, GitHub Copilot, and so on).
These are the seat-level usage metrics reported by the copilot vendors. For line-level attribution captured on engineers’ machines by posthook (sessions, prompts, committed AI lines), see Posthook Metrics.
Available Metrics
Metrics marked multi only can be requested throughget-multiple-metrics but not as a single metric_type.
Adoption & Usage
ratio → ai_adoption_rate
Share of users with at least one accepted line (0–1)
count → adopted_users_count
Number of distinct active users
ratio → adoption_rate
Same as
ai-adoption-rate. Multi onlyaggregation → {agg}_suggested_lines_added, {agg}_suggested_lines_deleted, {agg}_net_suggested_lines_added
Lines of code suggested by AI. Multi only
aggregation → {agg}_accepted_lines_added, {agg}_accepted_lines_deleted, {agg}_net_accepted_lines_added
Lines of code accepted from AI suggestions. Multi only
ratio → ai_acceptance_rate
Accepts ÷ (accepts + rejects), 0–1
ratio → acceptance_rate
Same as
ai-acceptance-rate. Multi onlyaggregation → {agg}_total_accepts
Total number of accepted AI suggestions. Multi only
aggregation → {agg}_total_rejects
Total number of rejected AI suggestions. Multi only
aggregation → ai_total_loc
Total lines of code written with AI assistance
ratio → ai_percent_ai_generated_code
Accepted lines ÷ all suggested lines, 0–1
ratio → ai_code_ratio
AI lines of code ÷ total lines changed, 0–1
aggregation → {agg}_ai_output_estimate
Daily output estimate attributed to AI-assisted work
aggregation → {agg}_total_lines_added
Total lines added with AI assistance. Multi only
aggregation → {agg}_total_lines_deleted
Total lines deleted with AI assistance. Multi only
aggregation → {agg}_chat_requests
Number of AI chat requests. Multi only
aggregation → {agg}_composer_requests
Number of AI composer requests. Multi only
aggregation → {agg}_agent_requests
Number of AI agent requests. Multi only
aggregation → {agg}_cmd_k_usages
Number of inline (Cmd+K) AI usages. Multi only
aggregation → {agg}_pr_count
Number of pull requests created with AI assistance
aggregation → {agg}_total_token_usage
Total AI token usage
aggregation → {agg}_total_cost
Total estimated cost of AI usage
string → favourite_model
Most used AI model
string → most_used_programming_language
Most used file extension in AI applies. Multi only
Accepted vs Suggested Lines
Retrieve both accepted and suggested lines in a single request to calculate acceptance rate over time.AI Adoption Rate
Track the percentage of active developers using AI tools over time.Most Used AI Model
Retrieve the most commonly used AI model across the organization.Parameter Notes
string
For AI copilot metrics the only date field is
date, the day of the usage record.string
- For line counts, request counts, tokens, cost and output estimate:
SUM(orAVGfor per-user-day averages) - For rate metrics (
ai-adoption-rate,ai-acceptance-rate,acceptance-rate,adoption-rate,ai-code-ratio,ai-percent-ai-generated-code) and foradopted-users,ai-favourite-model,most-used-programming-language: none
string[]
Useful columns:
source (copilot vendor), most_used_model, model_provider, name, user_email, is_active, client_version, plus the derived fields team_name, squad_name, manager_name. Full list on the overview.object
Applicable filters for AI copilot metrics:
ai_copilot_sources: Filter by AI copilot source name (e.g.cursor,github-copilot)team: Filter by team IDssquad_ids: Filter by squad IDssquad_levels: Filter by squad hierarchy levelmanager_ids: Filter by manager user IDsdepartments: Filter by department namesmember: Filter by user merged user IDslocations: Filter by employee locationlevels: Filter by employee level
Common Use Cases
- Adoption Monitoring: Track AI tool adoption across teams over time
- ROI Analysis: Compare
ai-total-costagainst productivity gains - Acceptance Quality: Monitor
acceptance-rateto gauge suggestion relevance - Language Insights: Use
most-used-programming-languageto focus AI training - Usage Breakdown: Compare
chat-requests,composer-requests, andagent-requeststo understand how developers use AI - Attribution: Pair with Posthook Metrics to see how much of that usage reaches committed code

