Skip to main content

AI Usage > Lines added

Written by Tom Williams

Dataset: AI Usage

Entity: AI Usage Measurement

Field ID: lines_added

Type: Number

Description: The number of lines of code written by the AI assistant that reached the file. Compare with lines_suggested_added, which is what was merely offered.

Source: App

Transformation logic: N/A

App Mapping

GitHub Copilot

loc_added_sum

Claude Platform

core_metrics.lines_of_code.added

Claude Code Telemetry

claude_code.lines_of_code.count with type added

Cursor (coming soon)

acceptedLinesAdded

OpenAI Platform

N/A

OpenAI Codex Enterprise

code_attribution.lines_of_code.added, on day total records only: OpenAI reports lines of code per developer and day, not per surface

Reporting Use Cases

The Lines added field is AI output that actually landed in the codebase. Of all the measures in this dataset, it is the closest to a direct statement of AI contribution.

  • AI share of code written: Compare it against total additions in the Commits from PRs dataset over the same period to estimate the share of code written with AI assistance.

  • Contribution by person or team: Group by actor_username over aggregation_level = USER records.

  • Not a productivity measure on its own: Lines of code reward verbosity. Pair it with pull request and review measures rather than reporting it alone.

  • OpenAI Platform does not report it: It publishes no line counts. OpenAI Codex Enterprise reports them on day total records only, so a breakdown by surface or client shows no Codex lines.

Did this answer your question?