GitPeak
v4.1.12Git context for AI agents: status, staged diff, commit log, repo health, merge risk, line history
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gitpeak_repo_status
Get the current working-tree status of the active git repository: staged files, unstaged changes, untracked files, branch name, ahead/behind count, and whether a merge or rebase is in progress.
gitpeak_health
Get the repo health report: 0–100 health score, stale branches, secret-leak warnings, merge-risk branches, never-pushed branches, and unpushed commit count.
gitpeak_staged_diff
Get the full diff of all staged changes. Use before generating a commit message or reviewing what an AI agent has staged.
gitpeak_commit_log
Get recent commit history with author, date, message, and AI-agent detection results (is this commit from an AI agent? what is its risk score?).
| Parameter | Type | Description |
|---|---|---|
branch | string | Branch to query (default: current branch). |
limit | number | Max commits to return (default 20, max 100). |
gitpeak_merge_risk
Predict the merge risk (0–100%) for merging sourceBranch into targetBranch based on file overlap, churn history, and past conflict rates.
| Parameter | Type | Description |
|---|---|---|
sourceBranch * | string | Branch to merge from. |
targetBranch | string | Branch to merge into (default: current branch). |
gitpeak_blame_line
Get the change history of a specific line in a file: every commit that touched it, newest first, with author, date, summary and any linked issue refs. Returns a list of revisions, not a single blame record.
| Parameter | Type | Description |
|---|---|---|
file * | string | Relative file path within the repository. |
line * | number | Line number (1-indexed). |
gitpeak_worktrees
List all git worktrees for the current repository with their branch and status.
gitpeak_dispatch
Dispatch any registered GitPeak command by name. Use for operations not covered by dedicated tools (stash, checkout, create branch, etc.). Returns the command result.
| Parameter | Type | Description |
|---|---|---|
command * | string | The GitPeak command bus identifier, e.g. "repo.stashSave". |
payload | object | Optional payload for the command. |