---
title: "Get Agent Trend"
method: GET
path: "/snapshots/{snapshot_id}/commits/agent-trend"
tags: ["git"]
---

# Get Agent Trend

`GET /snapshots/{snapshot_id}/commits/agent-trend`

Monthly agent-vs-human commit volume across the indexed window.

Built from the agent provenance fields the indexer serializes onto each
`git_commits.json` row (repowise >= 0.18.0). Months with no commits are
omitted; empty buckets for snapshots without agent provenance.

Declared before ``/commits/{sha}`` so the literal path wins over the
SHA wildcard.

## Path parameters

- `snapshot_id` string, required

## Response `200`

Successful Response

- AgentTrendResponse
  - `buckets` AgentTrendBucket[]
    - `month` string, required
    - `total_commits` integer
    - `agent_commits` integer
    - `agent_pct` number
    - `tier_counts` object
  - `total_commits` integer
  - `agent_commits` integer
  - `agent_pct` number
  - `agent_names` AgentNameCount[]
    - `name` string, required
    - `count` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/b717017b882f?raw)
