Report Ai Usage Tool
report-ai-usage-toolReport that you — the coding agent — wrote or helped write this change, and how much of it. Coderbuds otherwise has to infer AI authorship from the shape of the diff, and a heuristic that decides who counts as an AI adopter is a heuristic that decides where a CTO spends budget. You already know the answer. Say it, and the team's AI numbers stop being a guess.
Call this once per change, after the work is done — ideally with pull_request_number once
the PR exists, or branch before it does. Re-reporting the same change refreshes the record
rather than double-counting it, so it is safe to call again as the work evolves.
Set authorship honestly: agent_authored (you wrote essentially all of it),
agent_assisted (you wrote a meaningful part, a person wrote the rest), or human_authored
(a person wrote it and you only looked things up or reviewed). Set human_reviewed to
whether a person actually read the diff before it went up — that is the governance number a
board asks for, and guessing it helps nobody.
Reports are team-visible and attributed to you. The response tells you whether Coderbuds' own detector agreed with your report; where it did not, yours is the one that counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | The coding agent that did the work, as a stable slug — e.g. claude-code, cursor, copilot, codex. Free text is normalised, so "Claude Code" and "claude-code" are the same tool. | |
| model | No | Optional model that did the work, e.g. claude-opus-5. | |
| notes | No | Optional short context, e.g. "agent wrote the migration, human rewrote the query". Max 500 characters. | |
| branch | No | The source branch, for when you report before the pull request exists. Matched to the pull request when it appears. | |
| authorship | Yes | How much of the change you wrote: agent_authored (essentially all), agent_assisted (a meaningful part), or human_authored (a person wrote it, you only assisted). | |
| repository | Yes | The repository the change is in, as owner/name or a bare repo name. Also binds the session to the owning team. | |
| human_reviewed | No | Whether a person actually read the diff before it went up. Defaults to false — report it honestly rather than flatteringly. | |
| pull_request_number | No | The pull request this change became, if it exists yet. The strongest anchor — it lets Coderbuds compare your report against what its detector inferred from the same diff. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | Yes | Team name. | |
| tool | Yes | Normalised tool slug recorded. | |
| model | No | Model recorded, if given. | |
| branch | No | Branch the report is anchored to, if given. | |
| created | Yes | False when this refreshed an existing report for the same change. | |
| message | Yes | Human-readable confirmation. | |
| authorship | Yes | Authorship level recorded. | |
| repository | Yes | Repository the report was recorded against. | |
| human_reviewed | Yes | Whether a person read the diff. | |
| inferred_score | No | What Coderbuds' own detector scored this pull request, or null when there is nothing to compare yet. | |
| detector_agreed | No | Whether the inferred score agreed with your report. Null when there is nothing to compare. | |
| pull_request_number | No | Pull request number the report is anchored to, if given. |