smart_log
Get structured commit history with category detection (feat/fix/refactor/docs), file statistics, and author breakdown. Filter by path and ref to reduce token usage.
Instructions
Use INSTEAD OF raw git log. Structured commit history with category detection (feat/fix/refactor/docs), file stats, author breakdown. Filters by path and ref. HEADS UP: two verification runs measured this tool at ~39% token reduction (borderline — vs 95-99% for outline/smart_diff). Cumulative data being gathered — tool may be dropped or redesigned in v0.30.0 if numbers don't improve. Prefer scoping with path or count to tighten savings.
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": "smart_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Filter to specific file or directory | |
| count | No | Number of commits (default: 10, max: 50) | |
| ref | No | Git ref — branch, tag, or commit (default: HEAD) |