basemind-code-search

basemind-code-search is a skill for Claude Code from Goldziher/basemind. It costs 83 tokens per session (4,967 once invoked), scanned A, original, MIT.

A code-navigation tool that searches an indexed map of a codebase for symbols, definitions, references, callers, implementations, dependents, file outlines, and regular-expression matches.

In plain words
What is it for?
Use it to find where code is defined or used, see what calls a function, inspect a file's structure, and identify implementations or dependent code.
Why use it?
It helps answer structural code questions without opening whole files or sorting through irrelevant text matches.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the basemind plugin — 15 skills, 11 commands, 3 hooks shipped together

Good fit Use it to find where code is defined or used, see what calls a function, inspect a file's structure, and identify implementations or dependent code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldziher/basemind/basemind-code-search
Install

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.

Any agent
npx skills add Goldziher/basemind --skill basemind-code-search
Clone the repo
git clone --depth 1 https://github.com/Goldziher/basemind

Made for: Claude Code.

Or install basemind, the plugin that ships this one along with the rest of its 15 skills, 11 commands, 3 hooks.

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 basemind-code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldziher/basemind/basemind-code-search/github.svg)](https://agentmods.dev/skills/goldziher/basemind/basemind-code-search)
Your own site
<a href="https://agentmods.dev/skills/goldziher/basemind/basemind-code-search"><img src="https://agentmods.dev/badge/skills/goldziher/basemind/basemind-code-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 basemind-code-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldziher/basemind/basemind-code-search"><img src="https://agentmods.dev/badge/skills/goldziher/basemind/basemind-code-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,967 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00083 $0.04967
Opus 5.5 $0.00033 $0.01987
Sonnet 5.5 $0.00017 $0.00993
Haiku 4.5 $0.00008 $0.00497

Measured 4d ago against content hash 422c2f7ff934, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

basemind-code-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 4d 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.

.codex-plugin/skills/basemind-code-search/SKILL.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

basemind-code-search — navigate code without reading it

basemind pre-indexes the repo into a tree-sitter code map across 300+ languages. The code map (outline, symbols, refs) covers code only. code_grep also finds exact text in markdown, config and data files (Markdown, JSON, YAML, TOML, XML, CSV, INI). docs_search is for searching by meaning, and for PDFs, Office files, HTML and email (see basemind-documents). find_files lists the indexed files and the other files git tracks, not an untracked file the index leaves out.

Structural questions (where a symbol lives, what calls it, what shape a file has) resolve from the index in milliseconds and return paths, 1-based line numbers, and signatures, not file bodies.

The tools are always loaded: call them directly. Drop to raw shell only when no tool covers the question.

The discipline

  • code_outline before you open a file. A 1000-line file becomes a 30-line outline. Then code_read the one symbol or line span you need, not the file.
  • code_symbols instead of grep for a definition. It matches indexed symbol names and skips the comment, string and test-name noise.
  • code_refs instead of grepping call sites. Indexed call edges, not text matches.
  • code_grep instead of shelling out to ripgrep. It sweeps every indexed code, markdown, config and data file (a trigram filter skips code files that cannot match) and returns each hit's line and enclosing symbol. A file created since the last scan is not in it until the watcher or an index_rescan {"paths":[…]} indexes it, so a miss there is not proof of absence.
  • Do not re-read a mapped file once the outline answered the question.
  • The index follows your edits while a server, daemon or basemind watch runs: no rescan and no server reconnect after each one. If a result says stale or a new file is missing, run index_rescan {"paths":["src/store.rs"]} for that file; run index_rescan {} only when index_status reports an empty index, degraded or rescan_needed. Files under scan.extra_roots are not watched and paths skips them: refresh a changed one with a full pass (index_rescan {}, or basemind scan with no server). With only a standalone basemind watch there is no index_rescan and basemind rescan exits 3 on its lock: stop the watcher, rescan, restart it.
  • CLI only, with nothing watching: the index does not follow edits and shows no stale flag. Run basemind rescan <path>… for the files you edited before querying them.

Read the full file on GitHub · 243 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. 4d ago Changed · +3 lines 422c2f7ff934
  2. 6d ago Changed · -1 lines e5736ad94c6a
  3. 11d ago Changed 0d96389594ee
  4. 12d ago Changed · +18 lines 904536bda146
  5. 14d ago Changed · +75 lines b2d86cc9c1da
  6. 15d ago Changed bfd64612c4f4
  7. 16d ago Changed · +4 lines aaef11c76132
  8. 17d ago Changed · +12 lines cd6aa1ea0050
  9. 18d ago Changed · +29 lines 813ea8b5069f
  10. 19d ago First seen · 103 lines · 83 tokens per session scan A 26ad999147bc

Subscribe to this mod's changes

basemind-code-search is a skill published in the GitHub repository Goldziher/basemind (126 stars, last pushed today), licensed MIT. It adds 83 tokens to every session and 4,967 once invoked, about $0.0003 per session on Opus 5.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.

Related

basemind-code-search compared with skills from other repositories

basemind-code-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
basemind-code-searchGoldziher/basemindSkill126todayMITA83Claude Code
haiku-ragggozad/haiku.ragSkill674todayMITA76Claude Code
lessonCortexReach/memory-lancedb-proSkill4.4k2d agononeA45Claude Code, Codex
veladbhq-uk/vela-skillSkill63d agoMITA213Claude Code
granite-pay-per-callnirholas/ibm-x402-mcpSkill923d agoApache-2.0A49Claude Code
plex-mcpsandraschi/plexmcpSkill23d agoMITA64Claude Code
coff0xc-blockchain-securityCoff0xc/coffee-skillSkill1817d agononeA88Claude Code, Codex