← Portfolio

agent-gate — Deterministic Safety Fence for AI Agents

Code: 02_ai-engineering-code/agent-gate/agent_gate/cli.py + README.md

Problem. Autonomous coding agents leak secrets, delete files, rewrite git history, and claim "done" without proof.

What I built. A portable, stdlib-only Python guardrail (no dependencies, drop into any repo), with 79 passing tests:

Design stance. Off by default; fail-closed; never pretends an unprovable proof is satisfied. Hardened from a real incident where a prior agent leaked secrets via git add -A and silently killed a background job.

Why it matters. Direct evidence I understand agent failure modes and build proof-based, deterministic safety around them — squarely an AI-native infrastructure concern.

GG · Applied AI Engineering portfolio · synced to youdontneedmy.help design