A coding-agent guardrail that checks 67 security gates before the model writes code
ZyOffsec · reddit · 2026-07-21
The author argues that most coding-agent guardrails fail because they run after code is written, which catches bad lines but misses omissions like missing rate limits, audit logs, or ownership checks.
- Their solution moves constraints into the write path.
- The skill can be loaded into Claude Code, Cursor, or Codex.
- Before emitting code, it checks the touched surfaces against 67 numbered gates covering injection, secrets, authorization, input validation, crypto, and logging.
- If something fails, it revises the output before writing it.
- It triages itself away on non-security work, so ordinary edits are mostly unaffected.
- The project is free, MIT-licensed, and has no telemetry.
The post ends by asking whether others constrain the agent in-loop or rely on post hoc review.
More from coding & agent
- Claude Code finds root backdoor in Honda Civic head unit, then debloats it — IndraVahan · 2026-10-26
- Claude Code + Monid MCP builds a $12K/year B2B prospecting engine on live data — aryanXmahajan · 2026-10-26
- Karpathy shares CLAUDE.md rulebook to stop AI coding agents from piling up tech debt — mdancho84 · 2026-10-26
- Rethinking dependencies in the agent era: drop libs that save 20 lines of code — gethackteam · 2026-10-26
- RustGIS hits 2,000 GitHub stars in two weeks with agent-first architecture — giswqs · 2026-10-26
- Vercel Ships 12 New Products at Its 2026 Conference as It Races Rivals for the Agent Entry Point — FinanceYF5 · 2026-10-26