Git-native decision memory for coding agents: only the decisions still in force for the edited path
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Decision authority for coding agents, owned by Git.
Keep constraints, rejected alternatives, and warnings in Git โ then deliver
only what is still in force, so an agent is not handed a decision the
repository already reversed.
No hosted memory. The repository owns the record.
English ยท ํ๊ตญ์ด ยท ๆฅๆฌ่ช ยท ็ฎไฝไธญๆ
Install once. Then initialise each repository where you want it to work.
It installs a pinned source checkout and a wrapper that runs
node <checkout>/dist/commitlore.mjs โ no compiled download, no build step.
The code survives. The judgment doesn't.
An agent proposes an approach. Your team rejects it because of a non-obvious constraint. The final code preserves the outcome, but usually not why the alternative was rejected. A later agent sees only the code and proposes the same idea again.
CommitLore keeps that judgment beside the code.
| Behavior | Product path | |
|---|---|---|
| Captures | Preserves constraints, rejected alternatives, and warnings that a diff cannot show. Candidates are checked against the session transcript and the staged diff. | commitlore capture |
| Preserves | Stores accepted records in Git trailers or notes instead of a hosted memory database. | commit hooks ยท refs/notes/commitlore |
| Tracks lifecycle | Keeps active, superseded, and expired decisions distinct. | commitlore stale |
| Scopes | Selects decisions for the path an agent is about to edit. | commitlore context |
| Grades trust | Delivers records as directives, claims, or withheld content. | default / signed mode |
| Delivers | Gives supported agents current context before an edit. | plugin hook ยท MCP |
Most commits should carry no record. CommitLore is for judgment the code cannot preserve, not for narrating every change.
macOS and Linux:
Windows:
Requires Node.js 22.23.2+ and Git. The script checks both before it writes anything.
Claude Code:
Codex:
The plugin puts no commitlore on PATH, so the commands below need the CLI
install as well. The installers also detect and wire supported MCP hosts where
they can do so safely; the exact matrix is below.
Start a new agent session after installing or updating a plugin: a running session keeps the runtime it loaded.
Then work and commit normally. On supported skill integrations, CommitLore is considered during ordinary commit requests and stays silent when there is nothing worth preserving. You do not need to name CommitLore on every commit.
Want accepted records to stage without a per-record prompt? The repository can
opt in once with commitlore auto on. That policy is repository-owned and
applies to the team, so it is not silently enabled by this page.
Before editing src/pricing.ts:
[claim] means "weigh this as information." A repository can opt into the
stronger signed-authority mode. Delivery gives the agent context; it does not
block the edit.
The repository should own the judgment behind its code.
CommitLore stores records in ordinary Git trailers and notes, so they branch, merge, clone, review, and survive provider changes with the code they explain.
SQLite is only a rebuildable index. Delete it and Git still holds the record.
A general memory or retrieval system asks:
Which old text looks related?
CommitLore asks:
Which recorded decisions still apply to this path now?
A superseded decision can be highly relevant and still be wrong as current guidance. Relevance and authority are different questions.
Most commits carry no record. The commit hook validates a record when one is present; it does not invent one.
An existing hook is not overwritten. commitlore init honours core.hooksPath,
moves any hook already installed to <hook>.commitlore-chained, and calls it
first; commitlore hooks uninstall puts it back.
| Host | Pre-edit delivery | Verified capture workflow | Deterministic every-commit capture |
|---|---|---|---|
| Claude Code | Automatic through the plugin | Available through the plugin skill | Not certified |
| Codex | Automatic through the plugin | Available through the plugin skill | Not certified |
| Hermes | Available after commitlore hermes install | Available after host install | Not certified |
| Gemini CLI, Cursor, Windsurf, opencode | MCP delivery where the host uses the registration | Procedure exposed over MCP | No |
AGENTS.md hosts | Procedure only | Procedure only | No |
"Available" means the prepare โ verify โ stage workflow exists. It does not mean every eligible commit is assessed automatically.
Users on supported skill hosts do not need to say "record this in CommitLore" on every commit. The remaining limitation is host initiation, not a required per-record user command.
One run, on an unrelated repository, by someone installing v1.2.0 for the first time. Nothing here was measured and none of it is in the evidence logs. It is on this page because the paragraph above asserts a loop that no table here covers.
They asked an agent to fix a rounding bug, mentioned in passing that a decimal library had already been considered and dropped, and ended with "commit it". CommitLore was never named. Part of what the commit carried:
The Warn was not dictated to the agent. It hit the trap while working and left
it for whoever came next. Provenance: drafted records that no human read the
record, which grades it claim โ delivered as a report to weigh, not an order.
A later session with no shared history was asked to adopt the decimal library
after all. It did not, and named the record as its reason. It also read the
grade: a claim is not an instruction, so it checked the stated reason against
the code before agreeing with it.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/commitlore)<a href="https://allmcps.com/mcp/commitlore"><img src="https://allmcps.com/api/badge/commitlore?style=directory" alt="CommitLore on AllMCPs" /></a>