kb-search
Skill1 starsChanged 32 days agoMITView on GitHub
Use when the user asks about past work in any Claude Code or Codex session — "how did I fix…", "what did I decide about…", "last time we…", "did I already…", "find the session where…" — or when an earlier session may already hold the answer (an error seen before, a past design choice, a command that worked). Searches the personal sessions KB with the `kb` CLI at very low token cost.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- GoogleCloudPlatform/knowledge-catalog-labstheir own version, first seen Oct 13, 2026
- Azure/azure-sdk-toolstheir own version, first seen Oct 13, 2026
- EthanReedLabs/suldetheir own version, first seen Oct 8, 2026
- dingshuxin353/ai-knowledge-vaulttheir own version, first seen Sep 8, 2026
- gumbertnntu-cloud/hermes-kb-searchtheir own version, first seen Jun 24, 2026
- vakovalskii/ontoshiptheir own version, first seen Jun 15, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- GoogleCloudPlatform/knowledge-catalog★ 9.6ksame name
- Azure/azure-sdk-tools★ 134same name
- vakovalskii/ontoship★ 125same name
- GoogleCloudPlatform/knowledge-catalog-labs★ 103same name
- EthanReedLabs/sulde★ 99same name
- dingshuxin353/ai-knowledge-vault★ 17same name
- gumbertnntu-cloud/hermes-kb-search★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use distinctive words: error text, file names, service or tool names.
- Very specific: line 19
No match: try synonyms or fewer words.
- Very specific: line 24
Never cat, Read or rg whole files under sessions/, raw/ or memories/.
- Very specific: line 27
When you report a finding, cite it as short [turn N] so the user can open it.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
kb-search
kb searches every synced Claude Code and Codex session and memory file (all projects, all machines). Go in this order and stop as soon as you have the answer.
- Project page: for a question about one project,
kb page <project> [--section "Key decisions"]first: its state, decisions, files, errors → fixes and open threads, each with the short id of its session.kb pagelists the pages; weekly retros are named like2026-W41. - Find:
kb find "<2-5 distinctive words>" [--project NAME] [--agent claude|codex] [--since 30d] [--tag TAG] [--role user]- Matching pages come first (
page date kind name title), then memories (memory date agent project name; read one withkb memory <ref>, the ref is in brackets), then one line per session:short date agent project title · «snippet» [turn N].shortis the 8-character session id (the last 8 characters, no dashes). Lines with↳parentare subagent transcripts. - Use distinctive words: error text, file names, service or tool names. Add filters when you know them.
- The exact phrase ranks first.
--role user --no-subagentssearches only the user's own messages (what they asked or corrected). - With semantic search on (
kb embed --status),kb findalso matches paraphrases and other languages;-vsays on stderr when it fell back to keywords. Hostcloudholds Claude Code cloud sessions. - No match: try synonyms or fewer words.
kb recent --project NAMElists the latest sessions.
- Matching pages come first (
- Summarize:
kb summary <short>on the 1–3 best hits: summary, decisions, outcome, files, PRs, subagents. - Read only what you need:
kb show <short> --turn N --around 1orkb show <short> --grep "regex".--greptakes a regular expression (case-insensitive, up to 5 matching turns): write\(for a literal parenthesis. Output stops at--max-chars(default 4000).
Rules:
- Never
cat,Readorrgwhole files undersessions/,raw/ormemories/. Usekb. - Memories are the notes agents kept between sessions (user preferences, project facts, feedback).
kb memory --project NAMElists one project's; a memory names the session it came from (kb summary <short>). - When you report a finding, cite it as
short [turn N]so the user can open it. - A result shows what was true on its date. When two results disagree, the newer one wins. Before you act on an old
result (a path, a command, a fix), check it against the current code. Page bullets end with the date a session last
confirmed them (
(a1b2c3d4 · 2026-10-07)); a page's "History" holds superseded and unconfirmed facts. - The KB lags a little: a session is synced after it has been idle 15 minutes.
kb sync --now --no-summariessyncs now and is fast (plainkb sync --nowalso writes summaries and can take minutes).kb statusshows the last sync and its error, if any. - Reading needs no write access, except to build a missing or outdated index. If
kbanswersindex not built yet; run: kb reindex, run that once from a shell that can write to the KB folder. - All flags:
kb <command> --help.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

