Search
Search
Section titled “Search”handover builds a semantic search index alongside generated documentation. Use handover reindex to build or refresh the index, then use handover search to query it.
Building the index
Section titled “Building the index”Run handover reindex after handover generate:
handover reindexReindexing scans generated docs, chunks markdown sections, creates embeddings, and stores vectors in a local SQLite index (.handover/search.db).
Use --force to re-embed everything and ignore change detection:
handover reindex --forceUse --embedding-mode to control where embeddings are computed:
handover reindex --embedding-mode local-onlyhandover reindex --embedding-mode local-preferredhandover reindex --embedding-mode remote-onlyBy default, reindexing is incremental. It tracks fingerprints for each generated document and only re-embeds content that changed since the last run.
Searching
Section titled “Searching”Basic retrieval:
handover search "authentication"handover search defaults to fast mode (--mode fast), which performs retrieval-only semantic ranking and returns matches with relevance scores.
QA mode synthesizes an answer from retrieved chunks:
handover search "How does auth work?" --mode qaQA mode requires a working provider setup for answer generation. If provider setup is not ready, use fast mode until credentials are configured.
Fast-mode output includes:
- rank
- relevance percentage
- source file
- section path
- snippet
Filtering results
Section titled “Filtering results”Use flags to narrow or widen retrieval:
| Flag | Description |
|---|---|
--type <type> | Filter by document type. Repeat the flag to include multiple types. |
--top-k <n> | Number of results to return. Default: 10. |
--embedding-mode <mode> | Override embedding locality for this search: local-only, local-preferred, or remote-only. |
Known --type values:
project-overviewgetting-startedarchitecturefile-structurefeaturesmodulesdependenciesenvironmentedge-cases-and-gotchastech-debt-and-todosconventionstesting-strategydeployment
Examples:
handover search "dependency graph" --top-k 20handover search "build pipeline" --type architecture --type moduleshandover search "token handling" --type testing-strategy --embedding-mode local-onlyQuality signals
Section titled “Quality signals”Search output includes signals to help you diagnose weak results:
- Zero results + empty index: run
handover generate, thenhandover reindex. - Zero results + populated index: refine terms, broaden/remove
--typefilters, or increase--top-k. - Low relevance warning: if the best match is weak (distance above threshold), the CLI prints a warning.
- TTY vs piped output: TTY output uses clickable OSC8
file://links; piped output prints plain source paths.
Next steps
Section titled “Next steps”- configuration for embedding and output settings
- regeneration for incremental runs with
--since