basemind-documents

basemind-documents is a skill for Claude Code, Codex from Goldziher/basemind. It costs 107 tokens per session (1,319 once invoked), scanned A, original, MIT.

A document and web search system that finds information by meaning as well as exact words. It can search PDFs, Office files, HTML, email, scanned images using text recognition, and web pages that have been imported into its store.

In plain words
What is it for?
Use it to search documents or imported web pages, filter results by keywords or named entities such as people and organizations, and view summaries of individual documents.
Why use it?
It helps locate relevant passages across many documents when an exact keyword search would miss wording differences, but documents must be scanned first.

Skill for Claude CodeCodex

Part of the basemind plugin — 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/goldziher/basemind/basemind-documents
Any agent
npx skills add Goldziher/basemind --skill basemind-documents
Clone the repo
git clone --depth 1 https://github.com/Goldziher/basemind

Made for: Claude Code, Codex.

Or install basemind, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server.

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-documents

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldziher/basemind/basemind-documents.svg)](https://agentmods.dev/skills/goldziher/basemind/basemind-documents)
Your own site
<a href="https://agentmods.dev/skills/goldziher/basemind/basemind-documents"><img src="https://agentmods.dev/badge/skills/goldziher/basemind/basemind-documents.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00107 $0.01319
Opus 5 $0.00053 $0.00660
Sonnet 5 $0.00021 $0.00264
Haiku 4.5 $0.00011 $0.00132

Measured 5d ago against content hash 057e36a8666b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

basemind-documents 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 5d 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-documents/SKILL.md · 82 lines

How it starts

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

basemind-documents — document RAG and web ingestion

basemind extracts 90+ file formats (PDF, Office, HTML, email, images via OCR) into a LanceDB vector store and answers meaning-based queries with cross-encoder reranking. Web pages scraped or crawled into the same store are searchable the same way. This is the surface for "find the passage about X", not "grep for the string X".

basemind first, open-the-file fallback. Prefer memory mode documents over opening PDFs/Office/HTML by hand, and the web tools over ad-hoc fetching. For source code use basemind-code-search instead — this skill is for prose and documents.

Requirements

  • memory mode documents needs a build with --features documents (or full); the other memory modes need --features memory. Without them the tools dispatch but return an MCP error.
  • Web ingestion (web modes scrape / crawl / map) needs --features crawl. When that feature is off these tools are not registered at all — they simply won't appear in the tool list.
  • Documents must be scanned first: basemind scan with the documents feature extracts and embeds them into the machine-global cache (Linux ~/.local/share/basemind/, macOS ~/Library/Application Support/basemind/; override BASEMIND_DATA_HOME). See the basemind-scan skill.

Tool routing

Question MCP tool CLI
"Semantic search over PDFs/Office/HTML docs?" memory { mode: "documents", query: "…" } basemind memory documents "query"
"Narrow to docs mentioning an entity?" memory { mode: "documents", query: "…", entity_category: "…" } (MCP only)
"Narrow to docs with a keyword?" memory { mode: "documents", query: "…", keywords_contains: "…" } (MCP only)
"Filter by file type?" memory { mode: "documents", query: "…", mime_type: "application/pdf" } basemind memory documents "…" --mime-type application/pdf
"Pull a single URL into RAG?" web { mode: "scrape", url: "…" } (robots-aware) basemind web scrape <url>
"Ingest a docs site section?" web { mode: "crawl", url: "…" } basemind web crawl <seed-url>
"What URLs exist on this site?" web { mode: "map", url: "…" } basemind web map <url>
"Recall something the agent stored earlier?" memory mode get, list, or search basemind memory get "key" / list / search "q"
"Remember this for future sessions?" memory { mode: "put", key, value } basemind memory put "key" "value"

Read the full file on GitHub · 82 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. 5d ago First seen · 82 lines · 107 tokens per session scan A 057e36a8666b

Subscribe to this mod's changes

basemind-documents is a skill published in the GitHub repository Goldziher/basemind (98 stars, last pushed 3d ago), licensed MIT. It adds 107 tokens to every session and 1,319 once invoked, about $0.0005 per session on Opus 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

debug-ingestion

Debug haiku.rag ingestion in Logfire. Use when asked to look at Logfire for ingestion, find failed or dead ingestion jobs, investigate retries or circuit-breaker events, trace a document through convert/chunk/embed/store, find which docling-serve instance served a request, spot slow conversions, or tell concurrent…

ggozad/haiku.rag · 87 tokens

hybrid-rag

Use when creating, updating, or querying a local Hybrid RAG database from PRISMA JSON metadata or PDF documents in a folder. Triggered by prisma-review (after Fase 4) or educational-pilot-design (to query evidence). Hybrid RAG combines dense vector search (sentence-transformers) and sparse retrieval — native FTS via…

giovannifrontera/academic-research-prisma-wiki-rag · 96 tokens

markitdown

Convert heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 61 tokens

llamaindex

Data framework for building LLM applications with RAG. Specializes in document ingestion (300+ connectors), indexing, and querying. Features vector indices, query engines, agents, and multi-modal support. Use for document Q&A, chatbots, knowledge retrieval, or building RAG pipelines. Best for data-centric LLM…

davila7/claude-code-templates · 70 tokens

azure-ai

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

microsoft/skills · 76 tokens

graph-retrieval

Exposes graph-based retrieval as a tool capability via querygraph. Reads normalized graph store files, builds a query-relevant subgraph, and returns LLM-friendly semantic triples with replayable evidence metadata.

study8677/repobrain · 46 tokens