Skip to main content

basemind-git-history

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".

Quellinformationen

Repository
Goldziher/basemind
Letzte Quellaktivität
22. Oktober 2026 um 04:55
Erkannte Sprache von SKILL.md
Englisch
Sterne
112
Forks
21

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
description
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".
name
basemind-git-history
license
MIT
metadata
{"author":"Goldziher","repository":"https://github.com/Goldziher/basemind"}
<!-- AI-RULEZ :: GENERATED FILE — DO NOT EDIT Content-Hash: blake3:a135da89c9a140974212c3d7338cd4f15bddce346228c8801727daee696d321b Source-Hash: blake3:2a7e231f856004de93c223e72e6724c297d0ead46eea09d8c8cbe05dbf3d7c69 Schema-Version: v1 --> # 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` | | "Commits whose changed paths match regex P?" | `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 ```text 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 serve` to be running **inside a git repository**. Outside a git repo they return a clear error. - History queries are indexed: `git` mode `touching` and 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. `recent` and `search` return at most 100 commits per page (`limit` default 20); `recent` is a recency window, so use `search` to find an author or message arbitrarily far back. Page with `next_cursor` -> `cursor`; a moved HEAD invalidates it (`cursor_invalidated`). A shallow clone sets `truncated`: absence is then inconclusive. For code structure see `basemind-code-search`; for document RAG and semantic search see `basemind-documents`; for agent coordination see `basemind-comms`.
Auf GitHub ansehen