CacheSurgeon: in-flight MCP firewall + prompt-cache surgeon, open-sourced
Fickle-Connection851 · reddit · 2026-12-01
The same author's intro post for CacheSurgeon targets devs wiring multiple MCP servers into Claude Code, Codex, or Cursor. Two quiet failure modes: tool schema order drift between turns invalidates strict KV prefix caching (up to 10× uncached rates), and dangerous tool calls are only caught after the model emits them. The 2ms FastAPI proxy canonicalizes tool schemas and injects cachecontrol breakpoints (verified 0% → 98.7% hits locally), inspects toolcalls/tooluse blocks before execution to neutralize destructive commands, and scrubs .env/API keys before cloud egress with cross-SSE-chunk re-hydration. MIT core, 30-second setup.
Related event: CacheSurgeon Open-Sourced to Fix Silent Cache Misses in Coding Agents(2 posts)→
More from coding & agent
- Duke Lab Hires Postdoc to Build Agents for Protein Design with Wet-Lab Feedback — KevinKaichuang · 2026-12-01
- Agent browser layer KERNEL raises $60M Series B at $600M valuation — aakashgupta · 2026-12-01
- RELAY: training-free early stopping cuts token cost in multimodal multi-agent reasoning — showlab · 2026-12-01
- SEO Skill reverse-engineers rivals' AI search playbooks for $0.86 a report — iannuttall · 2026-12-01
- Agentests turns engineering rules into tests, reserving LLMs for semantic calls — Ok-Buyer-9421 · 2026-12-01
- Three tries, no PR: GitHub Copilot agent struggles with its own bread-and-butter — craig_macdonald · 2026-12-01