pr_comprehension
Summarize a branch or pull request by comparing AI-written lines with the base and showing how many lines anyone understands before opening or merging it.
Instructions
Summarize a branch or pull request: the AI-written lines it adds compared with base and how many of them anyone understands.
When to use: before opening or merging a pull request, or when asked how much of a branch is AI-written. For
the whole repository use repo_status. The base ref must exist locally (run git fetch if it is missing).
Returns {"base", "merge_base", "commits", "ai", "human", "understood", "unread", "tools" (AI lines per agent),
"files": [{"path", "ai", "human", "understood", "unread", "partial"}], "markdown" (a ready-to-post PR comment)}.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": "pr_comprehension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch to compare with, e.g. 'origin/main' or 'main'. | origin/main |
| repo | No | Path inside the git repository. Defaults to the server's working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ai | Yes | AI-written lines the branch adds. | |
| base | Yes | ||
| files | Yes | ||
| human | Yes | ||
| tools | Yes | AI agent -> lines it added on this branch. | |
| unread | Yes | ||
| commits | Yes | ||
| markdown | Yes | Ready-to-post pull request comment. | |
| merge_base | Yes | ||
| understood | Yes |