basemind-git-history
Skill105 starsChanged 4 months agoMITView on GitHub
Explore git history without shelling out to git — recent commits, commits touching a path, per-line and per-symbol blame, structural diffs across revisions, churn ranking, and a symbol's history over time. Reach for it whenever the user asks "what changed recently", "who last touched this", "when did this symbol change", "what's the diff between these revs", or "where's the churn".
In this repository10 other files it gives its agents.
- llms.txtllms.txt
- basemind-cliSkill
- basemind-code-searchSkill
- basemind-commsSkill
- basemind-doctorSkill
- basemind-documentsSkill
- basemind-scanSkill
- basemindSkill
- basemind-statsSkill
- multi-agent-roomSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
basemind first, naked git fallback: Prefer these tools over shelling out to git log, git blame, or git diff.
- Very specific: line 58
All paths are repository-relative with forward-slash separators.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
basemind-git-history — git intelligence over the index
basemind indexes git history and resolves blame and diffs at symbol resolution, backed by a
gix history index. History queries return commits, authors, paths, and line/symbol attributions —
structured and capped — for a fraction of the cost of parsing git log / git blame output.
basemind first, naked git fallback. Prefer these tools over shelling out to git log,
git blame, or git diff. Drop to raw git only when no tool covers the question (e.g. staging,
rebasing, anything that mutates history).
Tool routing
| Question | MCP tool | CLI |
| "What changed recently?" | git { mode: "recent" } | basemind git recent [--limit N] |
| "Which commits touched path P?" | git { mode: "touching", path: P } | basemind git touching P |
| "Path-filtered commit log?" | git { mode: "by_path", pattern: P } | basemind git by-path P |
| "When did symbol X last change?" | git { mode: "symbol_history", path: F, name: X } | basemind git symbol-history F X |
| "Who wrote this line?" | git { mode: "blame", path: F } | basemind git blame F |
| "Who wrote this symbol / when did its body change?" | git { mode: "blame_symbol", path: F, name: X } | basemind git blame-symbol F X |
| "Diff a file between revs?" | git { mode: "diff", path: F, rev_old, rev_new } | basemind git diff F old new |
| "What symbols did a branch add/remove?" | git { mode: "diff_outline", path: F, rev } | basemind git diff-outline F [--rev] |
| "Where's the churn?" | git { mode: "churn" } | basemind git churn [--top-k N] |
| "What's dirty in the working tree?" | git { mode: "status" } | basemind git status |
| "What's HEAD / branch / origin?" | admin { mode: "repo" } | basemind admin repo |
| "Full-text search commit messages + authors?" | git { mode: "search", pattern: "…" } | basemind git search "…" |
Examples
git { mode: "recent", limit: 5 }
→ 612df7e chore(release): v0.15.0
1779b99 fix(git-history,serve): address code-review findings
...
git { mode: "blame_symbol", path: "src/scanner.rs", name: "process_file" }
→ last touched by <author> in <commit> — body hash changed at HEAD~7
git { mode: "diff_outline", path: "src/mcp/tools.rs", rev: "HEAD~5" }
→ + search_history (function) - old_helper (function)Notes
- Git tools require
basemind serveto be running inside a git repository. Outside a git repo they return a clear error. - History queries are indexed:
gitmodetouchingand friends resolve in tens of microseconds vs a live walk. The index auto-builds on first use and is a fraction of the size of.git. - All paths are repository-relative with forward-slash separators. Lists are capped
(
limit, default 100, max 1000).
For code structure see basemind-code-search; for document RAG and semantic search see
basemind-documents; for agent coordination see basemind-comms.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

