Glossary

AI Code Attribution

AI code attribution is the practice of recording, for each line of code, whether an AI coding assistant or a person wrote it.

AI Code Attribution

What Is AI Code Attribution?

AI code attribution is the practice of recording, for each line of code, whether an AI coding assistant or a person wrote it. With it, a team can say what share of a commit, a pull request or a repository is AI-written.

Why AI Code Attribution Matters

Without attribution, a company knows how many AI licenses it bought but not how much shipped code those licenses produced. It also cannot tell whether a rise in rework or defects comes from AI-written code or from somewhere else. Attribution turns "we think the assistant is working" into a number that can be checked against review time, rework and quality.

How AI Code Attribution Is Measured

The basic measure is the AI share of changed lines:

AI share (%) = AI-written lines / total lines added or changed × 100

For example, a pull request adds 500 lines. Attribution data marks 190 of them as written by an assistant and 310 as written by a person. The AI share is 190 / 500 = 38%.

There are two ways to get the data. Estimation infers AI origin after the fact from usage statistics or code patterns. Capture records the origin in the editor or agent at the moment each line is written, which gives line-level accuracy.

AI Code Attribution vs Git Blame

git blame shows which commit and which author last changed a line. It says nothing about whether that author typed the line or accepted it from an assistant. AI code attribution adds that missing fact.

How Oobeya Uses AI Code Attribution

Oobeya provides AI Code Attribution through Blamely AI, a tool backed by Oobeya. Blamely records AI or human origin per line when the code is written and stores it in Git notes under refs/notes/blamely. It runs locally, including in air-gapped environments. In the AI Hub, AI Impact places that adoption data next to review time, rework, quality and delivery. AI Usage shows token usage, credits and cost with attribution on the same page.

Frequently Asked Questions

Which AI coding assistants can be attributed?

Blamely AI attributes code from Claude Code, Cursor, GitHub Copilot, Codex CLI, Gemini CLI, Devin and OpenCode. It works in VS Code, Cursor, JetBrains IDEs and Antigravity.

Is AI code attribution used to evaluate individual developers?

It is meant for team and repository analysis. Oobeya is designed to improve how teams work, not to score individuals, and access to data is controlled by roles.

Related Pages

Move from definition to product context with the most relevant Oobeya pages for this term.

Turn Engineering Terms Into Actionable Visibility
Move from definitions to real delivery, quality, workflow, and AI-assisted development signals.
Talk to our experts and see how Oobeya connects the metrics behind your engineering organization.