ai_trend
Track how much code each AI agent versus humans added per week or month. Reveals when AI use changed, which agents contribute, and historical trends from git history.
Instructions
Show how much of the code added over time was written by each AI agent versus people, per week or month.
When to use: the user asks how AI use has changed, which agents write the most code, or since when. For
today's totals use repo_status. Counts lines added in commits (from git log), attributed to an AI agent when
the commit carries its marker, e.g. a Co-Authored-By: Claude trailer or a Copilot bot author.
Returns {"by", "summary": {"human", "ai", "ai_pct", "tools" (lines per agent)},
"periods": [{"start", "human", "tools"}]}, oldest period first.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ai_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Bucket size. | auto |
| repo | No | Path inside the git repository. Defaults to the server's working directory. | |
| since | No | Only commits after this date, e.g. '2026-01-01' or '6 months ago'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | week or month. | |
| periods | Yes | Oldest first. | |
| summary | Yes |