branches
Inventories repo worktrees and standalone git refs, reporting HEAD, ahead/behind trunk, dirty counts, and the coding agent assigned to each. Read-only: no fetches.
Instructions
Inventory this repo's worktrees and branches — the zoo coding agents leave behind — and who each one belongs to. Read-only: it runs only read-only git and never fetches, so ahead/behind is against the LOCAL origin/.
Each worktree and each bare branch (one with no worktree) comes back with its
branch, HEAD, ahead/behind the trunk, whether it is already in the trunk,
dirty count (tracked changes only), and the cabildo agent living there when
one is known (live session, else the spawn ledger). repo defaults to your
own working directory.
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": "branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| target | No | main |