Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Team knowledge compiled from your coding agents' sessions and pull requests, every entry cited.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"crewlore": {
"command": "uvx",
"args": [
"crewlore",
"serve",
"--repo",
"your-value"
]
}
}
}在终端中运行这条命令
claude mcp add crewlore -- uvx crewlore serve --repo your-value这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"crewlore": {
"command": "uvx",
"args": [
"crewlore",
"serve",
"--repo",
"your-value"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"crewlore": {
"type": "stdio",
"command": "uvx",
"args": [
"crewlore",
"serve",
"--repo",
"your-value"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 srijansk 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.5.3)于15天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Your coding agents keep relearning what your team already figured out.
crewlorereads the sessions your agents already produce, and your repo's pull requests, pulls out the decisions, procedures and gotchas, and writes them into a plain-text knowledge book inside your repo. Every entry quotes the exact line it came from, and records whether the team adopted it or tried it and declined. Runs on your machine with your own model key.
Sixty seconds on what it does and how it is used:
https://github.com/user-attachments/assets/b16cb272-da48-4756-89ba-1cc626629e0c
The same thing in a terminal. The recording below is the bundled demo, uv run python scripts/demo.py --step, which needs no API key: a handful of synthetic sessions compiled into a book, including one claim the team tried and declined.
pipx install crewlore
You need: Python 3.10 or newer; a model key (ANTHROPIC_API_KEY or OPENAI_API_KEY) or a local OpenAI-compatible model; the GitHub CLI (gh auth login) if you want to compile pull requests; uv only for the no-key demo below.
Two ways in, depending on where your team's knowledge currently lives.
You already use Claude Code. Point lore at the transcripts it writes to disk. By default it reads only this repo's own transcripts, never the other projects on your machine.
cd my-repo
export ANTHROPIC_API_KEY=... # or OPENAI_API_KEY, or a local model in .lore/config.yaml lore init # create .lore/ in your repo lore watch # read this repo's transcripts, scrub secrets, compile, prune — on an interval lore query "billing webhook" # ask the knowledge layer anything, anytime
You have a repo but no sessions yet. Compile its pull-request threads instead. Coding agents write much of their reasoning in PR descriptions and reviews — what they tried, why it failed, which constraint they hit — so a repo nobody has run an agent in locally already has a knowledge layer waiting:
cd my-repo
export ANTHROPIC_API_KEY=... lore init lore import-prs owner/repo # closed PRs by default, agent-authored only; uses your gh login, stores no token lore query "billing webhook"
Either way, commit .lore/ and your teammates inherit the book on their next git pull. Its own .gitignore keeps raw transcripts, raw PR exports, the extraction cache and usage counters out of git.
Trouble installing?
If pipx fails with Broken Python installation, platform.mac_ver() returned an empty value, your default Python is a broken install (sometimes seen with very recent Homebrew Python builds). This is about the interpreter pipx uses, not the package — pin a known-working one:
pipx install --python python3.13 crewlore
To make pipx default to Python 3.13 going forward: export PIPX_DEFAULT_PYTHON=$(which python3.13).
git clone https://github.com/srijansk/crewlore.git
cd crewlore && uv run python scripts/demo.py
The demo runs the whole loop on bundled synthetic sessions and prints the compiled book, a query against it, and three checks. It is a demonstration of the mechanism on toy data, not a benchmark.
lore install # the /lore skill, for the assistants found on this machine
lore install --project --always-on # into this repo, plus a short block in CLAUDE.md / AGENTS.md lore install --project --hooks # plus Claude Code hooks: a file's claims as it is read and edited
lore query before changing code in a repository that has .lore/, to treat not adopted claims as declined work, to weigh a claim like a teammate's comment rather than an instruction, and to report back with lore feedback. Claude Code, Cursor and Gemini CLI each get a skill directory; Codex reads the cross-framework Agent Skills directory (~/.agents/skills/, or .agents/skills/ in the repository with --project).CLAUDE.md, AGENTS.md, GEMINI.md), or an always-apply rule in .cursor/rules/ for Cursor.lore query would. A claim a reader has corrected arrives marked corrected, with its note. The hooks stay silent when there is nothing to add and exit 0 whatever happens, so a teammate without crewlore is never blocked; after a compaction the shown scopes come up again.--force overrides), and lore uninstall removes only marked files, the marked block and crewlore's own hook entries.lore serve, see docs/mcp.md.Or install it as a Claude Code plugin. In a Claude Code session:
/plugin marketplace add srijansk/crewlore
/plugin install crewlore@crewlore
The plugin is the same /lore skill (invoked as /crewlore:lore) and the same three hooks, generated from the installer's own text, so the plugin and lore install --hooks are two ways to the same files: pick one, since with both Claude Code runs each hook twice. The plugin bundles no Python; the skill and the hooks call the lore command, so pipx install crewlore is still needed on the machine. Each crewlore release bumps the plugin's version; /plugin update crewlore@crewlore fetches it; restart Claude Code or run /reload-plugins to load it.
Raw, messy sessions go in. Out comes a claim: one reusable thing the team learned, with four parts.
decision, procedure, gotcha, or style rule. #event- for a transcript, path:line when a PR review comment supplies one). The compiler checks every quote against the source and drops any claim whose quote does not match, so the book never contains a citation that cannot be found.current, or not_adopted when the team tried the thing and declined it.`[gotcha]` · *services/billing*
Billing webhook handler lacks an idempotency check, causing duplicate charges when Stripe retries webhooks.
Do — dedupe on the Stripe idempotency key before processing.
> *anchor*
ses_1#event-3— "the handler has no idempotency check, so when Stripe retries a webhook the charge is processed again."
Declined work is recorded as declined. When a session or pull request shows an approach was tried and not adopted, the claim says so, and its action says what to do instead:
`[decision · not adopted]` · *services/billing*
Storing the Stripe idempotency key in Redis was proposed and rejected in review because the check has to run inside the database transaction.
Instead — keep the key in the same transaction as the charge.
> *anchor*
services/billing/webhook.py:88— "Don't put the key in Redis. Must be inside the transaction."
Why this matters: a memory schema that can only say "X" turns "we tried X and declined it" into a confident assertion of X — fluent, correctly quoted, and wrong about the world. The measurement behind this design is in the study below.
Claims roll up into a knowledge book at .lore/knowledge/README.md, grouped by area and committed to your repo alongside your code:
# Team knowledge (compiled by crewlore)
ses_1#event-3: "the handler has no idempotency check, so when Stripe retries a webhook the charge is processed again."services/billing/webhook.py:88: "Don't put the key in Redis. Must be inside the transaction."make migrate before every deploy.
docs/examples/pydantic-ai-prs/ is lore import-prs pydantic/pydantic-ai --limit 100, run on 2026-10-09 against the public pydantic/pydantic-ai repo (20k+ ⭐) with the default model, on a machine that had never run an agent in it. Of the last 100 closed pull requests, 24 were written by a coding agent: 18 merged, 6 closed without merging. They compiled into 130 claims, 15 of them marked not adopted, carrying 173 anchors. The fidelity gate dropped none of the model's proposals, and an independent re-check of every anchor against the committed threads found none that fail to resolve. The scrubbed source threads are in the example, so every anchor can be followed to the event it quotes.
One claim from a merged pull request, where an alternative was tried and turned down inside the review:
`[decision · not adopted]` · *pydantic_ai_slim/pydantic_ai/models*
Unified prompt caching (
ModelSettings.cache/Caching) stays opt-in. A default-on variant (cachedefaulting to True on models withsupports_cache) was tried and not adopted, because the maintainer deferred default-on caching to v3.
Instead — do not default
cacheto True; leave caching off unless the user setscache, usesCaching(), or sets a provider-specific cache setting. Revisit default-on only for v3.
> *anchor*
pr_pydantic__pydantic-ai__7560#event-65— "Per maintainer decision, caching stays off unlesscache(or theCachingcapability) or a provider-specific cache setting asks for it; turning it on by default waits for v3."
The example records no conflicts. The detector flags a disagreement only with evidence of one: a claim marked not adopted beside a current one, or one claim forbidding what another prescribes. Three claims that all forbid touching the repository's .github/ directory agree, so they are not reported as one. The blind spot that leaves is listed under limits below.
The older snapshot, [docs/examples/pydantic-ai/](https://github.com/srijansk/crewlore/tree/main/docs/examples/pydan
只显示了开头部分;其余内容请在仓库中阅读