A single binary that replaces bookmarks, wikis, and scattered notes for your command-line knowledge.
Keyword search → intelligent scoring → vector similarity → AI fallback. Always finds what you need, even with vague queries.
Ollama for local/private inference, Google Gemini for cloud power. Automatic fallback between providers. Separate chat and embedding models.
pgvector embeddings for PostgreSQL, cosine similarity for SQLite. Understands meaning, not just keywords. Configurable dimensions (384, 768+).
Interactive CLI with slash commands, traditional scriptable CLI with JSON output, and a full web UI with syntax highlighting and auth.
Enterprise PostgreSQL with pgvector for teams, or lightweight SQLite for personal use. Interactive setup wizards for both.
SSL/TLS, session-based auth with 24h expiry, HTTP-only cookies, read-only mode, and SameSite protection for the web UI.
Every query flows through an intelligent multi-stage pipeline that always finds the best answer.
Pick the interface that fits your workflow.
scmd --cli
scmd --search
scmd --web
Real-time search, syntax highlighting, AI explanations, session auth, duplicate detection, and markdown rendering — all in the browser.
| Type | Client-server |
| Vector Search | pgvector |
| Multi-user | ✓ Yes |
| Setup | --create-db-postgresql |
| Best for | Teams & enterprise |
| Type | File-based |
| Vector Search | Go cosine sim |
| Multi-user | ✗ Single |
| Setup | --create-db-sqlite |
| Best for | Personal & offline |
┌─────────────────────────────────────────────────┐ │ SCMD v2.0.5 │ ├─────────────┬──────────────┬────────────────────┤ │ Interactive │ Traditional │ Web UI │ │ CLI │ CLI │ (HTTP/HTTPS) │ ├─────────────┴──────────────┴────────────────────┤ │ Core Engine │ │ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │ │ │ Search │ │ Scoring │ │ Keyword Extract │ │ │ │ Engine │ │ System │ │ (NLP) │ │ │ └──────────┘ └──────────┘ └──────────────────┘ │ ├──────────────────────────────────────────────────┤ │ AI Layer │ │ ┌──────────────────┐ ┌───────────────────────┐ │ │ │ Ollama (Local) │ │ Gemini (Cloud) │ │ │ │ Chat + Embedding │ │ Chat + Embedding │ │ │ └──────────────────┘ └───────────────────────┘ │ ├──────────────────────────────────────────────────┤ │ Data Layer │ │ ┌──────────────────┐ ┌───────────────────────┐ │ │ │ PostgreSQL │ │ SQLite │ │ │ │ + pgvector │ │ + cosine similarity │ │ │ └──────────────────┘ └───────────────────────┘ │ └──────────────────────────────────────────────────┘