cd /news/ai-tools/offline-markdown-search-with-verifia… · home › topics › ai-tools › article
[ARTICLE · art-177569] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Offline Markdown Search with Verifiable Source Evidence (SQLite FTS5 + SHA-256)

A developer published a reproducible walkthrough showing how to use Capicove, an MIT-licensed local-first knowledge CLI, to import local Markdown notes, build an offline SQLite FTS5 keyword index, and retrieve search hits with exact character-span evidence and SHA-256 lineage—no hosted API, API key, or model download required during retrieval. The guide includes a pinned commit, captured outputs, and a replay bundle, and notes that index builds reject stale sources without replacing the active generation.

recommendation

When building local keyword retrieval, store character spans and source SHA-256 hashes per hit so results can be verified and stale sources rejected at index build.

more in playbook: Retrieval and RAG
by read1 min views5 publishedNov 28, 2026

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/

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

metadata.text and the UTF-8 source slice [0:403] metadata.source_sha256, lineage.source_sha256, and the raw file index build to reject the stale source without replacing the active generation

── more in #ai-tools 4 stories · sorted by recency
── more on @capicove 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/offline-markdown-sea…] indexed:0 read:1min 2026-11-28 · —