Description
Read-only git insight for LM Studio: status, log, diff, blame, branches, stashes, and per-file history.
Stats
113 Downloads
1 star
Last updated
Updated on August 31byProject Files
README
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 filecd git-plugin npm install npm run build
Load 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_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_showgit_show(hash="abc1234") git_show(hash="HEAD~2")
git_diffgit_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_blamegit_blame(file_path="src/auth.ts", from_line=10, to_line=40)
git_file_historygit_file_history(file_path="package.json", limit=15)
This plugin is free and open source. If you find it useful, consider supporting development:
| Tier | Amount | Perks |
|---|---|---|
| ☕ Coffee | $3 | Name in credits |
| 🍔 Lunch | $10 | + Priority support |
| 🍕 Pizza | $25 | + Name in README |
| 🏆 Founding | $50 | + Lifetime support, consultation |
Every coffee helps keep this project alive! ☕