内容
# 拦截器演示
<img width="1380" height="183" alt="拦截器5" src="https://github.com/user-attachments/assets/31ebf552-9879-4f65-bf6b-73a397d120fe" />
**拦截器** 的免费预览版 — 为 AI 编辑器(Cursor,VS Code,Void,Claude)提供更智能的代码搜索。您的代码保留在本地机器上;演示版仅发送重要的代码片段,因此您在每次提问时花费的令牌数量减少。
**完整拦截器** 添加了更多工具、更丰富的分析和可选的 AI 辅助(本地或在线)。详情请见:**[interceptor.gallocode.com](https://interceptor.gallocode.com)** · [购买完整版 — €39.99](https://www.gallocode.com/payment/public/index.php?product=interceptor)
## 安装
```cmd
install.bat
```
PowerShell: `.\install.ps1`
然后重启您的 IDE 并重新加载 MCP 服务器。仪表盘:**http://127.0.0.1:8791**
## 演示版包含的内容
- 为您的 AI 代理提供两种搜索工具(`code_search`,`semantic_code_search`)
- 完全**离线运行** — 无需 API 密钥,无需云调用
- 在端口 **8791** 上运行的基本会话仪表盘
- MCP 密钥:**`interceptor-demo`** (在设置 → MCP 中启用)
演示版**不**安装编辑器规则或将配置复制到您的项目中。
## 衡量节省(演示版 vs 普通 grep)
在此代码库上进行基准测试 — 与将每个原始 grep 行转储到代理中进行比较:
| 搜索类型 | 节省令牌 |
|-------------|--------------|
| 精确代码搜索 | **~41%** |
| 自然语言搜索 | **~91%** |
完整产品在此基础上构建,可以通过更智能的排名和可选的 AI 辅助搜索进一步减少使用。
## 演示版 vs 完整拦截器
| | **演示版(此仓库)** | **完整拦截器** |
|---|----------------------|----------------------|
| 成本 | 免费预览 | [€39.99 — 购买](https://www.gallocode.com/payment/public/index.php?product=interceptor) · [interceptor.gallocode.com](https://interceptor.gallocode.com) |
| 连接方式 | 仅离线 | 离线,**本地 Ollama** 或 **在线 AI** |
| AI 模型 | 无 | 本地模型在您的 PC 上,或通过 Ollama / 在线提供商提供的云模型 |
| 工具 | 2 种搜索工具 | 完整工具包 + 会话分析 |
| 仪表盘 | 基本(:8791) | 详细的节省仪表盘 |
| 设置 | `install.bat` | 来自 GalloCode 的完整安装程序 |
**离线(演示版和完整版):** 所有操作都在您的机器上运行。不会有数据离开您的磁盘。
**本地 Ollama(仅完整版):** 在您自己的硬件上运行 AI 模型,以进行更智能的搜索规划 — 仍然是私有的,不需要云支持。
**在线 AI(仅完整版):** 当您需要更强大的推理能力时,请连接到云或托管模型,而无需运行本地 GPU。
## 项目布局
```
Interceptor-AI - Demo/
├── install.bat / install.ps1
├── interceptor-demo/ # MCP 服务器(2 种工具)
├── demo-dashboard/ # 本地仪表盘 :8791
└── scripts/
├── benchmark-demo.mjs
└── smoke-test-demo.mjs
```
## 测试
```cmd
cd interceptor-demo && npm run compile && cd ..
node scripts\smoke-test-demo.mjs
node scripts\benchmark-demo.mjs
```
## 隐私
所有演示搜索都在本地运行。除非您稍后安装具有在线 AI 模式启用的完整版本,否则不会上传任何内容。