basemind-cli

basemind-cli is a skill for Claude Code from Goldziher/basemind. It costs 66 tokens per session (2,925 once invoked), scanned A, original, MIT.

A command-line tool for exploring codebases, Git history, documents, and web-crawled content through a shared search index and cache. It can find symbols, references, callers, dependencies, diffs, and text across many file types.

In plain words
What is it for?
Use it in scripts or CI to inspect code structure, search symbols and documents, trace callers, review Git history and changes, crawl web pages, store shared memory, and manage the index cache.
Why use it?
It makes repeated or automated codebase research practical in scripts, continuous-integration jobs, and other non-interactive environments. Shared caches can avoid rebuilding the same indexes for separate sessions.

Skill for Claude Code

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

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

Good fit Use it in scripts or CI to inspect code structure, search symbols and documents, trace callers, review Git history and changes, crawl web pages, store shared memory, and manage the index cache.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldziher/basemind/basemind-cli
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-cli
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, 2 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-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldziher/basemind/basemind-cli"><img src="https://agentmods.dev/badge/skills/goldziher/basemind/basemind-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,925 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Memory Poisoning · line 67
    Skill injects content designed to persist in agent memory or context across interactions. Persistent injection can alter agent behavior long after the initial interaction.
    Fix: Do not allow untrusted input to persist in agent memory or context. Validate all content before storing and implement memory isolation between sessions.
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.00066 $0.02925
Opus 5.5 $0.00026 $0.01170
Sonnet 5.5 $0.00013 $0.00585
Haiku 4.5 $0.00007 $0.00293

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

Security

Grade A, and why

basemind-cli 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 3d 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-cli/SKILL.md · 204 lines

How it starts

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

basemind CLI — the scriptable interface

basemind has two equally-weighted surfaces: MCP (interactive tool calls) and CLI (scriptable commands). They share the same machine-global cache (Linux ~/.local/share/basemind/, macOS ~/Library/Application Support/basemind/; override BASEMIND_DATA_HOME) and are safe to run alongside each other. Reach for the CLI when you're scripting, batching queries, running in headless environments, or CI.

Capabilities

  • Code map across 300+ languages — tree-sitter outlines, symbol search, references, callers, call graphs, implementations, dependents. Code only: markdown, JSON, YAML, TOML, XML, CSV and similar files are documents (basemind memory documents), not in the code map.
  • Full-text + symbol search — indexed regex over code content and substring symbol lookup.
  • Git intelligence — history, blame, and structural diffs at symbol resolution, plus churn.
  • Document RAG over 90+ file formats — PDFs, Office, HTML, email, images (OCR), markdown and config/data files → semantic search.
  • Shared memory — per-repo, scope-keyed key-value + semantic memory across sessions.
  • Web crawl — scrape / follow-link crawl into the searchable document store.
  • Cache management — stats, garbage collection, selective and full clears.

When to reach for it

  • Running in headless environments or CI pipelines.
  • Batching multiple queries without interactive delays.
  • Integrating basemind into shell scripts or non-MCP tooling.
  • Controlling tool routing explicitly (no agent routing decisions).
  • Clearing or sweeping caches destructively (only the offline basemind cache clear accepts views / all, it needs --yes off a terminal, and blobs wipes the machine-global store; only basemind cache gc deletes orphaned blobs).

Read the full file on GitHub · 204 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. 3d ago Changed · +7 lines 916a36bbd50f
  2. 7d ago Changed · +29 lines 86d15d58b72d
  3. 1mo ago First seen · 168 lines · 66 tokens per session scan A 630926dcf240

Subscribe to this mod's changes

basemind-cli is a skill published in the GitHub repository Goldziher/basemind (112 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 2,925 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

Other skills, from other repositories

project-graveyard

Scans the developer's machine for dead side projects, autopsies each one from its git history (died at the payments wall, killed by a newer project, finished but never shipped), surfaces their personal death patterns, and picks the corpse most worth resurrecting — then helps ship it. Use when the user mentions…

Shubhamsaboo/awesome-llm-apps · 127 tokens

commit-archaeologist

Reconstructs why code exists from local git history, including the introducing commit, later changes, current authors, repeated companion files, and likely intent. Use when the user asks "why does this code exist", "who wrote this function and why", or to "explain the history of this function" before a rewrite…

Shubhamsaboo/awesome-llm-apps · 82 tokens

scope-creep-detector

Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad pull requests, changes that grew beyond a fix, dependency additions, public API renames, config or CI edits, oversized hunks, and formatting-only files. Use when the user asks whether a change grew beyond the fix, a PR is too…

Shubhamsaboo/awesome-llm-apps · 98 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

mem0-integrate

Integrate Mem0 into an existing repository using a goal-driven, TDD pipeline. Detects the repo's language automatically and asks the user to pick between Mem0 Platform (managed) and Mem0 Open Source (self-hosted). Writes failing tests before any implementation. Produces a local feature branch plus .mem0-integration/…

mem0ai/mem0 · 188 tokens

potpie-graph

Use when the task can read or write the project-memory graph through the potpie CLI: discover the contract with graph catalog, read named views with graph read, resolve entity identity with graph search-entities, create validated plans with graph propose, commit plans with graph commit --verify, inspect quality with…

potpie-ai/potpie · 107 tokens