
GitPin
io.github.shmindmasterPublished by GitHub account shmindmasterv0.6.4Updated Oct 24, 2026
Prove and verify multi-repo claims at Git HEAD: path, line, full SHA, no index.
Overview
GitPin gives an assistant read-only, HEAD-only evidence from local Git repositories, returning exact path, line, and full commit SHA that can be re-checked…
- What you can do
- GitPin is a local evidence MCP server for multi-repo Git roots. It exposes twelve read-only pin.* tools: pin.catalog to discover repositories, pin.search_docs and pin.search_code to find candidates, pin.prove and pin.prove_set to build evidence packs with path, line slice, full SHA and content hash, pin.verify and pin.verify_set to re-check claims against HEAD, plus pin.analyze, pin.inspect and pin.compare. Search results are labeled as candidates, not proof, and uncommitted work is never cited as HEAD evidence.
- When to use it
- Use it when an assistant makes factual claims about code or documentation in local Git repositories and you want those claims tied to exact committed lines before merging. It suits multi-repo answers, PR evidence gates, and CI checks where a human or pipeline can re-verify each citation with git show.
- Requirements
- Runs as a local stdio process on the desktop, installed from the npm package gitpin; Node 20 or newer is required. A registry YAML listing local Git repository roots is read from the path in GITPIN_REGISTRY, defaulting to ~/.gitpin/repositories.yaml. No authentication is declared for the stdio transport.
Installation
In SourceWeft
- Open GitPin in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[!IMPORTANT] Archived 2026-10-15. Superseded by Assay, a reference architecture for deterministic agent control. Why: the same agent writes both the change and its evidence manifest, so the gate proves coverage and hash pinning, not that a claim is true. Assay moves the decision into deterministic code instead. The last release, 0.6.4, stays on npm. The rest of this README is unchanged.
GitPin
Agent-authored pull requests must show exact evidence before they merge.
A read-only PR gate and local MCP server that ties every claim an AI agent makes about its change to an exact committed line that anyone can re-check with plain git.
[Validate] [npm] [MCP Registry] [License: MIT] [Node.js Version]
Quickstart · Watch the film · Use it in your repo · How it works · Guardrails · Status
Why it exists
Coding agents now open pull requests with confident descriptions: "added retry logging", "updated the protocol doc", "no other files touched". A reviewer who wants to trust one of those sentences has to open the file and hunt for the line, then do it again for the next sentence. Most reviewers stop checking, and an agent can change a file it never mentions.
GitPin turns the description into evidence. The agent commits a small manifest
in which every material claim names the paths it covers and points at an exact
line slice with a SHA-256 of its text. A required check compares that manifest
with the real diff. Any changed file that no claim covers fails the build, and
every claim that passes can be re-checked by a human with git show, without
GitPin, without the agent and without a hosted platform.
Quickstart: the gate in 30 seconds
demo:gate builds GitPin, creates a throwaway synthetic repository in a temp
folder, and runs the real gitpin gate twice. The agent's first commit changes
docs/protocol.md without claiming it, so the gate fails with exit 1. The
agent adds one evidence locator (line 5, hashed) and the same gate passes with
exit 0:
Nothing is written outside the temp folder, and the folder is removed afterward.
See it run
[GitPin demo: the gate fails an agent pull request that changed an unclaimed file, then passes after one hashed line locator is added.]Watch the 90-second film → · The 30-second cut →
Use it in your repo
1. Install the trusted policy on your default branch (a separate, reviewed change, so a pull request can never weaken its own gate):
2. Make it a required check:
3. Each agent PR commits .gitpin/change-evidence.json, starting from
templates/change-evidence.json. The full
setup, including rulesets, is in docs/pr-evidence-gate.md.
Give your agent the evidence tools. The local MCP server lets Claude Code, Codex, Cursor and other MCP clients find candidates and produce the evidence packs the gate checks:
init writes ~/.gitpin/repositories.yaml outside the repository, runs
doctor, prints a first evidence line with a full SHA, and prints paste-ready
MCP config. It never edits the repository it registers.
How it works
The gate reads policy only from the trusted base commit and the manifest only
from the head commit, through git show, never from a working tree. It compares
the merge-base diff, re-hashes every cited line slice, and emits a report whose
citations carry full SHAs.
The MCP side follows one loop. Search returns candidates, never answers. Proof
turns a candidate into an evidence pack. Verification re-checks it with
git show:
Resource gitpin://catalog; prompt prove-with-git-head. Cite formats are in
docs/cite-spec.md; an agent skill template is in
templates/gitpin-skill.md.
Guardrails and non-goals
- Read-only, always. GitPin never writes, commits or pushes to a repository it reads, and the gate never executes pull-request code.
- A PR cannot weaken its own gate. Policy comes from the base commit; evidence comes from the head commit; the dirty working tree is never read.
- Uncommitted work is never evidence. Dirty and untracked content is excluded from HEAD citations.
- Sensitive paths stay sensitive. Deny rules apply to evidence, and the manifest cannot cite itself.
- Candidates are not claims. Search output is labelled
evidence-candidatesand must go throughpin.prove. - No embeddings, no database, no reindex. Evidence comes from Git objects, so it works offline and on private repositories.
Not goals: semantic search, writing or committing code, replacing GitHub Issues or PR automation, or treating a non-Git folder as one repository.
Status and limits
This source tree and its packed documentation describe GitPin 0.6.4 without asserting publication status. Check each channel independently: npm, the MCP Registry (io.github.shmindmaster/gitpin) and GitHub Releases.
Node 20 or later. Site: shmindmaster.github.io/gitpin.
GitPin verifies coverage, location, revision and content hash. It proves what was committed, not that a claim is true: it does not establish semantic correctness, runtime behavior, authorship, authorization or compliance. That judgment stays with the reviewer, who now reads one cited line instead of hunting for it. Planned work is in the roadmap.
Configuration
Default registry: ~/.gitpin/repositories.yaml (legacy compatibility fallback: ~/.repocontext/... if present).
Formerly RepoContext 0.3.x. See migration.
Docs
Tools · PR evidence gate · Clients · Architecture · Compare · FAQ · Troubleshooting · Roadmap · Governance
Contributing, security and license
- Contributing: start with an issue for bugs and proposals, then follow
CONTRIBUTING.md. Good first issues are labelled
good first issue. Before a pull request:pnpm validate && pnpm build && pnpm verify:package. - Security: report vulnerabilities privately through a GitHub security advisory, as described in SECURITY.md. Please do not open a public issue.
- License: MIT.
Created and maintained by Sarosh Hussain. Related open source: Assay keeps an agent's decision out of its side effects; CrewScore checks whether an agent's prompt writes its safeguards down.
Source: README.md at commit a3c7a79
Tools
0Version history
1- v0.6.4LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts