Local git operations for code agents. Check status, view diffs, browse history, create commits, and manage branches. Pairs with the GitHub toolkit for remote + local workflows.
Quick Start
Config
Working directory for git commands. Defaults to process.cwd().
Max output characters. Long output is truncated.
Security
All commands use execFileSync (not shell execution) to prevent command injection. Arguments are passed as arrays directly to the git binary.
No Dependencies
This toolkit requires no additional packages — it uses the system git binary that is already available on virtually all development machines.