Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RagStackNew to Visual Studio Code? Get it now.
RagStack

RagStack

RagStack

|
98 installs
| (0) | Free
Semantic code search powered by your own AI. Index any project, search with natural language. Runs on Ollama + pgvector.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RagStack

Semantic code search powered by your own AI. Index any project, search with natural language. Runs on your infrastructure — your code never leaves your network.

Features

  • Your Brain (agentic chat) — ask in plain English; the agent searches, reads, lints, runs tests, proposes edits (auto-reverted if they break lint/tests), and cites file:line
  • One-Click Indexing — index a project into your RAG server (tree-sitter chunked, embedded in pgvector)
  • One Connection control — a single selector points BOTH the agent and the retrieval server at This machine / LAN / a local agent / Custom (with a live health dot)
  • Engine selector — pick the model per query (local CPU/GPU or cloud), with automatic cloud→CPU failover
  • Brain graph — visualize the knowledge graph (what's indexed) and the conversation graph (questions linked to the code they touched)
  • Long-term memory + MCP — remembers durable facts; extends via git / GitHub / shell tools (53 total)
  • Right-Click Ask — select code, right-click → "Brain: Ask About Selection"
  • Remote Friendly — works over LAN or internet; index from any machine, query from anywhere
  • Private & Self-Hosted — your code stays on your server. Uses Ollama for embeddings (no OpenAI API needed)

Quick Start

  1. Install the extension
  2. Click the RagStack icon in the activity bar → open Your Brain
  3. In the toolbar's Connection dropdown, pick your server (This machine / LAN host / Local agent / Custom) — the health dot turns green when reachable
  4. Sign in (email + 6-digit code), then index a workspace from Your Projects if it isn't already
  5. Ask a question — the agent searches your code and answers with citations

Codeva — Terminal Mode (like Claude Code)

Just type codeva in any VS Code terminal:

codeva

Or via command palette: Ctrl+Shift+P → "Codeva: AI Terminal"

This opens an interactive AI coding assistant — ask questions, search code, index projects, get AI-powered answers with codebase context. No separate install needed.

Install codeva outside VS Code

One-line installers — no VS Code required — work on any machine with Node 18+ on PATH.

Linux / macOS:

curl -fsSL https://ai.multitest.ai/brain/install-codeva.sh | sh

Windows (PowerShell 5.1+):

iwr -useb https://ai.multitest.ai/brain/install-codeva.ps1 | iex

Both installers:

  1. Check for Node 18+ on PATH. If missing, print a one-line install hint (winget / scoop / brew / apt / dnf) and exit.
  2. Download the bundled CLI to ~/.local/share/ragstack/codeva.js (Linux/macOS) or %USERPROFILE%\.local\share\ragstack\codeva.js (Windows).
  3. Drop a launcher at ~/.local/bin/codeva (POSIX) or %USERPROFILE%\.local\bin\codeva.cmd (Windows). The Windows installer also adds ~/.local/bin to your user PATH automatically (persists across sessions; open a new terminal afterwards).
  4. Print a PATH hint on POSIX if ~/.local/bin isn't already on PATH.

Inspect the script before piping it to a shell (recommended for any curl | sh or iwr | iex):

curl -fsSL https://ai.multitest.ai/brain/install-codeva.sh
iwr -useb https://ai.multitest.ai/brain/install-codeva.ps1 | Select-Object -ExpandProperty Content

If you host your own ai-stack, override the origin:

CODEVA_ORIGIN=https://my-ai.example.com/brain \
  curl -fsSL https://my-ai.example.com/brain/install-codeva.sh | sh
$env:CODEVA_ORIGIN = "https://my-ai.example.com/brain"
iwr -useb $env:CODEVA_ORIGIN/install-codeva.ps1 | iex

Updating codeva

codeva is a thin client, so to update it you just re-run the installer — it overwrites the CLI with the latest version. There is no separate update command; the installer is the updater. Your saved login (~/.ragstack/session.json) persists.

Linux / macOS:

curl -fsSL https://ai.multitest.ai/brain/install-codeva.sh | sh

Windows (PowerShell):

iwr -useb https://ai.multitest.ai/brain/install-codeva.ps1 | iex

Then open a new terminal and run codeva. (Self-hosted: prepend your own CODEVA_ORIGIN as shown above.)

Installed codeva via the VS Code extension instead (no standalone install)? Then update the extension to the latest .vsix, and regenerate the CLI: Command Palette → "Codeva: AI Terminal". Open a new terminal afterward.

Most of codeva's behaviour is server-side, so the CLI rarely needs updating — refresh it when a new release adds CLI commands or changes defaults.

Sign in with email OTP

The first time you use codeva, sign in to get a JWT (stored at ~/.ragstack/session.json, valid 30 days):

codeva> /login
  • Local machine with a browser — the browser opens to a sign-in page, you enter your email, receive a 6-digit code by email, paste it, the browser redirects back to a loopback URL and codeva captures the JWT automatically.
  • SSH / headless server — codeva detects no browser, switches to paste-token mode. It prints a URL you open on a different machine; after verifying the code, the page shows a /paste <token>:<email>:<expires> command. Copy it, paste into codeva, done.

The same JWT also auto-flows into VS Code's ragstack.authToken setting (via a ~/.ragstack/session.json file watcher) so the Brain panel signs in alongside the CLI.

  ╔══════════════════════════════════════╗
  ║  Codeva — AI Coding Assistant       ║
  ║  powered by RagStack                ║
  ╚══════════════════════════════════════╝

  codeva> how does the wallet page fetch real balance?
  Searching codebase...
  Found 6 relevant chunks
  Thinking...

  The wallet page fetches the real balance via...

  ── Sources ──
  72%  src/pages/Wallet.tsx
  68%  src/api/agent.ts

Terminal commands:

Command Description
/login Sign in with email + 6-digit code (browser or paste-token mode)
/paste <blob> Paste a sign-in blob from the out-of-band login page
/logout Remove the saved session
/whoami Show signed-in user
/search <query> Search code only (instant, no LLM)
/index Index current directory
/stats Show index statistics
/server local\|lan\|cloud Switch AI server (persists to ~/.ragstack/config.json)
/model general\|code Switch LLM model
/read <file> Display a file
/help Show all commands
/quit Exit
any text RAG search + AI answer

Server Configuration

Click the server button in the sidebar to choose your AI stack:

Option URL When to use
Local http://localhost:30810 RAG server running on your machine
LAN http://192.168.x.x:30810 RAG server on another machine in your network
Cloud https://your-domain.com/rag RAG server exposed via reverse proxy (Traefik, Nginx)
Custom Any URL Your own endpoint

Network Examples

Same machine (development):
  ragstack.serverUrl = http://localhost:30810

Office LAN (shared AI server):
  ragstack.serverUrl = http://192.168.1.50:30810

Remote / VPN / Cloud (works from anywhere):
  ragstack.serverUrl = https://ai.mycompany.com/rag

Kubernetes with Traefik:
  ragstack.serverUrl = https://ai.mycompany.com/rag
  (Traefik strips /rag prefix and routes to the RAG server NodePort)

Requirements

RagStack requires a running RAG server with:

  • Ollama — Local LLM runtime with nomic-embed-text model
  • pgvector — PostgreSQL with vector extension
  • RAG Server — FastAPI server (included in the RagStack repo)

Quick Setup (Docker)

# Pull the embedding model
ollama pull nomic-embed-text

# Start pgvector
docker run -d --name pgvector -p 5432:5432 \
  -e POSTGRES_PASSWORD=password \
  pgvector/pgvector:pg17

# Start RAG server
docker run -d --name rag-server -p 30810:8100 \
  -e DB_HOST=host.docker.internal \
  -e DB_PASSWORD=password \
  -e OLLAMA_HOST=http://host.docker.internal:11434 \
  your-rag-server-image

Kubernetes Setup

Deploy Ollama, pgvector, and the RAG server as K8s services. Expose the RAG server via NodePort (30810) or through an Ingress/Traefik route. See the RagStack repo for full K8s manifests.

Settings

Setting Default Description
ragstack.serverUrl http://localhost:30810 RAG server URL (use the sidebar button to change)
ragstack.topK 8 Number of search results
ragstack.projectName (folder name) Project name for grouping indexed files
ragstack.indexExtensions .py,.ts,.tsx,.js,.jsx,.scss,.css,.sql,.yaml,.yml,.md,.json,.toml,.html,.go,.rs,.java,.cs,.rb,.php,.sh File extensions to index
ragstack.skipDirs node_modules,.git,dist,build,__pycache__,.venv,venv,.next,coverage,.turbo,.cache Directories to skip during indexing

Commands

Command Shortcut Description
RagStack: Search Code Ctrl+Shift+P Open search prompt
RagStack: Search Selected Text Right-click menu Search with selected text
RagStack: Index Project Sidebar "Index" button Index a project folder
RagStack: Clear Project Index Ctrl+Shift+P Delete all chunks for a project
Codeva: AI Terminal Ctrl+Shift+P or type codeva Open interactive AI terminal (like Claude Code)
Codeva: Install shell command Ctrl+Shift+P Drop ~/.local/bin/codeva for use outside VS Code (runs on activate too)

How It Works

Your Code (VS Code)              Your AI Server
┌──────────────┐     HTTPS/HTTP     ┌─────────────────┐
│  Index:      │ ──────────────────>│  RAG Server     │
│  file chunks │   POST /index      │  (FastAPI)      │
│              │                    │       │         │
│  Search:     │ ──────────────────>│       v         │
│  "how does   │  POST /retrieve    │  Ollama         │
│   auth work" │                    │  nomic-embed    │
│              │ <──────────────────│       │         │
│  Results:    │   JSON response    │       v         │
│  score + code│                    │  pgvector       │
└──────────────┘                    │  (cosine search)│
                                    └─────────────────┘
  1. Index: Each file is chunked (~800 chars), embedded into 768-dim vectors via Ollama's nomic-embed-text, and stored in pgvector. Unchanged chunks are skipped automatically on re-index.
  2. Search: Your query is embedded the same way, then pgvector finds the most similar code chunks using cosine similarity.
  3. Navigate: Click a result header to open the file and jump to the matching code in your editor.

Supported Languages

TypeScript, JavaScript, Python, Go, Rust, Java, C#, Ruby, PHP, Shell, SQL, SCSS, CSS, HTML, YAML, JSON, TOML, Markdown — and any other text-based file via custom ragstack.indexExtensions.

Support

  • Website: multitrader.ai
  • Email: osvaldo.martini@gmail.com
  • Issues: GitHub Issues

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft