Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Git-native decision memory for coding agents: only the decisions still in force for the edited path
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
作者没有在注册中心列出安装信息。请查看下方作者的 README。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 MongLong0214 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.2.0)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
CommitLore
Stop re-reviewing the same bad idea.
Decision authority for coding agents, owned by Git.
Keep constraints, rejected alternatives, and warnings in Git — then deliver only what is still in force, so an agent is not handed a decision the repository already reversed.
No hosted memory. The repository owns the record.
English · 한국어 · 日本語 · 简体中文
Install once. Then initialise each repository where you want it to work.
curl -fsSL https://raw.githubusercontent.com/MongLong0214/commitlore/v1.7.5/install.sh | sh -s v1.7.5
Prefer to read the installer first?
curl -fsSLO https://raw.githubusercontent.com/MongLong0214/commitlore/v1.7.5/install.sh
sh install.sh v1.7.5
git clone --depth 1 --branch v1.7.5 https://github.com/MongLong0214/commitlore node commitlore/dist/commitlore.mjs --version
It installs a pinned source checkout and a wrapper that runs node /dist/commitlore.mjs — no compiled download, no build step.
The code survives. The judgment doesn't.
An agent proposes an approach. Your team rejects it because of a non-obvious constraint. The final code preserves the outcome, but usually not why the alternative was rejected. A later agent sees only the code and proposes the same idea again.
CommitLore keeps that judgment beside the code.
| Behavior | Product path | |
|---|---|---|
| Captures | Preserves constraints, rejected alternatives, and warnings that a diff cannot show. Candidates are checked against the session transcript and the staged diff. | commitlore capture |
| Preserves | Stores accepted records in Git trailers or notes instead of a hosted memory database. | commit hooks · refs/notes/commitlore |
| Tracks lifecycle | Keeps active, superseded, and expired decisions distinct. | commitlore stale |
| Scopes | Selects decisions for the path an agent is about to edit. | commitlore context |
| Grades trust | Delivers records as directives, claims, or withheld content. | default / signed mode |
| Delivers | Gives supported agents current context before an edit. | plugin hook · MCP |
Most commits should carry no record. CommitLore is for judgment the code cannot preserve, not for narrating every change.
macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/MongLong0214/commitlore/v1.7.5/install.sh | sh -s v1.7.5
Windows:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/MongLong0214/commitlore/v1.7.5/install.ps1))) v1.7.5
Requires Node.js 22.23.2+ and Git. The script checks both before it writes anything.
Claude Code:
/plugin marketplace add MongLong0214/commitlore
/plugin install commitlore@commitlore
Codex:
commitlore plugin install-codex
The plugin puts no commitlore on PATH, so the commands below need the CLI install as well. The installers also detect and wire supported MCP hosts where they can do so safely; the exact matrix is below.
cd your-repository
commitlore init commitlore context .
Start a new agent session after installing or updating a plugin: a running session keeps the runtime it loaded.
Then work and commit normally. On supported skill integrations, CommitLore is considered during ordinary commit requests and stays silent when there is nothing worth preserving. You do not need to name CommitLore on every commit.
Want accepted records to stage without a per-record prompt? The repository can opt in once with commitlore auto on. That policy is repository-owned and applies to the team, so it is not silently enabled by this page.
Before editing src/pricing.ts:
commitlore: active records for src/pricing.ts
Limit [claim] r-price01 a1b2c3d4 calculatePrice owns final checkout pricing only
Ruled-out [claim] r-price01 a1b2c3d4 Reuse it for admin quotes | eligibility and rounding semantics differ
[claim] means "weigh this as information." A repository can opt into the stronger signed-authority mode. Delivery gives the agent context; it does not block the edit.
Security model →
The repository should own the judgment behind its code.
CommitLore stores records in ordinary Git trailers and notes, so they branch, merge, clone, review, and survive provider changes with the code they explain.
SQLite is only a rebuildable index. Delete it and Git still holds the record.
A general memory or retrieval system asks:
Which old text looks related?
CommitLore asks:
Which recorded decisions still apply to this path now?
A superseded decision can be highly relevant and still be wrong as current guidance. Relevance and authority are different questions.
Most commits carry no record. The commit hook validates a record when one is present; it does not invent one.
An existing hook is not overwritten. commitlore init honours core.hooksPath, moves any hook already installed to .commitlore-chained, and calls it first; commitlore hooks uninstall puts it back.
| Host | Pre-edit delivery | Verified capture workflow | Deterministic every-commit capture |
|---|---|---|---|
| Claude Code | Automatic through the plugin | Available through the plugin skill | Not certified |
| Codex | Automatic through the plugin | Available through the plugin skill | Not certified |
| Hermes | Available after commitlore hermes install | Available after host install | Not certified |
| Gemini CLI, Cursor, Windsurf, opencode | MCP delivery where the host uses the registration | Procedure exposed over MCP | No |
AGENTS.md hosts | Procedure only | Procedure only | No |
"Available" means the prepare → verify → stage workflow exists. It does not mean every eligible commit is assessed automatically.
Users on supported skill hosts do not need to say "record this in CommitLore" on every commit. The remaining limitation is host initiation, not a required per-record user command.
A squash merge replaces a branch's commits with one new commit, and that commit does not carry the branch's trailers. If your repository merges with the squash button, a record made on a branch is dropped by the merge unless something carries it onto the commit that squashed it.
Two paths cover that, and one of them needs a one-time setup:
| How the squash happens | What carries the record | Setup |
|---|---|---|
git merge --squash locally | The installed prepare-commit-msg hook, from SQUASH_MSG | None — commitlore init already did it |
| GitHub's Squash and merge button | The action/preserve GitHub Action | The workflow below |
GitHub performs that merge on its own servers, where no local git hook runs at all, so the local hook cannot see it. The Action is the only place that has what it needs at that moment: the pull request, its commits, and the commit they were squashed into.
Add .github/workflows/commitlore-preserve.yml:
name: CommitLore squash inheritance
on: pull_request_target: types: [closed]
permissions: contents: write # the one push to refs/notes/commitlore
concurrency: group: commitlore-notes cancel-in-progress: false
jobs: preserve: if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps:
ref: ${{ github.event.pull_request.base.ref }} fetch-depth: 0
dist/ is committed (ADR-0011), so nothing needs building.
Two rules for whoever edits this next, because pull_request_target runs with a writable token: never check out the pull request's head here, and never execute anything reachable from refs/commitlore/pr-head. The fork's commits arrive as data to read trailers from, not as code to run.
commitlore doctor reports whether this is switched on, under squash inheritance. It says so before a record is lost; squash conservation is the row that reports records already gone.
If you merge with
只显示了开头部分;其余内容请在仓库中阅读