vts_git
Compacts output of read-only git commands (status/log/diff) into token-capped summaries: groups status by type and directory, logs one line per commit, diffs by file diffstat. Refuses mutating commands.
Instructions
Run a READ-ONLY git command and return its output COMPACTED (token-capped) — for status/log/diff, which the language-server index can't help with but whose raw dump is verbose and repetitive. status groups by change-type + directory; log keeps one line per commit; diff collapses to a per-file +/- diffstat (no hunk bodies). Mutating subcommands (commit/reset/checkout/clean/push/merge/rebase) are REFUSED — this only compacts output; run those directly. Use instead of a raw git status/log/diff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| argv | No | Git subcommand + flags, e.g. ["status","-s"] or ["log","--oneline"]. | |
| args | No | Alternative to argv: the subcommand as one string, e.g. "status -s". | |
| projectPath | No | Repo root to run in (default: configured projectPath or cwd). | |
| maxResults | No |