Borrowing it
Nothing to install: this file belongs to opensesh/karimo-overview. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/opensesh/karimo-overview/main/.claude/commands/bos-search.mdgit clone --depth 1 https://github.com/opensesh/karimo-overviewWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/opensesh/karimo-overview/bos-search)<a href="https://agentmods.dev/commands/opensesh/karimo-overview/bos-search"><img src="https://agentmods.dev/badge/commands/opensesh/karimo-overview/bos-search/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/opensesh/karimo-overview/bos-search"><img src="https://agentmods.dev/badge/commands/opensesh/karimo-overview/bos-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00706 |
| Opus 5 | $0.00000 | $0.00353 |
| Sonnet 5 | $0.00000 | $0.00141 |
| Haiku 4.5 | $0.00000 | $0.00071 |
Grade A, and why
bos-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/bos-search - Search Codebase Context
Search the BOS context cache using semantic similarity.
Usage
/bos-search "your natural language query"
Arguments
| Argument | Description |
|---|---|
query |
Natural language search query |
--top-k N |
Number of results to return (default: 5) |
--threshold N |
Minimum similarity 0-1 (default: 0.5) |
--stats |
Show database statistics instead of searching |
Examples
# Search for chat-related context
/bos-search "how does chat streaming work"
# Get more results with lower threshold
/bos-search "database services" --top-k 10 --threshold 0.3
# Check database status
/bos-search --stats
Output
Returns ranked results with:
- Title: Section heading
- URI:
bos://context/...identifier - Layer: L0 (overview), L1 (section), or L2 (source)
- Similarity: Match percentage (higher is better)
- Content: Excerpt from the matching section
Prerequisites
Before first use, initialize the search database:
# 1. Generate context files
bunx tsx .bos/scripts/generate-context.ts
# 2. Initialize SQLite database
bunx tsx .bos/scripts/init-db.ts
# 3. Set your Gemini API key in .env.local
echo "GOOGLE_GENERATIVE_AI_API_KEY=your-key-here" >> .env.local
# 4. Embed context (requires API key)
GOOGLE_GENERATIVE_AI_API_KEY=your-key npx tsx .bos/scripts/embed-context.ts
Environment Variables
| Variable | Purpose |
|---|---|
GOOGLE_GENERATIVE_AI_API_KEY |
Google AI API key for embeddings (required) |
GEMINI_API_KEY |
Alternative API key name |
Get an API key: Visit https://aistudio.google.com/app/apikey to create a free Gemini API key.
Implementation
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 104 lines · 0 tokens per session scan A f9cb63fa20b0
bos-search is a command published in the GitHub repository opensesh/karimo-overview (11 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 706 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
context
A project-context command that manages a .context directory containing decision notes, session logs, and history. It helps keep a record of why changes were made across Git branches and commits.
cozempic
Diagnose and prune bloated Claude Code context. Run to slim down the current session before compacting or resuming.
dashboard
Phase 3 monitoring — System health, execution insights, and velocity analytics.
doctor
Check the health of a KARIMO installation, identify issues, and provide actionable recommendations.
run
Execute an approved PRD using feature branch workflow (v7.0). This command generates briefs, auto-reviews them, allows user iteration, and then orchestrates execution.
merge
Consolidate feature branch changes and create final PR to main. This completes the v5.0 feature branch workflow after all task PRs have been merged.