tokmeter_git_cost
Attribute AI coding token usage, cost, cache hits, subagent spend, and compaction tax to Git branches or PR windows by commit timestamps and repository directory matching.
Instructions
Attribute AI coding token usage, cost, cache hit share, subagent spend, and compaction tax to a git branch or PR window based on commit timestamps and repository directory matching.
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": "tokmeter_git_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Repository directory (defaults to process cwd) | |
| base | No | Base branch or git ref to compare HEAD against (auto-detected if omitted) | |
| format | No | text | |
| lead_minutes | No | Minutes before the earliest branch commit to include pre-commit turns | |
| since_commit | No | Explicit base commit/ref instead of merge-base auto-detection |