Keywords: lm studio plugin, git ai, natural language git, local code history, git blame ai, repository analysis, offline git tool, private codebase ai
Real git data for your LLM. Log, diff, blame, status, branches ā all from natural language.
git_status ā current branch, staged/unstaged changes, ahead/behind remotegit_log ā commit history with filters (author, date, file, message search)git_show ā full diff and metadata for a specific commitgit_diff ā diff between refs, branches, working tree, or staged changesgit_blame ā line-by-line authorship for a file sectiongit_branch ā all branches with last commit infogit_stash ā list stashed changesgit_file_history ā every commit that touched a specific fileLoad the plugin folder in LM Studio.
| Field | Default | Description |
|---|---|---|
| Default Repository Path | (blank) | Absolute path to a git repo. Blank = LM Studio working directory |
| Max Log Entries | 20 | Default number of commits in git_log |
| Max Diff Lines | 500 | Truncate diffs beyond this to avoid context overflow |
Set Default Repository Path to avoid passing repo_path on every tool call.
"What changed in the last 5 commits?"
ā git_log(limit=5) ā git_show(hash=...) for relevant commits
"Who last touched src/auth.ts and why?"
ā git_blame(file_path="src/auth.ts", from_line=1, to_line=50) ā git_show(hash=...)
"What's the diff between main and my feature branch?"
ā git_diff(from="main", to="feature/my-branch")
"What do I have staged?"
ā git_diff(staged=true)
"Show me the history of the config file"
ā git_file_history(file_path="config/settings.ts")
"What branches exist?"
ā git_branch()
git_statusCurrent working tree state. Call first to establish context.
git_loggit_showgit_diffgit_blamegit_file_historycd git-plugin
npm install
npm run build
git_log(limit=10)
git_log(author="alice", since="2024-01-01")
git_log(file_path="src/api.ts", limit=5)
git_log(search="fix auth")
git_show(hash="abc1234")
git_show(hash="HEAD~2")
git_diff() ā unstaged changes
git_diff(staged=true) ā staged changes
git_diff(from="main", to="HEAD") ā branch comparison
git_diff(from="HEAD~3", file_path="app.ts") ā single file, last 3 commits
git_blame(file_path="src/auth.ts", from_line=10, to_line=40)
git_file_history(file_path="package.json", limit=15)