Reproducible CLI Walkthrough

Search local Markdown and inspect exact source evidence

Published 8 November 2026 · Updated 27 November 2026 · Capicove 0.1.0 public source snapshot

Direct summary: Capicove lets you import local Markdown notes into a local workspace, build a deterministic SQLite FTS5 keyword index, and inspect the exact matching passage along with its character offsets (start_char–end_char), file SHA-256 hash, and index generation lineage—without a hosted API, API key, or model download during retrieval.

Download reproduction bundle (ZIP) Verify SHA-256 checksums Raw Markdown version

The ZIP contains the exact three input notes, reproduce.py, captured stdout/stderr, and checksums. Install the pinned public source snapshot first, then run the bundled script in a fresh directory.

The input and the recorded environment

The three notes are authored examples summarizing linked public Capicove documentation. They are not customer documents or a claim of a real customer trial. The files and commands below were executed locally, not simulated.

File What it contains
offline-search.md SQLite FTS5 and the source-evidence workflow
platform-scope.md Linux qualification and the pending native macOS boundary
release-notes.md The 0.1.0 public source release and installation boundary

Recorded environment: macOS 26.6.2 arm64; Capicove 0.1.0; CLI Python 3.11.14; SQLite 3.50.4 with FTS5. A separate Python 3.14.2 process drove the replay script. The public capability matrix qualifies Linux and still lists native macOS qualification as pending; this single macOS run does not change that status.

Install the pinned public source snapshot

Requires Python 3.11+ and uv. Installation can access the network. No model download, hosted API, or API key is needed for the demonstrated retrieval commands.

git clone https://github.com/happyBayes/capicove.git
cd capicove
git checkout 3f1be3314fa15dec8b8063166d77cc896cc5f68f
uv sync --locked --no-dev --python 3.11

Unzip the reproduction bundle and run the replay script with the absolute path to your installed executable and a fresh output directory:

python3 reproduce.py \
  --capicove /absolute/path/capicove/.venv/bin/capicove \
  --out /absolute/path/new-markdown-case

On macOS, the runner applies an OS sandbox denying network access to each Capicove invocation. On other systems, it records that OS-level denial was not enforced; the workspace configuration still disables network access.

Follow the CLI workflow step by step

Set BIN to your installed executable and CASE to a fresh absolute path, then copy the bundled notes directory into $CASE/notes before initialization:

BIN=/absolute/path/capicove/.venv/bin/capicove
CASE=/absolute/path/new-markdown-case
mkdir -p "$CASE"
cp -R notes "$CASE/notes"

"$BIN" setup init "$CASE/workspace" \
  --source-root "notes=$CASE/notes"
CFG="$CASE/workspace/host.json"

"$BIN" setup doctor --config "$CFG"

for NAME in offline-search.md platform-scope.md release-notes.md; do
  "$BIN" source import --runtime-config "$CFG" \
    --root notes --relative-path "$NAME"
done

"$BIN" index build --runtime-config "$CFG"
"$BIN" search FTS5 --runtime-config "$CFG"

The build activates one generation containing 3 sources and 3 text units. Querying FTS5 returns 1 hit from notes/offline-search.md. Copy the returned evidence_id to inspect its metadata and lineage:

"$BIN" get-evidence YOUR_EVIDENCE_ID --runtime-config "$CFG" \
  --section metadata --section lineage

What the captured evidence showed

source_ref: notes/offline-search.md
start_char: 0
end_char: 403
source_sha256: 49f185bc7e04bcd8786c836a9fc0c2a12cc31760e5dd4360dcaff4dcafd85fa6
text begins:
# Offline Markdown search

SQLite FTS5 provides keyword search over imported Markdown...

An independent check compared metadata.text against the original UTF-8 file at [start_char:end_char] and confirmed an exact match. A separate SHA-256 calculation over the full file matched both metadata.source_sha256 and lineage.source_sha256. Character offsets and byte length are distinct fields: the file is 404 bytes, while the returned span ends at character 403 because the trailing newline lies outside the chunk.

Check the failure and boundary paths

Check Observed result
Query qzxnomatch83917 Succeeded with an empty hits list
Re-import unchanged offline-search.md changed: false
Build again with unchanged inputs The generation ID stayed the same
Append text after import, then build Build rejected the changed source; no replacement generation activated
Restore the source and search again The prior evidence_id remained searchable
Deny network via macOS sandbox Retrieval commands succeeded; a control socket request was denied

Scope and limits worth keeping visible

What this does and does not prove: This walkthrough demonstrates deterministic local keyword search with inspectable source evidence. It is not semantic search or an LLM-generated answer, and a matching passage does not by itself prove a broader claim. It uses three small English notes and does not test large collections, multilingual recall (the documented tokenizer has limited recall for languages written without spaces), media processing, MCP clients, Windows, or full Linux/macOS release qualification. Dependencies were installed before the offline run. The Capicove homepage remains an interactive concept demo; use the public source checkout and documentation to run the real workflow.

Frequently asked questions

Does Capicove offline Markdown search require an API key or model download?
No. Once Python 3.11+, uv, and the pinned Capicove dependencies are installed, the demonstrated local SQLite FTS5 import, index build, search, and get-evidence commands run offline without any model download, hosted API, or API key.
Is this walkthrough semantic search or an LLM-generated answer?
No. The demonstrated workflow is deterministic local keyword search over SQLite FTS5 with inspectable source evidence, including exact character offsets, source identity, SHA-256 file hashes, and index generation lineage.
What happens if a Markdown file changes after import?
When text is appended to a previously imported file and you run index build without re-importing, the build rejects the changed source and does not activate a replacement generation, while the prior generation remains searchable once the source is restored.

Primary sources

AI assistance was used to prepare the example and this text. The commands and evidence comparisons were executed locally.