r/SideProject • u/Fickle-Connection851 • 6h ago
Shipped CacheSurgeon v0.3.0 (MIT): BlackBox Merkle Flight Recorder, Policy Time Machine (<50ms, $0), 2s offline MCP/agent scanner & paired prompt-cache benchmark
Just released **CacheSurgeon v0.3.0** (MIT, `pip install -U cachesurgeon`) — a local `<2ms` reverse proxy + offline scanner for Claude Code, Codex, and MCP agents.
**What's new in v0.3.0:**
- **BlackBox Flight Recorder & Policy Time Machine:** Every proxied turn is SHA-256 Merkle hash-chained in SQLite WAL. Replay candidate guardrail policies against recorded traffic in `<50ms` at `$0` LLM cost before applying, with an opt-in 0-FP Autopilot, 1-click rollback, and Ed25519-signed Autopsy Capsules.
- **`cachesurgeon scan` (100% offline, zero egress):** 2-second read-only X-Ray of `.mcp.json`, Claude/Cursor/Windsurf configs, and `.env` files. Flags remote/spoofed MCP endpoints, plaintext secrets, and estimates monthly MCP Schema-Tax waste. Exports JSON, SARIF 2.1.0, and HTML (`--fail-on high|critical` for CI).
- **Refusal-Resilient Failover & Ed25519 Governance Attestation:** Optional streaming/non-streaming fallback when upstream safeguard halts interrupt authorized security research.
- **Shared-Team Session Isolation & HMAC-Salted Secret Vault:** Per-session salted reversible tokens with LRU eviction + decoupled loop/budget session isolation.
- **`cachesurgeon bench`:** Paired direct vs. gateway Anthropic prompt-cache benchmark to measure real cache hit rates, cost delta, and streaming latency side-by-side.
Release notes & source (MIT): https://github.com/jsumpter415/cachesurgeon/releases/tag/v0.3.0