/basemind:basemind-scanfrom basemind
Builds or refreshes the basemind code-map index via CLI when the MCP server is unavailable or reports no index, degraded, or rescan_needed status.
Ships in basemind. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
basemind code …) without a scan.index_status reports degraded or rescan_needed: true and you want a full rebuild. Either one
qualifies: a scan that stops after writing the code map sets degraded alone.scan.extra_roots changed: only a full scan re-indexes them (rescan <path> skips
them). With a live basemind serve holding the lock, index_rescan {} is the full pass; with a
standalone basemind watch, stop it, run basemind scan, then restart it.Not for a healthy index that misses a file you just created: run basemind rescan <path> (or
index_rescan {"paths":[…]}) for that file. A running server already re-indexes the files you edit
in the repository; it does not watch scan.extra_roots.
From the repository root:
basemind scan # full working-tree scan
basemind rescan <path> # re-index only these paths (incremental)
Finding the binary (in order of preference). The plugin runs its own version-matched binary, so
use it first: a bare basemind from PATH can be a different version over the same cache.
${CLAUDE_PLUGIN_ROOT}/scripts/mcp-launch.sh scan (in other hosts, scripts/mcp-launch.sh in the
plugin directory). Its binary is cached at ${XDG_CACHE_HOME:-~/.cache}/basemind/versions/<version>/basemind.basemind on PATH.cargo build --release then ./target/release/basemind scan.docs_search
(search by meaning), never in code_symbols or code_outline, but code_grep finds exact text
in them and find_files lists them. Anything that is neither code nor an
extractable document is skipped, not counted as a failure. Existing indexes migrate on the
next scan, which also reclaims stale blobs (cleanup: reclaimed N orphaned blob(s)).scan is forwarded to it and prints scan via daemon; it never
starts one. A flag the daemon cannot apply (--rebuild-git-history, a --documents-* /
--llm-* override) exits 2 naming it. Another process holding the store lock
(basemind watch, another scan) makes scan exit 3 and name the holder; stop a standalone
watcher, scan, then restart it.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 / usages / 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.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub goldziher/basemind --plugin basemind10 skills in this plugin
/basemindNavigate large or unfamiliar codebases via the basemind MCP server — outlines, symbol search, reference/caller lookups, commit history, blame, and diffs without reading source files. Reach for it whenever the user asks "where is X defined", "what calls Y", "what changed recently in Z", or whenever you're about to grep or open many files to find structural information./basemind-cliNavigate codebases and manage caches via the basemind CLI — outlines, symbol search, reference/caller lookups, git history, blame, and diffs. For headless scripting, CI, or when driving the CLI more efficiently than interactive MCP calls. Shares the same index as the MCP server./basemind-code-searchFind where code is defined and used without reading files — symbol search, file outlines, references, callers, implementations, dependents, and indexed regex over content. Reach for it whenever the user asks "where is X defined", "what calls Y", "what implements Z", "what's the shape of this file", or whenever you're about to grep or open files to learn structure./basemind-commsCoordinate with other agents working the same repo through basemind's agent_post, agent_inbox and agent_threads tools — threads, a per-actor read position, bodies inline. Reach for it whenever you start, finish, or hit a decision while collaborating, or to check whether another agent is already touching the code you're about to change./basemind-doctorDiagnose 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. Runs CLI checks (no MCP server required) and gives the client-specific way to reconnect the server./basemind-documentsSemantic search over documents via basemind's RAG store — PDFs, Office, HTML, email, Jupyter notebooks, and images (OCR), with cross-encoder reranking, keyword and named-entity (NER) filters, and per-document summaries. Reach for it whenever the user asks to "search the docs / PDFs", "find where a topic is discussed", or "what does the documentation say about X".Other plugins' skills for the same job