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 --versionОн устанавливает закреплённую копию исходников и обёртку, которая запускает
node <checkout>/dist/commitlore.mjs — без загрузки скомпилированного файла и без шага сборки.
Код выживает. Суждение — нет.
Агент предлагает подход. Ваша команда отклоняет его из-за неочевидного ограничения. Итоговый код сохраняет результат, но обычно не причину, по которой альтернатива была отклонена. Позже агент видит только код и снова предлагает ту же идею.
CommitLore сохраняет это суждение рядом с кодом.
Что делает CommitLore
Поведение | Путь продукта | |
Захват | Сохраняет ограничения, отклонённые альтернативы и предупреждения, которые diff не может показать. Кандидаты проверяются по стенограмме сессии и подготовленному diff. |
|
Сохранение | Хранит принятые записи в Git-трейлерах или заметках вместо облачной базы памяти. | commit hooks · |
Отслеживание жизненного цикла | Различает активные, заменённые и истёкшие решения. |
|
Область действия | Выбирает решения для пути, который агент собирается редактировать. |
|
Оценка доверия | Доставляет записи как директивы, утверждения или скрытый контент. | обычный / подписанный режим |
Доставка | Даёт поддерживаемым агентам актуальный контекст перед редактированием. | плагин-хук · MCP |
Большинство коммитов не должны нести записей. CommitLore предназначен для суждений, которые код не может сохранить, а не для описания каждого изменения.
Related MCP server: memini
60 секунд до агентов, осознающих решения
1. Установите CLI
macOS и 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.0Требуется Node.js 22.23.2+ и Git. Скрипт проверяет оба перед тем, как что-либо записать.
2. Подключите своего агента
Claude Code:
/plugin marketplace add MongLong0214/commitlore
/plugin install commitlore@commitloreCodex:
commitlore plugin install-codexПлагин не добавляет commitlore в PATH, поэтому команды ниже также требуют
установки CLI. Установщики также обнаруживают и подключают поддерживаемые MCP-хосты там, где
это можно сделать безопасно; точная матрица приведена ниже.
3. Инициализируйте репозиторий
cd your-repository
commitlore init
commitlore context .Начните новую сессию агента после установки или обновления плагина: работающая сессия сохраняет загруженную среду выполнения.
Затем работайте и коммитьте как обычно. В поддерживаемых интеграциях навыков CommitLore учитывается при обычных запросах на коммит и остаётся молчаливым, когда нечего сохранять. Вам не нужно называть CommitLore в каждом коммите.
Хотите, чтобы принятые записи попадали в коммит без отдельного запроса? Репозиторий может
один раз согласиться с помощью commitlore auto on. Эта политика принадлежит репозиторию и
применяется ко всей команде, поэтому она не включается молча на этой странице.
Что получает агент
Перед редактированием 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] означает «взвесьте это как информацию». Репозиторий может согласиться на
более строгий режим подписанного авторитета. Доставка даёт агенту контекст; она не
блокирует редактирование.
Почему Git?
Репозиторий должен владеть суждением, стоящим за его кодом.
CommitLore хранит записи в обычных Git-трейлерах и заметках, поэтому они ветвятся, сливаются, клонируются, рецензируются и переживают смену провайдера вместе с кодом, который они объясняют.
SQLite — это лишь перестраиваемый индекс. Удалите его, и Git всё равно сохранит запись.
Поиск старого решения — это не всё
Общая система памяти или поиска спрашивает:
Какой старый текст выглядит релевантным?
CommitLore спрашивает:
Какие записанные решения всё ещё применимы к этому пути сейчас?
Заменённое решение может быть очень релевантным и всё же ошибочным как текущее руководство. Релевантность и авторитет — разные вопросы.
Как это работает
Захват — агент формулирует только тот контекст решения, который diff не может показать.
Проверка — CommitLore сверяет черновик с сессией и подготовленным diff.
Сохранение — принятая запись живёт в Git с идентичностью и жизненным циклом.
Доставка — перед последующим редактированием возвращаются только активные записи для этого пути.
Большинство коммитов не несут записей. Хук коммита проверяет запись, когда она присутствует; он не выдумывает её.
Существующий хук не перезаписывается. commitlore init учитывает core.hooksPath,
перемещает уже установленный хук в <hook>.commitlore-chained и вызывает его
первым; commitlore hooks uninstall возвращает его обратно.
Что происходит автоматически
Хост | Доставка перед редактированием | Проверенный рабочий процесс захвата | Детерминированный захват каждого коммита |
Claude Code | Автоматически через плагин | Доступно через навык плагина | Не сертифицировано |
Codex | Автоматически через плагин | Доступно через навык плагина | Не сертифицировано |
Hermes | Доступно после | Доступно после установки хоста | Не сертифицировано |
Gemini CLI, Cursor, Windsurf, opencode | Доставка через MCP, где хост использует регистрацию | Процедура доступна через MCP | Нет |
Хосты | Только процедура | Только процедура | Нет |
«Доступно» означает, что рабочий процесс подготовка → проверка → коммит существует. Это не означает, что каждый подходящий коммит оценивается автоматически.
Пользователям поддерживаемых хостов с навыками не нужно говорить «запиши это в CommitLore» в каждом коммите. Оставшееся ограничение — инициация хоста, а не обязательная команда пользователя для каждой записи.
Полевой отчёт, а не измерение
Один запуск, на несвязанном репозитории, человеком, впервые устанавливающим v1.2.0. Ничто здесь не измерялось, и ничего из этого нет в журналах доказательств. Это на этой странице, потому что абзац выше утверждает цикл, который не покрыт ни одной таблицей здесь.
Они попросили агента исправить ошибку округления, вскользь упомянули, что библиотека десятичных чисел уже рассматривалась и была отклонена, и закончили словами «закоммить». CommitLore ни разу не был назван. Часть того, что нёс коммит:
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: draftedWarn не был продиктован агенту. Он наткнулся на ловушку во время работы и оставил её
для следующего. Provenance: drafted фиксирует, что ни один человек не читал запись,
что оценивает её как claim — доставляется как отчёт для взвешивания, а не приказ.
Позже сессия без общей истории получила задачу всё же принять библиотеку десятичных чисел.
Она этого не сделала и назвала запись причиной. Она также прочитала
оценку: claim — это не инструкция, поэтому она проверила указанную причину
против кода, прежде чем согласиться с ней.
В отличие от хранилища памяти
Общая память / RAG | CommitLore | |
Основной вопрос | Какой старый текст релевантен? | Какие решения всё ещё применимы здесь сейчас? |
Авторитет | Хранилище памяти или провайдер | Git |
Область действия | Семантическое сходство | Пути репозитория |
Жизненный цикл | Часто только добавление | Активно · заменено · истекло |
Доверие | Извлечённый текст | Директива · утверждение · заблокировано |
Захват | Стенограмма или хранение заметок | Проверенная по доказательствам запись решения |
Переносимость | Зависит от бэкенда | Обычный Git |
CommitLore намеренно уже. Это не общая система пользовательской памяти, архив разговоров или замена векторной базы данных.
Доказательства
Вопрос | Измеренный результат | Граница |
Изменил ли контекст уровня заявки повторное предложение в зарегистрированном исследовании? | 2,8% (16/580) с CommitLore против 18,8% (109/579) без | одна модель, один харнесс, сконструированные задачи |
Доставляла ли фильтрация жизненного цикла выведенные из эксплуатации записи в измеряемой активной проекции? | 0 выведенных из эксплуатации записей | заменённые записи присутствовали; истечение срока — нет |
Масштабируется ли индексированный поиск? | 496 мс p50 при 100 тыс. коммитов | резервный путь без индекса значительно медленнее |
Время построения индекса зависит от количества записей, а не коммитов: дорогостоящий проход выполняется один раз на запись, поэтому длинная история с небольшим числом записей строится быстрее, чем короткая, насыщенная записями.
Ограничение пути — это то, что не позволяет большой истории достичь модели. В корпусе #167 только 2 из 10 002 записей достигли модели:
маршрут | записи, видимые модели | релевантные записи | токены, видимые модели |
внедрить всё | 10 002 | 2/2 | 1 004 554 |
лексический top-k | 2 | 1/2 | 190 |
ограничение пути CommitLore | 2 | 2/2 | 335 |
Это измеряет экспозицию и полноту при фиксированном бюджете в две записи — не стоимость токенов, выставленную стоимость, точность или поведение агента. Один корпус, один запрос, одна зафиксированная модель эмбеддингов.
Исследование агента не устанавливает универсального эффекта модели. Доставка не является доказательством того, что модель прочитала или последовала записи.
Методы, полные таблицы, исключения и отрицательные результаты →
Ограничения, доверие и конфиденциальность
Захват — ассистируемый, а не детерминированный. Поддерживаемые навыки учитывают обычные запросы на коммиты, но ни один хост не сертифицирован для оценки каждого подходящего коммита.
Режим директивы по умолчанию — это не аутентификация. Он сопоставляет заголовок автора коммита, и любой, кто может написать коммит, может установить этот заголовок — поэтому
[directive]в режиме по умолчанию является метаданными политики, а не доказательством личности. Режим подписи дополнительно требует статуса проверки Git и совпадения в локальном для репозитория списке разрешённыхcommitlore.trustedSigner; отсутствующий, пустой или нечитаемый список разрешённых подписантов не авторизует никого, поэтому режим отказывает в закрытом состоянии.Guard — это экспериментальная рекомендация, а не страховочная сеть: точность 44,8% (95% доверительный интервал Уилсона 32,7%–57,5%), полнота 22,0% на корпусе из 417 решений. Пустой результат Guard не является вердиктом о безопасности.
Доставка тратит токены на каждый подходящий вызов инструмента. Хук перед редактированием срабатывает на
Read, а также наEdit,Write,MultiEditиNotebookEdit, поэтому он запускается гораздо чаще, чем агент редактирования делает коммиты. Каждое срабатывание тратит до бюджета полезной нагрузки — 800 токенов по умолчанию, изменяется с помощью--budget. Репозиторий без записей не тратит ничего, что означает, что это стоимость, которая появляется с внедрением, а не с установкой.Ответ может быть частичным. Полнота раскрывается; отсутствие в частичном результате не является доказательством того, что записи не существует. Покрытие всего репозитория, символьные якоря и интерактивный конструктор записей остаются открытыми: #32, #33.
Трейлеры коммитов путешествуют с клоном; заметки — нет. Git не загружает
refs/notes/*по умолчанию, поэтому запись вrefs/notes/commitloreотсутствует в обычном клоне, покаcommitlore initне настроит это зеркало.Нет размещённого бэкенда. Но как только сервер или хук возвращает контекст, хост обрабатывает этот контекст в соответствии со своей собственной политикой; CommitLore не контролирует этот поток данных.
Безопасность · Совместимость · Доказательства
Записи не считаются доверенными, пока не оценены. Сопоставление автора по умолчанию — это метаданные политики, а не аутентификация. Режим подписанной директивы требует проверки Git и локального для репозитория списка разрешённых подписантов; отсутствующий или нечитаемый список не авторизует никого. Полезная нагрузка, имеющая форму инъекции, не передаётся на маршруты, читаемые моделью.
Установщик CLI не может перезаписать хуки в репозиториях, о которых он не знает, а запущенные сессии хоста сохраняют загруженную среду выполнения. commitlore doctor называет оба состояния и их исправление, а commitlore upgrade сообщает, существует ли более новая версия.
Записи — это обычные трейлеры или заметки Git. Протокол 2.0 определяет жизненный цикл, уровни доверия, валидацию и совместимость.
Руководство для человека → · Нормативная спецификация →
Репозиторий публикует методы, исключения, неудачные измерения и случаи, когда исходный бенчмарк или диагноз был ошибочным.
Доказательства → · Самоаудит →
Документация
Участие в разработке
CONTRIBUTING.md описывает протокол записей, которому следует этот репозиторий, шлюз выпуска и способы воспроизведения доказательств.
Лицензия
MIT — см. 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