Skip to main content

Git

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

string
Working directory for git commands. Defaults to process.cwd().
number
default:"10000"
Max output characters. Long output is truncated.

Tools


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.