From Basemind
Navigates large codebases via MCP server: symbol search, reference/caller lookups, commit history, blame, diffs, and code outlines without reading source files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/basemind:basemindThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
basemind is the full context layer for this repository, served over MCP. It pre-indexes the
basemind is the full context layer for this repository, served over MCP. It pre-indexes the repo into a content-addressed blob store + Fjall inverted index (and, when enabled, a LanceDB vector store) so structural, historical, and semantic questions resolve in milliseconds — without you reading whole files.
workspace_grep) and substring
symbol lookup (search_symbols).search_documents).This umbrella skill covers the whole surface. For focused workflows, reach for the dedicated skills:
basemind-code-search — outlines, symbol search, references, callers, call graphs.basemind-git-history — history, blame, structural diffs, churn.basemind-documents — document RAG (search_documents), web ingestion, memory.basemind-comms — coordinating with other agents in the same repo over the broker.basemind-cli — the same surface driven headlessly from the CLI.grep / read_file)Use basemind for:
Foo defined?", "find the constructor for Bar", "show me every type ending in Service".process_file?", "who depends on this module?".foo.rs between HEAD~5 and HEAD".If you are about to open more than two or three files just to learn structure, stop
and use basemind first. The tools return paths + line numbers; you only read_file
once you know exactly which span you need.
basemind tools return paths, line numbers, and signatures — not file bodies, so a structural answer costs a fraction of the tokens of reading source. Treat that as the default workflow, not an optimization:
outline a file before you open it. Read the whole file only when you have already
identified the exact span you need from the outline; then read_file that range, not the file.search_symbols instead of grep/rg for a definition. It matches on indexed symbol
names and returns path:line, skipping the comment/string/test-name noise grep drowns you in.find_references / find_callers instead of grepping call sites. Indexed call edges,
not text matches.workspace_grep instead of shelling out to ripgrep when you genuinely need regex over
content — it runs over the in-RAM index and returns capped, structured hits.rescan after you edit code, not a server reconnect. Pass paths: [...] to limit it to
the files you touched.Rule of thumb: if a question is about where, what calls, what shape, who changed, or
what's indexed, a basemind tool answers it cheaper than reading files. Reach for read_file
only to see the actual implementation of a span you have already located.
basemind first, shell/grep/git fallback. Prefer basemind over reading files, over grep/rg,
and over naked git: use it for code parsing (outlines, references, callers), git history / blame /
diffs, document extraction / RAG / keyword + entity (NER) / summary (search_documents), and web
scraping / crawling / sitemaps (web_scrape / web_crawl / web_map). Drop to raw shell, grep, or
git only when no basemind tool covers the question.
| Question | Tool |
|---|---|
| "Where is X defined?" | search_symbols (substring match, optional kind filter) |
| "Jump to the definition of X used here?" | goto_definition (scope-aware resolution from a use site) |
| "What's the high-level architecture / module map?" | architecture_map |
| "What's the shape of file F?" | outline (add l2: true for calls + docs) |
| "What calls X?" (any name) | find_references |
| "What calls this specific definition?" | find_callers (path + name + optional kind) |
| "Trace the call graph from a function?" | call_graph (BFS up or down, bounded by max_depth / max_nodes) |
| "What implements / extends / inherits from X?" | find_implementations (Rust, Python, TS/TSX, JS) |
| "What imports module M?" | dependents |
| "What files are indexed?" | list_files (filter by language or path_contains) |
| "What changed recently?" | recent_changes, commits_touching, find_commits_by_path |
| "When did symbol X last change?" | symbol_history |
| "Who wrote this line / symbol?" | blame_file, blame_symbol |
| "Where's the churn?" | hot_files |
| "What's dirty in the working tree?" | working_tree_status |
| "What's HEAD / branch?" | repo_info |
| "Show diff between revs for file F" | diff_file, diff_outline |
| "What's indexed?" | status |
| "Semantic search over PDFs / Office docs in the repo?" | search_documents (requires --features documents) |
| "Recall something the agent stored earlier?" | memory_get exact, memory_list prefix, memory_search KNN |
| "Remember this for future sessions?" | memory_put (delete with memory_delete) |
| "Refresh the index after editing code?" | rescan — no MCP disconnect needed; optional paths arg |
| "Fetch next page of results?" | Pass next_cursor from prior response as cursor |
| "Pull this URL into RAG?" | web_scrape (requires --features crawl) — single page, robots-aware |
| "Ingest a docs site section?" | web_crawl — link-following from a seed URL |
| "What URLs exist on this site?" | web_map — sitemap + link discovery, no bodies fetched |
| "How much has basemind helped today?" | telemetry_summary — per-tool histogram + estimated tokens saved |
basemind needs an index before it can answer queries. The index lives in a machine-global cache
(Linux ~/.local/share/basemind/, macOS ~/Library/Application Support/basemind/; override
BASEMIND_DATA_HOME), keyed by workspace — never inside your repo. From the repo root:
basemind scan
This walks the tree, parses with tree-sitter, and writes a content-addressed blob store + Fjall inverted index into the machine-global cache. A few seconds for small repos, ~22 s for an ~80k-file TypeScript monorepo.
The MCP server is launched by the host (basemind serve — wired up in
.claude-plugin/plugin.json for you). You do not start it manually.
Re-run basemind scan after large changes, or run basemind watch to keep the index fresh on file save.
If a tool returns "no indexed files", that means basemind scan hasn't been run in this repo yet.
search_symbols { needle: "MapCache" }
→ src/mcp/mod.rs:79:1 MapCache (struct)
src/mcp/mod.rs:88:1 MapCache (impl)
Now you know exactly where to read.
find_references { name: "process_file" }
→ src/scanner.rs:142:9 process_file
src/scanner.rs:201:13 process_file
...
No need to grep — the index already knows.
outline { path: "src/mcp/tools.rs" }
→ 21 #[tool] outline (function)
112 #[tool] search_symbols (function)
...
A 1000-line file becomes a 30-line table of contents.
limit, default 100, max 1000). Index scanners use
scan_cap = limit * 8 to bound work on common names.find_references("bar") matches Foo::bar()
and bar() alike. There is no scope resolution; cross-check with outline if
disambiguation matters.basemind serve to be running inside a git repository. Outside a git repo they return a clear error.search_documents, memory_*) require basemind to be built with
--features full (or the individual documents / memory flags). Without them the
tools dispatch but return an MCP error.
Memory is scoped by the normalised origin remote URL ([email protected]:Foo/bar.git and
https://github.com/Foo/bar/ collapse to the same scope key) — clones of the same repo
share memory; unrelated repos do not see each other's entries.web_scrape, web_crawl, web_map) require --features crawl.
When that feature is off they are NOT registered on the server at all — agents will simply
not see them in the tool list. Crawled pages land in the documents LanceDB table tagged
with scope web:<host>; search_documents finds them alongside every other ingested
document. It searches across ALL documents and has no scope parameter — you cannot
filter results to a single host at query time.
robots.txt is honoured by default; only [crawl].respect_robots_txt = false in
the repo-root basemind.toml (config-file-only) disables it.npx claudepluginhub goldziher/basemind --plugin basemindNavigates codebases and manages caches via the basemind CLI — outlines, symbol search, reference/caller lookups, git history, blame, and diffs. For headless scripting, CI, or driving the CLI more efficiently than interactive MCP calls.
Semantically searches, greps, and Q&A across codebases indexed in CodeAlive. Can list data sources, read files, trace call graphs, and query artifact metadata.