GitPeak

v4.1.12
io.github.awalhadi/gitpeak Checked 17 hours ago Published 1 month ago

Git 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?).

ParameterTypeDescription
branchstringBranch to query (default: current branch).
limitnumberMax 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.

ParameterTypeDescription
sourceBranch *stringBranch to merge from.
targetBranchstringBranch 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.

ParameterTypeDescription
file *stringRelative file path within the repository.
line *numberLine 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.

ParameterTypeDescription
command *stringThe GitPeak command bus identifier, e.g. "repo.stashSave".
payloadobjectOptional payload for the command.