/basemind:bm-init capabilities…from basemind
Onboard (or refresh) basemind in this repo — write basemind.toml and inject a "prefer basemind over grep/read/git" rules block into a rules file you choose (CLAUDE.local.md / AGENTS.local.md / CLAUDE.md / AGENTS.md / ai-rulez).
Ships in basemind. Installing the plugin adds it to Claude Code.
Run basemind init so the repo has a committed basemind.toml and a rules block that tells every
agent to prefer basemind's MCP tools over grep, file reads, and naked git. CLI and slash command
share ONE implementation — this just drives basemind init with the right non-interactive flags.
First time setting up basemind in a repo, or to refresh the rules block after enabling new capabilities (documents/RAG, agent-comms, semantic search). Safe to re-run: it's idempotent.
Ask which capabilities matter (one short question). The options are:
code-search-navigation, code-mapping-architecture, git-history, agent-comms,
documents-rag, semantic-search. If the user has no preference, enable all.
Ask where the rules block should go — do NOT assume. Never write a committed CLAUDE.md
or AGENTS.md without the user's explicit say-so. Present the choice:
CLAUDE.local.md — personal, gitignored (recommended default)AGENTS.local.md — personal, gitignored (for AGENTS-based tools)CLAUDE.md — committed, shared with everyone on the repoAGENTS.md — committed, shared with everyone on the reponone — write no rulesException: if .ai-rulez/config.toml is present, ai-rulez owns governance — write the
gitignored .ai-rulez/local/rules/basemind-usage.md instead of asking (never the committed
.ai-rulez/rules/basemind-usage.md, and never CLAUDE.md/AGENTS.md).
Ask about auto-approving basemind's MCP tools (one short question). basemind can add one
permissions.allow glob entry so Claude Code stops prompting for approval on its own tools.
Present the choice:
.claude/settings.local.json — personal, gitignored (recommended default).claude/settings.json — committed, shared with everyone on the reponone — skip this stepRun basemind init non-interactively with the matching flags. Pass the user's rules choice
via --rules-target <claude-local|agents-local|claude|agents|ai-rulez-local|ai-rulez|none>
(default auto resolves to the gitignored local file, never a committed one) and their
settings choice via --settings-target <local|shared|none> (omitting the flag is equivalent to
none in this non-interactive flow — it is never added silently):
basemind init --yes --rules-target claude-local --settings-target local
Narrow capabilities with repeatable --with (allow-list) or --without (subtract):
basemind init --yes --rules-target claude-local --settings-target local --with code-search-navigation --with git-history
Preview without writing using --print.
Report what changed — which files were written or kept (basemind.toml, the chosen rules
file, the settings file if opted into), whether the delimited block was created or updated in
place, and any .gitignore pattern that was added (see below).
--rules-target auto (the default) NEVER writes a committed CLAUDE.md / AGENTS.md unasked:
it routes to the gitignored .ai-rulez/local/rules/basemind-usage.md when .ai-rulez/config.toml
owns governance (then tell the user to run ai-rulez generate; do NOT run it for them), otherwise
to the gitignored CLAUDE.local.md (or AGENTS.local.md when the repo uses AGENTS). Choosing
claude / agents / ai-rulez explicitly opts into the corresponding committed file.<!-- BEGIN basemind … --> … <!-- END basemind -->
block that is replaced in place on re-run, never duplicated. Content outside the markers is
never touched..gitignore coverage: whenever init is about to write one of the files that are
gitignored by convention (CLAUDE.local.md, AGENTS.local.md, .claude/settings.local.json,
anything under .ai-rulez/local/), it checks whether an existing .gitignore already covers
that path. If not, it prompts add "<pattern>" to .gitignore? [Y/n] interactively, or appends
the pattern automatically with --yes, so a personal .local file is never one accidental
git add -A away from being committed.--settings-target local (or shared) explicitly to enable it. The merge only ever
adds/dedupes basemind's own entry inside permissions.allow; every other key in
.claude/settings*.json (e.g. skillOverrides), and its position in the file, is left exactly
as it was.basemind.toml is kept verbatim, never clobbered.${CLAUDE_PLUGIN_ROOT}/scripts/mcp-launch.sh init …
(in other hosts, scripts/mcp-launch.sh in the plugin directory). Use bare basemind from PATH
only when no plugin launcher exists, or build a dev binary with cargo build --release and use
./target/release/basemind.The bm-scan command to build the index next, and the basemind skill for the full MCP tool
surface the rules block advertises.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (jamon8888/basemind) — no native marketplace selected
npx claudepluginhub p/jamon8888-basemind6 commands in this plugin
/bmAsk basemind anything about the current codebase — outlines, refs, callers, git history, blame, diffs, docs, memory./bm-doctorDiagnose and recover basemind when it isn't working (MCP tools missing/erroring, "no index", dead server) — runs CLI checks and gives the client-specific way to reconnect the server./bm-scanBuild or refresh the basemind index by running `basemind scan` via the CLI — works without the MCP server (use it when basemind reports "no index" / "no indexed files")./bm-statsShow the basemind dashboard — resource footprint (disk + RAM) and activity (tool calls, per-tool histogram, estimated tokens saved). Works with or without the MCP server./bm-statuslineEnable the basemind status line in your Claude Code user settings (one-time setup).