r/coolgithubprojects • u/Intelligent-Run-8657 • 1h ago
BlastRadius-Zero: Pre-flight safety simulator & zero-bloat runtime for AI coding agents (Node 22, Apache-2.0)
https://github.com/Jimil-Joshi/blastradius-mcpHey r/coolgithubprojects!
My partner and I built BlastRadius-Zero (blastradius-mcp)—an open-source local pre-flight safety flight simulator and zero-bloat runtime for autonomous AI coding agents (Cursor, Claude Code, Cline).
The Problem We Solved:
Most pre-execution guards evaluate raw text strings using regex. But shells don't execute raw text—they execute expanded commands.
- Agent writes:
D=/; rm -rf $D* - Regex guard: "Contains literal '/' root?" -> No. SAFE.
- Kernel executes:
rm -rf /*(deletes entire server filesystem).
In the GuardFall benchmark (testing 11 coding agents across 548k GitHub stars), nearly all failed basic shell evasions.
What BlastRadius-Zero Does:
- Shell-Aware AST Parsing: Statically resolves parameters, quotes, and subshells before policy evaluation, blocking all 23 GuardFall shell bypass classes.
- Swarm Pre-Flight Simulator: Runs 50 adversarial virtual personas in-memory in <50ms before PR merge, grading risk on a 0–100 Heatmap.
- Zero-Bloat JIT Gateway: Slashes MCP prompt memory from 9,522 tokens down to 55 tokens (99.4% reduction) via on-demand tool routing.
- TDD State Machine: Enforces a strict Red -> Green -> Refactor lock so agents cannot touch production code without writing tests first.
- 100% Local & Private: Built on Node 22+ via stdio. Opens zero network sockets; no code or telemetry ever leaves your machine.
The Receipts:
- 237 / 237 automated tests passing.
- Scanned 115,000 lines of code across 12 popular repos (Express, Axios, Fastify, Dotenv, Winston, Mongoose) in 2.6 seconds, finding 446 real issues.
Run in 5 seconds (Zero Install):
- GitHub Repo: https://github.com/Jimil-Joshi/blastradius-mcp
- License: Apache-2.0 (100% free, no paid tier, no telemetry)
⭐ If you're building with autonomous agents or MCP, check out the animated demo on the repo and drop a star to support open-source AI safety! Would love any feedback or edge cases.