Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

Coding agents burn context fast in unfamiliar repositories: running broad text searches, opening half-related files, and chasing call chains one file at a time. Vera gives an agent (or a developer in a terminal) direct paths to the relevant symbols. Ask what a piece of code does, where a type is defined, or who calls a function, and Vera returns ranked functions, classes, and call sites with file paths and line ranges.

Vera ships as a single native binary and keeps each project's index in `.vera/` with no background daemon or database server. Indexing, storage, keyword search, and code-aware ranking always run on your machine; embeddings run either locally on any CPU (`potion-code-16M-v2`, offline after one download) or through an OpenAI-compatible API such as Qwen3 embeddings plus reranking.
Vera ships as a single native binary and keeps each project's index in `.vera/` with no database server. CLI searches run as one-shot commands by default; optionally, `vera daemon` keeps search models and open index stores resident for reuse across calls. Indexing, storage, keyword search, and code-aware ranking always run on your machine; embeddings run either locally on any CPU (`potion-code-16M-v2`, offline after one download) or through an OpenAI-compatible API such as Qwen3 embeddings plus reranking.

![vera search demo](docs/assets/vera-demo.gif)

Expand Down
19 changes: 18 additions & 1 deletion crates/vera-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ pub enum Commands {
vera mcp # Start MCP server on stdio")]
Mcp,

/// Run a persistent local search server for `vera search` commands.
#[command(long_about = "Run a persistent local search server.\n\n\
The daemon keeps search models and open index stores resident so \
repeated `vera search` invocations can reuse them. In another \
terminal, use `vera search` normally; it connects to the daemon \
when available and otherwise performs the search locally.\n\n\
The daemon runs in the foreground. Stop it with Ctrl-C.\n\n\
Example:\n \
vera daemon")]
Daemon,

/// Start the Vera HTTP API server for remote embedding and reranking.
#[command(long_about = "Start the Vera HTTP API server.\n\n\
Loads the embedding model at startup and keeps it (using the \
Expand Down Expand Up @@ -308,17 +319,23 @@ pub enum Commands {
Discovers source files (respecting .gitignore), parses them with \
tree-sitter for 61 languages, creates searchable chunks at symbol \
boundaries, generates embeddings using the current Vera mode, and \
stores everything in a local `.vera/` index directory.\n\n\
stores everything in a local `.vera/` index directory. If index \
data already exists, Vera refuses to replace it unless you pass \
`--replace`.\n\n\
Use `vera setup` for Vera's built-in local models, or `vera setup \
--api` for an OpenAI-compatible endpoint.\n\n\
Examples:\n \
vera index . # Index current directory\n \
vera index /path/to/repo # Index a specific repo\n \
vera index . --replace # Replace an existing index\n \
vera index . --dry-run # Estimate work without writing an index\n \
vera index . --json # Output summary as JSON")]
Index {
/// Path to the directory to index.
path: String,
/// Replace an existing index.
#[arg(long)]
replace: bool,
/// Build a keyword (BM25) index without embeddings.
#[arg(long)]
full_text_only: bool,
Expand Down
Loading