README file from
GithubAI Vault Search
Fast in-memory search (note graph + Markdown sections, ranked with BM25 over an index kept up to date by Obsidian events) over the Obsidian vault and over any folder on the computer, for AI agents, exposed as MCP tools through the AI Ecosystem core: search, find, get_section, get_note, read_table, list_folders, list_files, list_tags and recent_notes.
Universal search
The pasta and arquivo parameters accept absolute paths anywhere on the computer (for example C:/Users/you/Documents/project) or paths relative to the vault.
Supported formats:
- code and text files (for example
.ts,.py,.txt) - Markdown (
.md) - spreadsheets and tables:
.csv,.tsvand.xlsx - documents:
.docxand.pdf
When scanning the disk, these folders are skipped: node_modules, dist, build, .git, AppData, Windows, Program Files and similar.
Size limits: 5 MB for text files and 50 MB for binary files.
Examples:
{ "termos": ["soma"], "pasta": "C:/Users/you/Documents/project", "extensoes": ["ts", "py"] }
{ "query": "Plano de implementação", "pasta": "Projetos" }
{ "arquivo": "C:/Users/you/Documents/project/src/a.ts", "secao": "soma" }
{ "arquivo": "C:/Users/you/Documents/project/dados.xlsx", "aba": "Planilha1", "linha_inicio": 2, "linha_fim": 20, "formato": "markdown" }
Response format, pagination and safety
- Compact by default (
compacto: true):searchandfindreturn ripgrep-style text (caminho:linha:trecho). Empty results show0 resultadoswith hints;+Nmeans there is more. - JSON when you ask for it:
compacto: falsereturns the lean JSON (path, line, a 120-character snippet and the section).detalhe: truereturns the long JSON response andler: truealso falls back to JSON, since compact text cannot carry those fields. ler: true: the first result also returns the section where the term matched.- Pagination: use
offsetto get the next page; therestantesfield tells how many results remain. - Universal search: the default limit is 10. When results are cut,
truncadois set and hints explain how to continue. - Matching:
sinonimos(off by default) adds synonyms;exatomatches whole words only. - Tree and properties:
arvorelists the notes below a root note (followingup:), limited byprofundidade.proptakes several conditions; a list means all of them must match. - Sections:
get_sectionacceptspedidosto read up to 10 sections per call. - Notes:
get_notereturns frontmatter, outline, outgoing links and body.list_tagslists tags andrecent_noteslists the latest changed notes. - Listing:
list_filestakestipo(arquivosby default,pastasorambos) to list files, folders or both, in the same call;filtroandlimiteapply to both.list_foldersstill works and is the same aslist_fileswithtipo: "pastas". - Ranking: results are ranked with BM25 over an in-memory index that Obsidian events keep up to date.
- Safety: files such as
.env*,.credentials*,*.pem, SSH keys,.ssh,.aws,.npmrcand.obsidian/plugins/*/data.jsonare never read or listed. Tokens (sk-ant-,ghp_,Bearer) are redacted as[REDIGIDO]in the output.
Claude Code hooks and guided setup
The AI Ecosystem core can install Claude Code hooks and a setup skill for this module in the vault's .claude/ folder:
- skill in
.claude/skills/configurar-ai-vault-search/, hook entries in.claude/settings.local.json(orsettings.json), state in.claude/ai-ecosystem/, and a block inGEMINI.mdfor Antigravity. - Modules downloaded from the AI Ecosystem module catalog show a confirmation screen listing what will be written before installing. Nothing in your own
.claude/entries is overwritten. - Until the guided setup finishes, the module's tools are hidden from Claude Code (other clients still see them).
- Hooks can be set to block, warn or off per module in the AI Ecosystem settings, and they fail open when Obsidian or the plugin is not running.
Protection hook: Grep or Glob inside the vault is redirected to the plugin's search tools (search, find, list_files or get_section). The universal search and find tools also work in any folder on the computer. Folders outside the index and tool-note folders stay allowed.
Folders outside the index: a new setting, applied to every search, listing and section read. It is set through the guided setup (key pastas_fora_do_indice, a list of vault-relative folders); there is no settings tab for it yet. The plugin also tells the core these folders so the hook leaves them alone.