Kotro 是单一 Rust 二进制本地控制平面,串联 Claude Code/Continue/Cline/Cursor 等编码 Agent 与 MCP 工具,提供工具 schema 固定、prompt 注入检测、结果脱敏缓存和预算控制。
我构建了 Kotro——一个本地控制平面,位于编码 Agent(Claude Code、Continue、Cline、通过 HTTPS bridge 连接的 Cursor)和它们使用的模型及 MCP 工具之间。一个约 15MB 的 Rust 二进制文件运行在本地主机上。这个 sidecar 不需要 SaaS。
MCP 平面(mcp-wrap):固定工具 schema、捕获 rug-pull、验证工具/调用参数、可选的有符号 TaskEnvelope 审批
LLM 平面:在工具结果中扫描提示注入(默认仅警告;设置 KOTRO_INJECTION_BLOCK=true → HTTP 400)、脱敏、缓存、预算、终止开关
一个旋钮搞定:KOTRO_MODE=disabled|audit|enforce
Escape Lab:CI 对抗语料库,有已记录的能力缺口(不是"100% 拦截")。诚实的限制:它不是 OS 出向防火墙。直接 shell 出或打开原始 socket 的 Agent 不会经过这个代理。
git clone https://github.com/kotro-labs/kotro-proxy-engine
cd kotro-proxy-engine && make demo-injection
首次构建需要 Rust + Go。Dashboard:http://127.0.0.1:9090/dashboard
curl -sL https://raw.githubusercontent.com/kotro-labs/kotro-proxy-engine/main/scripts/install.sh | bash
# 或者:brew install kotro-labs/tap/kotro-proxy
仓库:https://github.com/kotro-labs/kotro-proxy-engine (MIT)
欢迎反馈——尤其是 audit→enforce 是否是正确的默认路径。

We're a place where coders share, stay up-to-date and grow their careers.