A keyword search hit is much more useful when you can verify the exact passage and file hash it came from.
In this reproducible walkthrough, we use Capicove (MIT-licensed, local-first knowledge and multimodal CLI) to import three local Markdown notes, build an offline SQLite FTS5 keyword index, search for FTS5, and inspect exact character-span evidence (start_char–end_char) plus SHA-256 lineage—without a hosted API, API key, or model download during retrieval.
Full HTML guide, captured outputs, and replay bundle (ZIP + SHA-256):
https://capicove.ai/guides/offline-markdown-search/
Quick replay
Requires Python 3.11+ and uv:
git clone https://github.com/happyBayes/capicove.git
cd capicove
git checkout 3f1be3314fa15dec8b8063166d77cc896cc5f68f
uv sync --locked --no-dev --python 3.11
Then initialize a local workspace, import your Markdown files, build the index, and inspect the returned evidence_id:
"$BIN" setup init "$CASE/workspace" --source-root "notes=$CASE/notes"
CFG="$CASE/workspace/host.json"
"$BIN" source import --runtime-config "$CFG" --root notes --relative-path offline-search.md
"$BIN" index build --runtime-config "$CFG"
"$BIN" search FTS5 --runtime-config "$CFG"
"$BIN" get-evidence YOUR_EVIDENCE_ID --runtime-config "$CFG" --section metadata --section lineage
What we verified (including failure paths)
- Exact match between returned
metadata.textand the UTF-8 source slice[0:403] - SHA-256 match across
metadata.source_sha256,lineage.source_sha256, and the raw file - Appending text to a file after import causes
index buildto reject the stale source without replacing the active generation - Running with OS-level network denial (macOS sandbox) still completes all retrieval commands cleanly
Honest boundaries
- This walkthrough demonstrates deterministic local keyword search (SQLite FTS5), not semantic search or LLM generation.
- The public capability matrix qualifies Linux; native macOS qualification is still listed as pending.
- Read the full guide and download the reproduction ZIP here: https://capicove.ai/guides/offline-markdown-search/
- Public GitHub mirror: https://github.com/happyBayes/capicove
Top comments (0)