Searches knowledge base by title, tags, or content across all knowledge artifacts.
Search across learnings, knowledge base, retrospectives, and examples.
/search [query]
/search --tag [tag-name]
/search --type [learning|knowledge|retrospective|example]
/search --reindex
Check
LANGUAGEindocs/current.md. Ifth, translate output perreferences/language-guide.md. Seereferences/bash-helpers.mdfor detection snippet.
--reindex flag is presentRebuild the index:
bash scripts/build-index.sh "$PROJECT_ROOT"
if [[ ! -f .knowledge-index.json ]]; then
bash scripts/build-index.sh "$PROJECT_ROOT"
fi
Search title, summary, and tags for matching terms:
jq --arg q "$QUERY" '
.entries[] |
select(
(.title | ascii_downcase | contains($q | ascii_downcase)) or
(.summary | ascii_downcase | contains($q | ascii_downcase)) or
(.tags[] | ascii_downcase | contains($q | ascii_downcase))
)
' .knowledge-index.json
--tag)jq --arg tag "$TAG" '
.entries[] | select(.tags[] == $tag)
' .knowledge-index.json
--type)jq --arg type "$TYPE" '
.entries[] | select(.type == $type)
' .knowledge-index.json
## Search Results for "[query]"
Found [N] results:
| # | Title | Type | Tags | Path |
|---|-------|------|------|------|
| 1 | [title] | [type] | [tags] | [path] |
### [1] [Title]
> [summary snippet]
Path: `[path]`
Tags: [tag1], [tag2]
Show index statistics:
jq '{total: .total, types: .types, generated: .generated}' .knowledge-index.json
| Command | Purpose |
|---|---|
/mem | Capture learnings (indexed) |
/distill | Create knowledge entries (indexed) |
/example | Save code examples (indexed) |
/search | Search all knowledge (you are here) |