Building Guardrails for an Autonomous Coding Agent on a Real RepoEngineering agent safety. How to build AST syntax boundary checks, automated test gates, Git worktree isolation, and diff size limiters in TypeScript.8/1/202625 min read