Content
# Interceptor Demo
<img width="1380" height="183" alt="interceptor5" src="https://github.com/user-attachments/assets/31ebf552-9879-4f65-bf6b-73a397d120fe" />
A free preview of **Interceptor** — smarter code search for AI editors (Cursor, VS Code, Void, Claude). Your code stays on your machine; the demo sends back only the snippets that matter, so you spend fewer tokens on every question.
**Full Interceptor** adds more tools, richer analytics, and optional AI assistance (local or online). Details: **[interceptor.gallocode.com](https://interceptor.gallocode.com)** · [Buy full version — €39.99](https://www.gallocode.com/payment/public/index.php?product=interceptor)
## Install
```cmd
install.bat
```
PowerShell: `.\install.ps1`
Then restart your IDE and reload MCP servers. Dashboard: **http://127.0.0.1:8791**
## What the demo includes
- Two search tools for your AI agent (`code_search`, `semantic_code_search`)
- Runs fully **offline** — no API keys, no cloud calls
- Basic session dashboard on port **8791**
- MCP key: **`interceptor-demo`** (enable in Settings → MCP)
The demo does **not** install editor rules or copy config into your projects.
## Measured savings (demo vs plain grep)
Benchmark on this codebase — compared to dumping every raw grep line into the agent:
| Search type | Tokens saved |
|-------------|--------------|
| Exact code search | **~41%** |
| Natural-language search | **~91%** |
The full product builds on the same idea and can reduce usage further with smarter ranking and optional AI-assisted search.
## Demo vs full Interceptor
| | **Demo (this repo)** | **Full Interceptor** |
|---|----------------------|----------------------|
| Cost | Free preview | [€39.99 — buy](https://www.gallocode.com/payment/public/index.php?product=interceptor) · [interceptor.gallocode.com](https://interceptor.gallocode.com) |
| Connection | Offline only | Offline, **local Ollama**, or **online AI** |
| AI models | None | Local models on your PC, or cloud models via Ollama / online providers |
| Tools | 2 search tools | Full toolkit + session analytics |
| Dashboard | Basic (:8791) | Detailed savings dashboard |
| Setup | `install.bat` | Full installer from GalloCode |
**Offline (demo & full):** Everything runs on your machine. No data leaves your disk.
**Local Ollama (full only):** Run AI models on your own hardware for smarter search planning — still private, no cloud required.
**Online AI (full only):** Connect to cloud or hosted models when you want stronger reasoning without running a local GPU.
## Project layout
```
Interceptor-AI - Demo/
├── install.bat / install.ps1
├── interceptor-demo/ # MCP server (2 tools)
├── demo-dashboard/ # Local dashboard :8791
└── scripts/
├── benchmark-demo.mjs
└── smoke-test-demo.mjs
```
## Tests
```cmd
cd interceptor-demo && npm run compile && cd ..
node scripts\smoke-test-demo.mjs
node scripts\benchmark-demo.mjs
```
## Privacy
All demo searches run locally. Nothing is uploaded unless you later install the full version with an online AI mode enabled.