Documentation Index
Fetch the complete documentation index at: https://docs.xhipai.com/llms.txt
Use this file to discover all available pages before exploring further.
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
Working directory for git commands. Defaults to
process.cwd().Max output characters. Long output is truncated.
Tools
| Tool | Description |
|---|---|
git_status | Show working tree status (modified, staged, untracked files). |
git_diff | Show changes — unstaged by default, or --staged. Optionally filter by file. |
git_log | Show commit log history (default 10 commits, one-line format). |
git_commit | Stage files and create a commit. Stages all modified files by default. |
git_branch | List, create, or switch branches. |
Security
All commands useexecFileSync (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 systemgit binary that is already available on virtually all development machines.