Commands and integrations

SourceVault's engine reaches your AI tools three ways: the Hermes plugin's slash commands, LLM-callable tools, and an MCP server any MCP client can attach to. The Hermes plugin and the machine API run over localhost with signed requests; the MCP server runs in-process over stdio.

Hermes slash commands

Deterministic commands that work reliably with any local model. Telegram uses underscore forms (/code_ask).

CommandWhat it does
/code-helpCommand reference
/code-statusIntegration health check
/code-reposList indexed repos
/code-sync <repo>Fast-forward the repo mirror
/code-read <repo> <path>Read an exact file
/code-search <repo> "query" [n]Hybrid semantic + literal search
/code-context <repo> "query"Retrieve a compact context pack
/code-ask <repo> ["retrieval query"] "question" [n]Retrieve and answer with citations; the optional first string steers retrieval separately from the question
/code-history <repo> "question" [n]Search indexed commit history

MCP tools

The MCP server exposes list_repos, search_codebase, read_repo_file, ask_codebase, list_provenance_alerts, and get_attestation, plus a sourcevault://policy resource that shows the active access policy. Set SOURCEVAULT_AGENT_TOKEN in the server's environment to run it under a named agent identity; the server refuses to start on an unknown or revoked token.

The sourcevault CLI

CommandWhat it does
sourcevault stack up|down|statusStart, stop, or inspect the local services
sourcevault app [url] [--out <dir>]Build a desktop app wrapper for the dashboard
sourcevault agent mint|list|revokeManage named agent tokens
sourcevault tls-setupIssue a local certificate and serve the dashboard over HTTPS
npm run doctorDiagnose an install
npm run code-repos -- add|list|show|sync|reindex|cleanupManage indexed repositories from the shell
npm run migrate-vectors -- --to sqliteMove existing indexes between vector stores without re-embedding

Install and configuration for the plugin live in its repository: sourcevault-code-tools. For models that handle structured tool use, the plugin also registers code_search, code_read_file, and code_history tools.

MCP server

The MCP server exposes the same engine to OpenClaw and any other MCP client, which get bounded, cited context instead of re-reading files. The server is local-only. Paired with a local-model client the whole loop runs offline; a cloud-backed client sends what it retrieves to its own vendor, by your choice.

Machine API

For your own tooling, the HMAC-signed endpoints (/api/search-codebase, /api/read-file, /api/history-search) accept signed JSON over localhost. The OpenAPI description ships with every install at /api-docs on your own server (the raw spec at /api-docs.json).