karimo-overview: Command for Claude Code

.claude/commands/bos-search.md

bos-search is a command for Claude Code from opensesh/karimo-overview. It costs 0 tokens per session (706 once invoked), scanned A, original, Apache-2.0.

A command for finding relevant sections of a codebase's saved context by asking a question in everyday language.

In plain words
What is it for?
Use it to search topics such as chat streaming or database services, adjust the number and similarity of results, or view the search database's statistics.
Why use it?
It reduces the need to remember exact file names or search terms when looking for how part of a codebase works.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is opensesh/karimo-overview's own configuration. It tells Claude Code how to work on karimo-overview itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything karimo-overview configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/opensesh/karimo-overview/main/.claude/commands/bos-search.md
Clone the repo
git clone --depth 1 https://github.com/opensesh/karimo-overview

Made for: Claude Code.

Wrote 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.

agentmods badge for bos-search

README.md
[![agentmods](https://agentmods.dev/badge/commands/opensesh/karimo-overview/bos-search/github.svg)](https://agentmods.dev/commands/opensesh/karimo-overview/bos-search)
Your own site
<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.

agentmods 80×15 button for bos-search

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 706 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash f9cb63fa20b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

.claude/commands/bos-search.md · 104 lines

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

Read the full file on GitHub · 104 lines

Changes

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.

  1. 9d ago First seen · 104 lines · 0 tokens per session scan A f9cb63fa20b0

Subscribe to this mod's changes

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.