/knowledge:search <query>from knowledge
Search the knowledge vault by keyword. Returns ranked results with scores, summaries, and matched keywords.
Ships in knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scripts path: The Python scripts live in the knowledge-tools plugin. Resolve the path with:
KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1)
Search the semantic index built by /knowledge:index. Finds memory files by
keyword overlap between your query and each file's indexed keywords and summary.
For simple lookups where keyword matching is sufficient:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/index-vault.py search '$ARGUMENTS'")
Results are ranked by relevance score:
For better recall, use a Haiku subagent to expand the query into synonyms and related terms before searching. This catches files that use different vocabulary for the same concepts.
Task(
subagent_type="general-purpose",
model="haiku",
prompt="Expand this search query into additional search terms.
Query: '<query>'
Generate 10-20 single-word synonyms, related terms, and alternate
phrasings that someone might use when writing about this topic.
Include: technical synonyms, informal equivalents, abbreviations,
and closely related concepts.
Return ONLY a comma-separated list of terms, nothing else.
Example: for 'voice drift detection' you might return:
tone,style,register,accent,shift,change,deviation,degradation,erosion,
monitor,track,measure,signal,marker,indicator,fingerprint,linguistic"
)
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/index-vault.py search '$ARGUMENTS' --expand '<haiku-output>'")
Expanded terms match at reduced weight (0.6x for keywords, 0.3x for summary) so they boost recall without overwhelming exact matches.
For complex or ambiguous queries, add a reranking step after expansion. This is the highest-recall search mode — use it when you really need to find something.
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/index-vault.py search-json '$ARGUMENTS' --expand '<terms>'")
Task(
subagent_type="general-purpose",
model="haiku",
prompt="Given the search query '<query>' and these candidate results:
<paste search-json output>
Score each candidate 0-10 for semantic relevance to the query.
Consider: Does the summary suggest the file actually answers the query?
Could the file contain useful context even if keywords don't match exactly?
Return results sorted by your score, format:
SCORE: <0-10> | PATH: <path> | REASON: <why relevant>"
)
If a search didn't surface a file you expected, log it for evaluation:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/index-vault.py miss 'query terms' 'expected/file/path.md' 'optional reason'")
Review the miss log to improve keywords:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/index-vault.py misses")
The vault index covers archival memory (markdown files). The journal covers the change log — why beliefs exist, decisions made, corrections received.
If your vault search doesn't find what you need, or if you're looking for the reasoning behind a belief rather than the belief itself, search the journal:
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py search '$ARGUMENTS'")
To look up a specific provenance reference ([j:42] in AGENTS.md/CLAUDE.md or a vault file):
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/journal.py get 42")
identity drift, slack webhook)how does voice change over time)why do we avoid blocking?)/knowledge:index scanFor semantic similarity search (beyond keyword matching), use /knowledge:enrich.
This runs vector embedding search alongside keyword search and optionally
filters results through a Sonnet relevance judgment.
Requires: sentence-transformers (pip install sentence-transformers)
Optional: ANTHROPIC_API_KEY (for Sonnet filtering)
$ARGUMENTS is passed as the search query.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (agiterra/knowledge-claude-code) — no native marketplace selected
npx claudepluginhub p/agiterra-knowledge17 skills in this plugin
/associateAssociate — Fast Keyword AssociationsLightweight keyword-only association search — fast (<100ms), no vector embeddings, no LLM. Returns quick context associations from the knowledge vault./bootKnowledge BootFull boot sequence — restores session state and memory continuity after context compaction./calibrateCalibrate — Compression Test BatteryMeasure decompression fidelity after compaction. Creates or runs a compression test battery tailored to the knowledge vault.Other plugins' skills for the same job