Codebase Search
Helweg/open-codebase-index
Chooses the right retrieval tool for code questions: compact context for unfamiliar repos, direct lookup for known symbols, call graphs for relationships and grep for exhaustive matches.
Builds or refreshes the basemind code index from the command line, for when basemind reports no index or its MCP server is not running.
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add Goldziher/basemind --skill basemind-scan -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Goldziher/basemind basemind-scan --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Goldziher/basemind.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/basemind-scan .claude/skills/basemind-scan && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "basemind-scan" agent skill from https://github.com/Goldziher/basemind/tree/main/skills/basemind-scan into .claude/skills/basemind-scan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "basemind-scan", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Goldziher/basemind/tree/main/skills/basemind-scanType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Goldziher/basemind --skill basemind-scan -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Goldziher/basemind basemind-scan --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/basemind.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/basemind-scan .agents/skills/basemind-scan && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "basemind-scan" agent skill from https://github.com/Goldziher/basemind/tree/main/skills/basemind-scan into .agents/skills/basemind-scan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "basemind-scan", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Goldziher/basemind --skill basemind-scan -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Goldziher/basemind basemind-scan --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/basemind.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/basemind-scan .cursor/skills/basemind-scan && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "basemind-scan" agent skill from https://github.com/Goldziher/basemind/tree/main/skills/basemind-scan into .cursor/skills/basemind-scan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "basemind-scan", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Goldziher/basemind.git --path skills/basemind-scan--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Goldziher/basemind --skill basemind-scan -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Goldziher/basemind basemind-scan --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/basemind.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/basemind-scan .gemini/skills/basemind-scan && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "basemind-scan" agent skill from https://github.com/Goldziher/basemind/tree/main/skills/basemind-scan into .gemini/skills/basemind-scan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "basemind-scan", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Goldziher/basemind basemind-scanInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Goldziher/basemind --skill basemind-scan -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Goldziher/basemind.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/basemind-scan .github/skills/basemind-scan && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "basemind-scan" agent skill from https://github.com/Goldziher/basemind/tree/main/skills/basemind-scan into .github/skills/basemind-scan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "basemind-scan", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Goldziher/basemind --skill basemind-scan -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Goldziher/basemind basemind-scan --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Goldziher/basemind.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/basemind-scan .opencode/skills/basemind-scan && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "basemind-scan" agent skill from https://github.com/Goldziher/basemind/tree/main/skills/basemind-scan into .opencode/skills/basemind-scan/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "basemind-scan", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
basemind-scanBuilds or refreshes the basemind code index from the command line, for when basemind reports no index or its MCP server is not running.
Basemind answers code-map questions from an index kept in a machine-wide cache, keyed by workspace, and basemind scan is the command that builds it. This skill runs that scan through the CLI, so it still works when the MCP server (basemind serve) is down. From the repository root it does a full working-tree scan, or you can give a path to scope it incrementally.
The binary is looked up on PATH first, then in the plugin's cache folder, then from a local cargo build. The scan writes outside the repository, takes seconds for small repos and about 22 s for a large TypeScript monorepo, and skips files it cannot extract. A running server holds the store lock, so the CLI scan fails in that case and the MCP rescan mode is used instead. Extra directories can be indexed through scan.extra_roots in basemind.toml, but only with the BASEMIND_ALLOW_EXTRA_ROOTS opt-in.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2f6da31. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
cargoFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
BASEMIND_ALLOW_REPO_CREDENTIALSFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Basemind Index Scan loads about 997 tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 503 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
redential directories (`.ssh`, `.aws`, `.gnupg`, `/etc`) arekey files (`.env*`, `.aws/`, `.ssh/`, `.npmrc`, `*.pem`, `*.key`, ...) are nevercan] floor_allow` opts a class back in (`.env.*` also matches `.env.example`), but aAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Goldziher/basemind at commit 2f6da31, republished under its MIT licence (© Goldziher). 503 words, ~997 tokens.
.claude/skills/basemind-scan/SKILL.md (or your agent's skills folder).basemind answers code-map questions from an index in a machine-global cache (Linux
~/.local/share/basemind/, macOS ~/Library/Application Support/basemind/; override
BASEMIND_DATA_HOME), keyed by workspace. That index is built by
basemind scan. This skill runs the scan via the CLI, so it works even when the MCP server
(basemind serve) is not running — which is exactly the situation when basemind reports
"no index" or "no indexed files", or when MCP tools aren't loaded in the session.
From the repository root:
basemind scan # full working-tree scan
basemind scan <path> # scope to a path (incremental)Finding the binary (in order of preference):
basemind on PATH.${XDG_CACHE_HOME:-~/.cache}/basemind/bin/<version>/basemind.cargo build --release then ./target/release/basemind scan.basemind serve MCP server is already running for this repo it holds the store lock, so a
CLI scan will fail with a lock error. Use admin { mode: "rescan" } over MCP (it re-indexes in-process)
instead, or stop the server first.scan.extra_roots in the repo-root basemind.toml
to a list of absolute paths (e.g. a Bazel external repo cache) to index them alongside the repo.
This needs BASEMIND_ALLOW_EXTRA_ROOTS in the environment that launches basemind (1, or a
:-separated list of absolute workspace roots to grant only those): the config file lives inside
the repository, so without that operator opt-in the entries are ignored with a warning. A
filesystem or volume root and credential directories (.ssh, .aws, .gnupg, /etc) are
refused either way.
Their files are keyed by absolute path (so results for them are absolute, not repo-relative) and
are (re-)indexed on a full scan only — the live watcher does not track them. Git tools (blame)
don't apply to external files; the code map (symbols / references / outlines) and document search
do..env*, .aws/, .ssh/, .npmrc, *.pem, *.key, ...) are never
indexed. [scan] floor_allow opts a class back in (.env.* also matches .env.example), but a
credential entry needs BASEMIND_ALLOW_REPO_CREDENTIALS in the environment that launches
basemind — a repository's own file cannot un-exclude your secrets.
[languages.<grammar>] re-maps or disables a misdetected grammar.basemind code … have a fresh index.basemind-cli
skill for the full query surface, or basemind-code-search / basemind-git-history /
basemind-documents for the per-capability workflows.© Goldziher, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/basemind-scan of Goldziher/basemind.
Open the folder on GitHubat commit 2f6da31
Basemind Index Scan next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Basemind Index Scan this skillGoldziher/basemind | 108 | — | ~997 | Automated safety check: Warn | MIT | |
| Codebase SearchHelweg/open-codebase-index | 216 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Codebase Search WorkflowHelweg/open-codebase-index | 216 | — | ~822 | Automated safety check: Pass | MIT | |
| trace-mcp Code Navigationnikolai-vysotskyi/trace-mcp | 188 | — | ~1.6k | Automated safety check: Notes | MIT | |
| MCP Code Search Tool SelectionContext-Engine-AI/Context-Engine | 402 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Context-Engine Code SearchContext-Engine-AI/Context-Engine | 402 | — | ~14k | Automated safety check: Pass | MIT |
Helweg/open-codebase-index
Chooses the right retrieval tool for code questions: compact context for unfamiliar repos, direct lookup for known symbols, call graphs for relationships and grep for exhaustive matches.
Helweg/open-codebase-index
Directs an agent to use a local codebase index for repository orientation, definition lookups, call graphs and semantic search before turning to web lookups.
nikolai-vysotskyi/trace-mcp
Routes code exploration through trace-mcp's indexed dependency graph, using symbol search, outlines, call graphs and change-impact tools instead of Read, Grep and Glob.
Context-Engine-AI/Context-Engine
Rules for choosing Qdrant-Indexer semantic search over grep or file reads when exploring code, debugging or asking where and why questions.
Context-Engine-AI/Context-Engine
Searches a codebase with hybrid semantic and lexical retrieval plus neural reranking through MCP tools, for finding implementations and grounded answers.
comol/ai_rules_1c
Find BSL code in a 1C project — routines by name, code by behaviour or exact literal, module layout, members of a context — through the graph and code-metadata MCP servers before any Grep.
Goldziher/basemind
Shows a markdown dashboard of basemind activity in the session: tool call counts, top operations and estimated tokens saved against a grep and Read baseline.
Goldziher/basemind
Answers structural questions about a repository, such as where a symbol is defined, what calls it and what changed recently, through the basemind MCP server.
Goldziher/basemind
Drives the basemind code-intelligence tool from the command line for symbol search, callers, git history and blame, document search and web crawling, sharing its cache with the MCP server.
Goldziher/basemind
Answers where code is defined, who calls it and what shape a file has from a pre-built index, returning paths and line numbers instead of file contents.
Goldziher/basemind
Diagnose and recover basemind when it isn't working — MCP tools missing or erroring, "no index" / "no indexed files", empty results that shouldn't be empty, or the MCP server seems dead.
Goldziher/basemind
Semantic + full-text search over documents and the web via basemind's RAG store — PDFs, Office, HTML, email, images (OCR), plus scraped/crawled web pages, with cross-encoder reranking, keyword and…
Works with
Categories
Builds or refreshes the basemind code index from the command line, for when basemind reports no index or its MCP server is not running. Basemind answers code-map questions from an index kept in a machine-wide cache, keyed by workspace, and basemind scan is the command that builds it. This skill runs that scan through the CLI, so it still works when the MCP server (basemind serve) is down.
Basemind Index Scan fits situations like: basemind or the statusline reports no index for the repository; an MCP tool returns no indexed files when results should exist; the index is stale after large changes and needs a full rebuild.
Run `npx skills add Goldziher/basemind --skill basemind-scan -a claude-code`. Or copy the skill folder (skills/basemind-scan in Goldziher/basemind) into .claude/skills/basemind-scan in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Goldziher/basemind --skill basemind-scan -a codex`. Or copy the skill folder (skills/basemind-scan in Goldziher/basemind) into .agents/skills/basemind-scan in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Goldziher/basemind --skill basemind-scan -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/basemind-scan, .gemini/skills/basemind-scan, .github/skills/basemind-scan and .opencode/skills/basemind-scan in your project.
Going by SKILL.md and its folder, Basemind Index Scan needs the command-line tools its instructions call (cargo) and credentials named BASEMIND_ALLOW_REPO_CREDENTIALS. Our summary lists: The basemind binary; Write access to the machine-wide basemind cache.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 2 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way.
Basemind Index Scan is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 997 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Basemind Index Scan: Codebase Search (Helweg/open-codebase-index, 216 stars), Codebase Search Workflow (Helweg/open-codebase-index, 216 stars), trace-mcp Code Navigation (nikolai-vysotskyi/trace-mcp, 188 stars) and MCP Code Search Tool Selection (Context-Engine-AI/Context-Engine, 402 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Goldziher (a GitHub user) maintains it in Goldziher/basemind, which has 108 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 8, 2026.
Source: Goldziher/basemind on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.