CommitLore
curl -fsSL https://raw.githubusercontent.com/MongLong0214/commitlore/v1.2.0/install.sh | sh -s v1.2.0curl -fsSLO https://raw.githubusercontent.com/MongLong0214/commitlore/v1.2.0/install.sh
sh install.sh v1.2.0
# Or skip the script: the checkout it makes is one you can make yourself.
git clone --depth 1 --branch v1.2.0 https://github.com/MongLong0214/commitlore
node commitlore/dist/commitlore.mjs --versionEr installiert einen festgepinnten Quellcode-Checkout und einen Wrapper, der
node <checkout>/dist/commitlore.mjs ausführt – kein kompiliertes Download, kein Build-Schritt.
Der Code überlebt. Das Urteil nicht.
Ein Agent schlägt einen Ansatz vor. Dein Team lehnt ihn wegen einer nicht offensichtlichen Einschränkung ab. Der endgültige Code bewahrt das Ergebnis, aber normalerweise nicht, warum die Alternative verworfen wurde. Ein späterer Agent sieht nur den Code und schlägt dieselbe Idee erneut vor.
CommitLore bewahrt dieses Urteil neben dem Code auf.
Was CommitLore tut
Verhalten | Produktpfad | |
Erfasst | Bewahrt Einschränkungen, verworfene Alternativen und Warnungen auf, die ein Diff nicht zeigen kann. Kandidaten werden gegen das Sitzungsprotokoll und das gestaffte Diff geprüft. |
|
Bewahrt | Speichert akzeptierte Aufzeichnungen in normalen Git-Trailern oder -Notizen statt in einer gehosteten Speicherdatenbank. | Commit-Hooks · |
Verfolgt Lebenszyklus | Hält aktive, ersetzte und abgelaufene Entscheidungen getrennt. |
|
Eingrenzt | Wählt Entscheidungen für den Pfad aus, den ein Agent gleich bearbeiten wird. |
|
Bewertet Vertrauen | Liefert Aufzeichnungen als Anweisungen, Behauptungen oder zurückgehaltene Inhalte. | Standard-/Signaturmodus |
Liefert | Gibt unterstützten Agenten vor einer Bearbeitung aktuellen Kontext. | Plugin-Hook · MCP |
Die meisten Commits sollten keine Aufzeichnung tragen. CommitLore ist für Urteile gedacht, die der Code nicht bewahren kann, nicht für das Erzählen jeder Änderung.
Related MCP server: memini
In 60 Sekunden zu entscheidungsbewussten Agenten
1. CLI installieren
macOS und Linux:
curl -fsSL https://raw.githubusercontent.com/MongLong0214/commitlore/v1.2.0/install.sh | sh -s v1.2.0Windows:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/MongLong0214/commitlore/v1.2.0/install.ps1))) v1.2.0Erfordert Node.js 22.23.2+ und Git. Das Skript prüft beides, bevor es etwas schreibt.
2. Agenten verbinden
Claude Code:
/plugin marketplace add MongLong0214/commitlore
/plugin install commitlore@commitloreCodex:
commitlore plugin install-codexDas Plugin legt kein commitlore auf den PATH, daher benötigen die folgenden Befehle auch die
CLI-Installation. Die Installer erkennen und verdrahten außerdem unterstützte MCP-Hosts, wo dies
sicher möglich ist; die genaue Matrix steht unten.
3. Repository initialisieren
cd your-repository
commitlore init
commitlore context .Starte nach der Installation oder Aktualisierung eines Plugins eine neue Agentensitzung: Eine laufende Sitzung behält die Laufzeit, die sie geladen hat.
Dann normal arbeiten und committen. Bei unterstützten Skill-Integrationen wird CommitLore bei gewöhnlichen Commit-Anfragen berücksichtigt und bleibt still, wenn nichts Erhaltenswertes vorliegt. Du musst CommitLore nicht bei jedem Commit nennen.
Möchtest du, dass akzeptierte Aufzeichnungen ohne Aufforderung pro Aufzeichnung gestafft werden? Das
Repository kann einmalig mit commitlore auto on zustimmen. Diese Richtlinie gehört dem Repository und
gilt für das Team, daher wird sie von dieser Seite nicht stillschweigend aktiviert.
Was der Agent erhält
Vor der Bearbeitung von src/pricing.ts:
commitlore: active records for src/pricing.ts
Limit
[claim] r-price01 calculatePrice owns final checkout pricing only
Ruled-out
[claim] r-price01 Reuse it for admin quotes |
eligibility and rounding semantics differ[claim] bedeutet „bewerte das als Information.“ Ein Repository kann sich für den stärkeren
Signatur-Autoritätsmodus entscheiden. Die Lieferung gibt dem Agenten Kontext; sie blockiert die
Bearbeitung nicht.
Warum Git?
Das Repository sollte das Urteil hinter seinem Code besitzen.
CommitLore speichert Aufzeichnungen in gewöhnlichen Git-Trailern und -Notizen, sodass sie mit dem Code, den sie erklären, verzweigen, zusammenführen, klonen, überprüft werden und Anbieterwechsel überleben.
SQLite ist nur ein neu aufbaubarer Index. Lösche ihn und Git hält die Aufzeichnung trotzdem.
Eine alte Entscheidung zu finden, reicht nicht
Ein allgemeines Speicher- oder Abrufsystem fragt:
Welcher alte Text sieht verwandt aus?
CommitLore fragt:
Welche aufgezeichneten Entscheidungen gelten jetzt noch für diesen Pfad?
Eine ersetzte Entscheidung kann hochrelevant sein und trotzdem als aktuelle Anleitung falsch sein. Relevanz und Autorität sind verschiedene Fragen.
So funktioniert es
Erfassen — ein Agent entwirft nur Entscheidungskontext, den das Diff nicht zeigen kann.
Verifizieren — CommitLore prüft den Entwurf gegen die Sitzung und das gestaffte Diff.
Bewahren — die akzeptierte Aufzeichnung lebt in Git mit Identität und Lebenszyklus.
Liefern — vor einer späteren Bearbeitung werden nur aktive Aufzeichnungen für diesen Pfad zurückgegeben.
Die meisten Commits tragen keine Aufzeichnung. Der Commit-Hook validiert eine Aufzeichnung, wenn eine vorhanden ist; er erfindet keine.
Ein vorhandener Hook wird nicht überschrieben. commitlore init respektiert core.hooksPath,
verschiebt einen bereits installierten Hook nach <hook>.commitlore-chained und ruft ihn zuerst auf;
commitlore hooks uninstall legt ihn zurück.
Was automatisch passiert
Host | Lieferung vor der Bearbeitung | Verifizierter Erfassungs-Workflow | Deterministische Erfassung bei jedem Commit |
Claude Code | Automatisch über das Plugin | Verfügbar über die Plugin-Skill | Nicht zertifiziert |
Codex | Automatisch über das Plugin | Verfügbar über die Plugin-Skill | Nicht zertifiziert |
Hermes | Verfügbar nach | Verfügbar nach Host-Installation | Nicht zertifiziert |
Gemini CLI, Cursor, Windsurf, opencode | MCP-Lieferung, wo der Host die Registrierung nutzt | Verfahren über MCP verfügbar | Nein |
| Nur Verfahren | Nur Verfahren | Nein |
„Verfügbar“ bedeutet, dass der Workflow Vorbereiten → Verifizieren → Staffen existiert. Es bedeutet nicht, dass jeder berechtigte Commit automatisch bewertet wird.
Benutzer auf unterstützten Skill-Hosts müssen nicht bei jedem Commit „zeichne das in CommitLore auf“ sagen. Die verbleibende Einschränkung ist die Host-Initiierung, nicht ein erforderlicher Benutzerbefehl pro Aufzeichnung.
Ein Feldbericht, keine Messung
Ein Lauf, auf einem unabhängigen Repository, von jemandem, der v1.2.0 zum ersten Mal installiert. Nichts hier wurde gemessen und nichts davon steht in den Beweisprotokollen. Es steht auf dieser Seite, weil der obige Absatz eine Schleife behauptet, die keine Tabelle hier abdeckt.
Sie baten einen Agenten, einen Rundungsfehler zu beheben, erwähnten beiläufig, dass eine Dezimalbibliothek bereits erwogen und verworfen worden war, und endeten mit „commit es“. CommitLore wurde nie genannt. Ein Teil dessen, was der Commit trug:
Ruled-out: adopting a decimal library such as Decimal.js | the backend is a
number contract, so it is meaningless
Warn: do not revert the test file to console.assert: it exits 0 even on
failure, so CI passes silently
Provenance: draftedDas Warn wurde dem Agenten nicht diktiert. Er stieß auf die Falle, während er arbeitete, und hinterließ
sie für den Nächsten. Provenance: drafted zeichnet auf, dass kein Mensch die Aufzeichnung gelesen hat,
was sie als claim einstuft – geliefert als Bericht zum Abwägen, nicht als Befehl.
Eine spätere Sitzung ohne gemeinsame Historie wurde gebeten, die Dezimalbibliothek doch zu übernehmen.
Sie tat es nicht und nannte die Aufzeichnung als Grund. Sie las auch die Einstufung: Ein claim ist keine
Anweisung, also prüfte sie den genannten Grund gegen den Code, bevor sie zustimmte.
Im Gegensatz zu Speicher
Allgemeiner Speicher / RAG | CommitLore | |
Hauptfrage | Welcher alte Text ist verwandt? | Welche Entscheidungen gelten hier jetzt noch? |
Autorität | Speicher-Store oder Anbieter | Git |
Umfang | Semantische Ähnlichkeit | Repository-Pfade |
Lebenszyklus | Oft nur Anhängen | Aktiv · ersetzt · abgelaufen |
Vertrauen | Abgerufener Text | Anweisung · Behauptung · blockiert |
Erfassung | Transkript- oder Notizspeicher | Beweisgeprüfte Entscheidungsaufzeichnung |
Portabilität | Backend-abhängig | Gewöhnliches Git |
CommitLore ist bewusst enger gefasst. Es ist kein allgemeines Benutzerspeichersystem, Gesprächsarchiv oder Vektordatenbank-Ersatz.
Beweise
Frage | Gemessenes Ergebnis | Grenze |
Hat sich der kontextbezogene Vorschlag in der registrierten Studie durch die erneute Einreichung geändert? | 2,8 % (16/580) mit CommitLore vs. 18,8 % (109/579) ohne | ein Modell, eine Testumgebung, konstruierte Aufgaben |
Hat die Lebenszyklus-Filterung zurückgezogene Datensätze in der gemessenen aktiven Projektion geliefert? | 0 zurückgezogene Datensätze | überholte Datensätze waren vorhanden; Ablauf war nicht aktiv |
Skaliert die indizierte Suche? | 496 ms p50 bei 100.000 Commits | der Fallback ohne Index ist deutlich langsamer |
Die Index-Erstellungszeit folgt der Anzahl der Datensätze, nicht der Anzahl der Commits: Der aufwändige Durchlauf erfolgt einmal pro Datensatz, sodass eine lange Historie mit wenigen Datensätzen schneller aufgebaut wird als eine kurze mit vielen Datensätzen.
Der Pfadumfang (Path Scope) ist es, der eine große Historie vom Modell fernhält. Im #167-Korpus waren es nur 2 von 10.002 Datensätzen:
Route | für das Modell sichtbare Datensätze | relevante Datensätze | für das Modell sichtbare Tokens |
alles einfügen | 10.002 | 2/2 | 1.004.554 |
Top-k lexikalisch | 2 | 1/2 | 190 |
CommitLore-Pfadumfang | 2 | 2/2 | 335 |
Das misst Exposition und Recall bei einem festen Budget von zwei Datensätzen – nicht Token-Kosten, abgerechnete Kosten, Genauigkeit oder Agentenverhalten. Ein Korpus, eine Abfrage, ein festgelegtes Embedding-Modell.
Die Agentenstudie belegt keinen universellen Modelleffekt. Die Zustellung ist kein Beweis dafür, dass ein Modell einen Datensatz gelesen oder befolgt hat.
Methoden, vollständige Tabellen, Ausschlüsse und negative Ergebnisse →
Grenzen, Vertrauen und Datenschutz
Erfassung ist unterstützt, nicht deterministisch. Unterstützte Skills berücksichtigen gewöhnliche Commit-Anfragen, aber kein Host ist zertifiziert, jeden förderfähigen Commit zu bewerten.
Der Standard-Direktivmodus ist keine Authentifizierung. Er gleicht den Commit-Author-Header ab, und jeder, der einen Commit schreiben kann, kann diesen Header setzen – eine
[directive]im Standardmodus ist daher Richtlinien-Metadaten, kein Identitätsnachweis. Der Signaturmodus erfordert zusätzlich den verifizierten Status von Git selbst sowie eine Übereinstimmung in der repository-lokalencommitlore.trustedSigner-Zulassungsliste; eine fehlende, leere oder nicht lesbare Signatur-Zulassungsliste autorisiert niemanden, sodass der Modus im Fehlerfall geschlossen ist (Fail-Closed).Guard ist ein experimenteller Hinweis, kein Sicherheitsnetz: Präzision 44,8 % (95 %-Wilson-KI 32,7 %–57,5 %), Recall 22,0 % im 417-Entscheidungen-Korpus. Ein leeres Guard-Ergebnis ist kein Sicherheitsurteil.
Zustellung verbraucht Tokens bei jedem passenden Tool-Aufruf. Der Pre-Edit-Hook feuert bei
Readebenso wie beiEdit,Write,MultiEditundNotebookEdit, läuft also weit häufiger, als ein Bearbeitungsagent Commits erstellt. Jedes Feuern verbraucht bis zum Payload-Budget – standardmäßig 800 Tokens, änderbar mit--budget. Ein Repository ohne Datensätze verbraucht nichts, was bedeutet, dass diese Kosten mit der Einführung kommen, nicht mit der Installation.Eine Antwort kann unvollständig sein. Die Abdeckung wird offengelegt; das Fehlen in einem unvollständigen Ergebnis ist kein Beweis dafür, dass kein Datensatz existiert. Repository-weite Abdeckung, Symbol-Anker und ein interaktiver Datensatz-Builder bleiben offen: #32, #33.
Commit-Trailer reisen mit einem Klon; Notizen nicht. Git holt
refs/notes/*standardmäßig nicht ab, sodass ein Datensatz inrefs/notes/commitlorein einem gewöhnlichen Klon fehlt, biscommitlore initdiesen Spiegel konfiguriert.Es gibt kein gehostetes Backend. Aber sobald der Server oder Hook Kontext zurückgibt, verarbeitet der Host diesen Kontext unter seiner eigenen Richtlinie; CommitLore kontrolliert diesen Datenfluss nicht.
Sicherheit · Kompatibilität · Evidenz
Datensätze sind bis zur Bewertung nicht vertrauenswürdig. Die Standard-Autorzuordnung ist Richtlinien-Metadaten, keine Authentifizierung. Der signierte Direktivmodus erfordert Git-Verifizierung und eine repository-lokale Signatur-Zulassungsliste; eine fehlende oder nicht lesbare Zulassungsliste autorisiert niemanden. Injektionsförmige Payload wird von modelllesbaren Routen ferngehalten.
Vollständiges Sicherheitsmodell →
Der CLI-Installer kann keine Hooks in Repositories umschreiben, von denen er
nichts weiß, und laufende Host-Sitzungen behalten die geladene Laufzeit.
commitlore doctor benennt beide Zustände und deren Reparatur, und
commitlore upgrade meldet, ob eine neuere Version existiert.
Datensätze sind gewöhnliche Git-Trailer oder Notizen. Protokoll 2.0 definiert Lebenszyklus, Vertrauensgrade, Validierung und Kompatibilität.
Menschlicher Leitfaden → · Normative Spezifikation →
Das Repository veröffentlicht die Methoden, Ausschlüsse, erfolglosen Messungen und die Fälle, in denen die ursprüngliche Benchmark oder Diagnose falsch war.
Dokumentation
Mitwirken
CONTRIBUTING.md behandelt das Datensatzprotokoll, an das sich dieses Repository hält, das Release-Gate und die Reproduktion der Evidenz.
Lizenz
MIT – siehe LICENSE.
Available Tools
8 toolscommitlore_before_changeARead-only
Everything recorded about a path, before editing it: the active decisions, the gaps in what could be verified, and any ruled-out alternative a proposal would revive. Returns active_decisions, verification_gaps, possible_revival_matches, guard_confidence and cache_key. Pass path alone for context. Pass proposal as well to also run the guard against that path's Ruled-out records; without it guard_confidence is "not-run" and possible_revival_matches is empty because nothing was checked, not because nothing matched. The guard is an experimental advisory: precision 44.8%, recall 22.0% on the 417-decision corpus. An empty possible_revival_matches does not guarantee the proposal avoids every ruled-out alternative.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | repository-relative path whose Ruled-out records to check against | |
| proposal | No | the proposed approach, in the words it would be carried out in; omit for context only (no guard run) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the read-only annotations, it discloses that the guard is experimental, gives precision/recall numbers, explains that an empty match list means nothing checked rather than no match, and warns that empty results do not guarantee safety. This is significant extra behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is dense and front-loaded with the core purpose, then return keys, then usage modes, then the guard caveat. It is longer than average but every clause carries necessary information, so it earns its length.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
It names all returned keys and explains the guard-related result semantics, which is important because there is no output schema. It does not detail the internal structure of `active_decisions` or `verification_gaps`, but the names and context make them understandable enough for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, and the description adds behavioral meaning to `proposal` by explaining how its presence changes the guard run and the returned fields. It also clarifies that `path` is repository-relative, reinforcing the schema without repeating it verbatim.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns recorded context for a path before editing, including active decisions, verification gaps, and ruled-out alternatives. It distinguishes its scope ('before editing') and guard behavior from the sibling set, though it does not explicitly name an alternative tool to contrast with.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives explicit mode guidance: pass `path` alone for context, and pass `proposal` to also run the guard. It explains the consequences of omitting `proposal` (guard_confidence 'not-run', possible_revival_matches empty). It does not explicitly say when to prefer this over sibling tools like commitlore_guard, but the context is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commitlore_guardARead-only
Check a proposal against the Ruled-out records for a path before acting on it. Returns every record whose alternative matches, with the reason it was rejected. Experimental advisory: precision 44.8%, recall 22.0% on the 417-decision corpus. An empty matched array does not guarantee the proposal avoids every ruled-out alternative.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | repository-relative path whose Ruled-out records to check against | |
| proposal | Yes | the proposed approach, in the words it would be carried out in |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already indicate read-only and non-destructive behavior, and the description adds transparency about the output ('Returns every record whose alternative matches') and the important caveat that an empty result does not guarantee safety. It does not describe error behavior, but the main behavioral characteristics are disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three sentences, each conveying essential information: the action, the return behavior, and the experimental limitations. No filler or redundant phrasing is present.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description explains what the tool returns and includes a critical limitation about false negatives. There is no output schema, but the return shape is described well enough for basic use; error cases and exact record structure are not specified.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, and the description does not add significant semantic detail beyond the schema. 'Path' and 'proposal' are both described in the schema, so the description mostly repeats rather than enriches parameter meaning.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action ('Check a proposal'), a specific resource ('Ruled-out records for a path'), and a clear purpose ('before acting on it'). It clearly distinguishes this tool's role from generic query or mutation tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear timing guidance ('before acting on it') and warns that the tool is experimental and advisory, with precision/recall metrics. It does not explicitly name alternative sibling tools, but the usage context and limitations are sufficiently clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commitlore_prepare_captureA
Prepare a capture transaction: computes binding conditions (HEAD, staged diff, tree, policy hash), generates the prompt contract for the agent to use, and persists a phase:"prepared" pending transaction. Returns the nonce needed for verify and stage. The prompt carries the end of the transcript rather than all of it; transcript_window says which lines, numbered as the whole transcript numbers them. Verification still reads the whole transcript, so quote only what the prompt shows you. The transaction binds to THIS server's checkout, returned as repository; if your working directory is a linked worktree or another clone, pass repository to assert it and this refuses rather than binding to the wrong HEAD.
| Name | Required | Description | Default |
|---|---|---|---|
| repository | No | your own working directory, asserted. This server is registered against one checkout and binds every transaction to it; if you are in a linked worktree or another clone, pass this and the call refuses instead of binding to a tree you never touched. It cannot change the binding, only assert it. Omit to accept this server's repository, which is returned as `repository` | |
| transcript | Yes | the session transcript to compute source hashes from | |
| unattended | No | declare this capture unattended: nobody was asked before staging. Refused unless the repository opted in (.commitlore-policy.json: "unattended": true, mode "auto") |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the annotations, the description reveals substantial behavior: it persists a phase:'prepared' pending transaction, computes binding conditions, returns only the end of the transcript in the prompt, notes that verification still reads the whole transcript, and refuses to bind when the repository assertion fails. None of this contradicts the annotations, and the readOnlyHint=false is consistent with the described persistence.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is dense but every sentence earns its place: purpose and output are front-loaded, followed by critical quoting guidance and binding behavior. There is no filler or repetition of schema details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a complex tool with no output schema, the description covers the essential return values (`nonce`, `repository`, `transcript_window`), the persistence side effect, the transcript quoting rule, and the refusal behavior. It does not enumerate the complete shape of the returned prompt contract or all possible error cases, but it provides enough context to call the tool effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, and the schema already explains each parameter meaningfully, especially `repository` and `unattended`. The description adds workflow context around the transcript and repository assertion, but it does not add substantial parameter-level semantics beyond the schema, so the baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific verb and resource: 'Prepare a capture transaction' and details the concrete outputs (binding conditions, prompt contract, pending transaction, nonce). It also distinguishes this step from the sibling tools by explicitly relating the nonce to 'verify and stage', so an agent can tell it apart from commitlore_stage_capture and commitlore_verify_capture.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear workflow context: this prepares the transaction and returns the nonce needed for later verify and stage steps. It also includes a conditional usage rule for passing `repository` when working from a linked worktree or another clone. It does not explicitly enumerate when not to use the tool versus each sibling, but the phase workflow is clear enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commitlore_queryARead-only
Active CommitLore records for a path: the constraints, ruled-out alternatives and warnings recorded in git history. Same answer as commitlore <kind> --json.
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | context = every kind at once; limits = Limit:; ruled-out = Ruled-out:; warnings = Warn: | |
| path | No | repository-relative path to scope the answer to (renames are followed); omit for the whole repository |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds that records are 'active' and that it returns the same answer as a CLI command, implying a JSON response. This adds meaningful context beyond the annotations without contradicting them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with zero waste. The core purpose is front-loaded, and the second sentence clarifies the CLI equivalence. No redundant phrasing or unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 2-parameter read-only query tool with no output schema, the description explains the content returned (active records of kinds), the scope via path, and the JSON format via CLI reference. It is sufficiently complete for an agent to invoke it correctly, though it does not detail the exact response structure.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with both parameters (kind and path) already fully described in the schema. The description does not add parameter-specific details beyond the schema, so a baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States it retrieves active CommitLore records (constraints, ruled-out alternatives, warnings) for a path, and mentions it is equivalent to `commitlore <kind> --json`. This clearly distinguishes it from sibling tools that handle guard, capture, identity, etc.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context (querying records for a path) but does not explicitly compare to alternative commitlore tools or state when not to use it. It lacks explicit exclusions or alternative selection guidance, relying on the purpose to convey when it should be invoked.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commitlore_runtime_identityARead-only
Report the exact CommitLore entrypoint, package root, version and index schema this MCP server executes.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already indicate readOnlyHint: true and destructiveHint: false, and the description's 'Report' action aligns perfectly with these. It further discloses the exact content of the report, leaving no ambiguity about the tool's behavior or side effects.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that lists all reported items without unnecessary words. It is highly concise and easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that there are no parameters and no output schema, the description is complete. It fully informs the agent of what the tool reports, with no missing context needed to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, and the description does not need to explain any. Since there are no params to clarify, the baseline score of 4 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with the specific verb 'Report' and lists the exact items reported (entrypoint, package root, version, index schema). It is distinct from the sibling tools, which focus on query, capture, and guard operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no explicit guidance on when to use this tool versus alternatives, nor does it mention any prerequisites or conditions. It is a self-explanatory reporting tool, but the absence of any usage context leaves the agent without direction on when to invoke it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commitlore_stage_captureA
Stage a verified capture transaction: advances the pending record from verified to staged, stamps expires_at (staged_at + 5 minutes), and makes it eligible for the prepare-commit-msg hook. All bindings are server-owned and computed from stored state; the only inputs are the nonce and, optionally, the receipt your verification was issued.
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | the 32-character lowercase hex nonce returned by prepare_capture | |
| receipt | No | the receipt verify_capture returned to you. Required whenever the transaction was bound by a verification that issued one, which is every transaction this build binds; a receipt that was not issued by that verification is refused. Omit it only for a transaction prepared by a build older than receipts. Always send the one you were given. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses key behaviors beyond the annotations: it advances the record from verified to staged, sets expires_at to staged_at + 5 minutes, and makes it eligible for the prepare-commit-msg hook. It also explains that bindings are server-owned and computed from stored state, and that receipt verification is enforced. This is rich context that annotations (only readOnlyHint, openWorldHint, destructiveHint as false) do not provide, so it earns a high score.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise—two sentences—but packs critical information: the action, the state transition, the timing, the eligibility, and the parameter guidance. Every sentence adds value, and it is front-loaded with the core purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity, the description covers all essential aspects: the state transition, the time constraint, the eligibility for the hook, and the parameter handling. There is no output schema, so the description doesn't need to explain return values, and the parameter semantics are already covered in the schema. The only minor gap is not explicitly stating what the response or result looks like, but that is not critical for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the description adds minimal extra meaning beyond what the schema already explains. The description reinforces the receipt's requirement and its origin, but since the schema already provides detailed descriptions, the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: to stage a verified capture transaction by advancing a pending record from verified to staged, and it explicitly mentions the stamping of expires_at. It distinguishes itself from sibling tools like verify_capture and prepare_capture by describing the specific state transition.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly indicates when to use the tool ('after a verification has been issued') and explains when to omit the receipt (for older builds). However, it does not explicitly state when NOT to use this tool or mention alternative tools by name, so it's not a perfect 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commitlore_staleARead-only
Records that are no longer carrying their weight: superseded, past a date-form Expires:, or flagged for review by a condition-form one. Same answer as commitlore stale --json.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds value by defining what 'stale' means (superseded, past Expires:, flagged for review), which goes beyond the annotation. No contradiction; it reinforces the read-only nature by focusing on listing.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with no filler. The core purpose and criteria are front-loaded, and the command equivalence is a concise note. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a zero-parameter listing tool with read-only annotations, the description is sufficiently complete. It explains what is returned (stale records) and the criteria. No output schema exists, but the tool's purpose is simple enough that return format is implied.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so schema coverage is trivially 100%. The baseline for 0 params is 4, and the description does not need to explain parameters. It appropriately omits parameter details.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists stale CommitLore records, with specific criteria (superseded, past Expires:, flagged for review). The verb 'list' and resource 'stale records' are clear. It doesn't explicitly differentiate from siblings like commitlore_query, but the specific criteria make it distinct.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool is for viewing stale records but provides no guidance on when to use it versus other tools or when not to use it. The mention of 'Same answer as commitlore stale --json' is a command equivalence, not an alternative selection. No exclusions or context are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
commitlore_verify_captureA
Verify a capture draft against the transcript and diff that were hashed at prepare time. Evidence citations are checked mechanically (verbatim match); fabricated quotes are discarded. Stores the verified result in the pending transaction for stage to consume.
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | optional: the staged diff, if you have it. Omit it and the server reads the staged diff itself and checks it against the hash prepare stored — the same guarantee, without asking you to reproduce content the server produced. | |
| draft | Yes | The agent's draft, as the harvest contract specifies it: a JSON object with a "records" array. A bare JSON array of records is also accepted. | |
| nonce | Yes | the 32-character lowercase hex nonce returned by prepare_capture | |
| transcript | Yes | the session transcript (same content hashed at prepare time) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description goes beyond the annotations (readOnlyHint=false, destructiveHint=false) by disclosing that it stores the verified result in a pending transaction and that evidence citations are mechanically checked, with fabricated quotes discarded. This adds meaningful behavioral context about the mutation and verification logic.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences with no redundancy. The purpose is front-loaded, and each sentence delivers distinct information: the core verification action, the citation-checking behavior, and the storage outcome.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description does not specify the return value or what happens if verification fails, which is important given there is no output schema. It mentions the workflow (prepare, stage) but leaves response format and error handling unspecified.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
While the schema already covers 100% of parameters, the description adds extra nuance: it explains the diff parameter can be omitted for the server to read the staged diff itself, and it clarifies the draft format (JSON object with a 'records' array, bare array accepted). This supplements the schema descriptions meaningfully.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('verify') and resource ('capture draft'), and clarifies the context by referencing 'hashed at prepare time' and 'for stage to consume'. This makes the tool's role in the workflow unambiguous and distinguishes it from the sibling prepare and stage tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage in the prepare→verify→stage workflow but does not explicitly state when to use this tool over alternatives or when not to use it. There is no exclusions or alternative routing, so the guidance is only implicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.5.0- Changed
commitlore_prepare_capture1 field changed- added
Input schema / properties / repositoryAdded value: +{ + "description": "your own working directory, asserted. This server is registered against one checkout and binds every transaction to it; if you are in a linked worktree or another clone, pass this and the call refuses instead of binding to a tree you never touched. It cannot change the binding, only assert it. Omit to accept this server's repository, which is returned as `repository`", + "type": "string" +}
2 tool updates
v1.4.0- Changed
commitlore_stage_capture1 field changed- added
Input schema / properties / receiptAdded value: +{ + "description": "the receipt verify_capture returned to you. Required whenever the transaction was bound by a verification that issued one, which is every transaction this build binds; a receipt that was not issued by that verification is refused. Omit it only for a transaction prepared by a build older than receipts. Always send the one you were given.", + "type": "string" +}
- Changed
commitlore_verify_capture2 fields changed- changed
Input schema / properties / diff / descriptionPrevious value: -"the staged diff (same content hashed at prepare time)"New value: +"optional: the staged diff, if you have it. Omit it and the server reads the staged diff itself and checks it against the hash prepare stored — the same guarantee, without asking you to reproduce content the server produced." - changed
Input schema / requiredPrevious value: -[ - "nonce", - "draft", - "transcript", - "diff" -]New value: +[ + "nonce", + "draft", + "transcript" +]
8 tool updates
v0.1.0- First observed
commitlore_before_change - First observed
commitlore_guard - First observed
commitlore_prepare_capture - First observed
commitlore_query - First observed
commitlore_runtime_identity - First observed
commitlore_stage_capture - First observed
commitlore_stale - First observed
commitlore_verify_capture
TDQS
Scored across 8 tools
The capture lifecycle tools (prepare/verify/stage) are clearly separated by phase, and stale/runtime_identity are distinct. However, before_change, query, and guard overlap: before_change already runs the guard when a proposal is supplied, and query also returns ruled-out alternatives for a path. The descriptions help, but an agent could easily pick the wrong one for a pre-edit context lookup.
All tools share the commitlore_ prefix and use lowercase snake_case, which is a clear and consistent pattern. The capture tools use verb_noun (prepare_capture, verify_capture, stage_capture), but before_change, stale, and runtime_identity are stylistic deviations, so the set is mostly consistent rather than fully uniform.
Eight tools is well-scoped for this server's purpose: three for the capture pipeline, three for reading/guarding context, plus stale and runtime identity. Each tool has a place and the set feels neither bloated nor thin.
The core workflow is covered: retrieving records/context, checking proposals, and the prepare/verify/stage capture pipeline. Minor gaps exist—such as no direct way to update, dismiss, or resolve stale records—but these are workable and may be intentionally outside the MCP surface.
Maintenance
Related MCP Connectors
Project memory for coding agents: requirements, decisions, code graph and delivery telemetry.
Shared memory for coding agents. Stop re-explaining your codebase every session.
- SeturosOAuthcom.seturos
Shared work memory for Claude Code, Codex, Cursor and chat, scoped to each repository.
Shared project memory for AI coding agents: decisions, lessons, risks and tasks in one graph.
Related MCP Servers
- AlicenseAqualityAmaintenanceLocal-first memory layer for AI coding agents — captures issues, attempts, fixes, and decisions, and warns at git commit before you repeat a mistake.17850MIT
- AlicenseAqualityCmaintenanceLocal-first project memory for AI coding agents. Records failed attempts, fragile files, and decisions per repo, and warns the agent via hooks before it repeats a recorded mistake.659 npmMIT

robo-cortexofficial
AlicenseAqualityAmaintenanceProvides a git-aware knowledge base for AI coding agents to store and retrieve memories anchored to code changes, with automatic staleness detection.81MIT- AlicenseNot gradedqualityCmaintenanceGives AI coding agents persistent, branch-aware memory and a dependency-tracked task graph by storing decisions, lessons, and tasks as plain JSON and Markdown committed directly into the repository. Agents can record and fuzzy-search past decisions, dump instant project context, and create, claim, complete, and query tasks whose completion automatically unblocks downstream work.MIT