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
- Grok 4.5 is now free inside Cursor, the popular AI coding IDE — mark_k · 2026-07-21
- Travel MCP Server adds flight, hotel, weather and budget tools for agents — modelcontextprotocol · 2026-07-21
- OpenAI hackathon project stalls as Codex struggles on voice, while Claude spots the issue — ColleenMBrady · 2026-07-21
- Douyin Video Analysis MCP turns share links into structured video summaries — modelcontextprotocol · 2026-07-21
- An indie builder open-sourced 50+ AI apps and says users should only pay for tokens — matchaman11 · 2026-07-21
- Shared agent workspaces fail in a fixed order, from stale reads to zombie writes — mrvladp · 2026-07-21