Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/helweg/open-codebase-index/codebase-searchnpx skills add Helweg/open-codebase-index --skill codebase-searchgit clone --depth 1 https://github.com/Helweg/open-codebase-indexWhat 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 | $0.00037 | $0.00464 |
| Opus 5 | $0.00018 | $0.00232 |
| Sonnet 5 | $0.00007 | $0.00093 |
| Haiku 4.5 | $0.00004 | $0.00046 |
Grade A, and why
codebase-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 2d 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.
What it actually says
Codebase Search Skill
Use this skill when you need local repository knowledge before web lookup.
Core workflow
- Run
index_statuswhen index readiness or freshness is unknown. - Use
codebase_context(query, ...)before shell search, grep, or broad file reads. Passsymbolfor an authoritative definition orfrom+tofor a dependency path. - Use
codebase_peek(query, ...)for specialized metadata-only conceptual lookup. - Use
codebase_search(query, ...)when you need full code context. - Use
implementation_lookup(query)for known-symbol definitions andcall_graph/call_graph_pathfor execution flow. - Use
find_similar(code)for duplicate patterns and refactor planning.
If results are weak, run index_status (check readiness) and index_codebase.
Tool Priority
codebase_contextas the preferred first repository tool and unified router.codebase_peekfor specialized discovery (fastest, cheap tokens).codebase_searchfor exact implementation review.find_similarfor pattern matching and duplication.call_graphandcall_graph_pathfor execution flow.index_codebase(force/estimate/verbose) for first-time or stale indexes.index_status,index_health_check,index_metrics,index_logsfor operational checks.
Suggested Commands
codebase_peek("payment processing flow")codebase_search("payment processing flow")call_graph("chargeCard", "callees")find_similar("function validate(data)")implementation_lookup("validate")
Additional Notes
- Use
grepfor exact identifiers and tiny, deterministic lookups. - Use
websearchonly when local tools return no results and docs are likely missing. - Prefer
codebase_peekbeforecodebase_searchto avoid high token usage.
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.
- 2d ago First seen · 44 lines · 37 tokens per session scan A 01b7766bf38e
codebase-search is a skill published in the GitHub repository Helweg/open-codebase-index (183 stars, last pushed 3d ago), licensed MIT. It adds 37 tokens to every session and 464 once invoked, about $0.0002 per session on Opus 5. 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 skills, from other repositories
gno
Search local documents, files, notes, and knowledge bases. Index directories, search with BM25/vector/hybrid, get AI answers with citations. Use when user wants to search files, find documents, query notes, look up information in local folders, index a directory, set up document search, build a knowledge base, needs…
cocosearch-review-pr
Use when reviewing a GitHub PR or GitLab MR by URL. Fetches diff and metadata via API, then uses CocoSearch for blast radius analysis, dependency impact, pattern consistency, and test coverage assessment. Read-only by default; optionally pushes findings back as inline PR/MR comments after your confirmation.
cocosearch-add-language
Use when adding support for a new programming language or config format to CocoSearch. Guides through all paths (handler, symbol extraction, context expansion) with registration checklists. For grammar handlers, use cocosearch-add-grammar.
cocosearch-add-extractor
Use when adding a dependency extractor for a language or grammar. Guides through pre-checks, extractor implementation, optional module resolver, tests, and registration. Enables deps tree, deps impact, and dependency-enriched search for the target language.
cocosearch-add-grammar
Use when adding a grammar handler for domain-specific file formats that share a base language extension (e.g., GitHub Actions within YAML). Guides through YamlGrammarBase inheritance, content validation, separator spec, metadata extraction, tests, and registration.
cocosearch-commit
Use when committing changes — analyzes staged (or unstaged) diffs with CocoSearch semantic search and dependency impact to generate comprehensive Conventional Commit messages. Reviews changes thoroughly, then asks user to approve, edit, or abort the commit.