---
name: local-file-search-and-knowledge-retrieval
description: "Searches indexed local documents and notes for relevant passages, extracts excerpts, and synthesizes cited answers to user questions. Use when someone asks about content stored across their local workspace or project archives."
license: CC-BY-4.0
compatibility: "Needs access to: Docs, Notes, Terminal, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-17"
  source: "https://botbento.com/usecases/local-file-search-and-knowledge-retrieval/"
  kind: skill
  hermes:
    tags: ["files", "knowledge", "search", "documents"]
    category: research
    requires_toolsets: ["file", "terminal"]
---
# Local file search and knowledge retrieval

Index personal documents to answer queries and summarize files across your machine

## When to use

Organize and query your local workspace by searching through documents, notes, and local files. The bot finds relevant passages, generates structured summaries, and helps you navigate project archives without manual browsing.

## Inputs

- `search_query`: The question or topic the person wants answered from local documents and notes
- `source_paths` (optional): Optional local directories or note files to search instead of the default indexed locations

## Steps

1. When you ask: User queries local documents (A person asks a question about their local documents or notes in chat.)
2. Search index and extract excerpts
3. Deliver synthesized answer

## Instructions

Examine user queries and search indexed document directories or local note files to locate relevant information. Extract key passages, synthesize the findings, and cite the source file paths. If a task requires modifying, moving, or deleting any local files, always present the exact changes and wait for explicit user approval before proceeding. Do not execute destructive commands.

## Approvals

- Modifying any local file, including editing document or note contents
- Moving or deleting local files or directories
- Executing destructive terminal commands

## Output

A synthesized answer citing the source file paths used. (format: chat_message)

## Source

Summarized in our own words from [second-brain: Second Brain is an agentic framework that acts as an operating system, using local file intelligence, workflow automation, and](https://github.com/henrydaum/second-brain) (GitHub, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/local-file-search-and-knowledge-retrieval/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
