Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rather than let results be random, iteratively and continuously add more and more guardrails and grounding.

Tests, linting, guidance in response to key events (Claude Code hooks are great for this), automatically passing the agent’s code plan to another model invocation then passing back whatever feedback that model has on the plan so you don’t have to point out the same flaws in plans over and over.. custom scripts that iterate your codebase for antipatterns (they can walk the AST or be regex based - ask your agent to write them!)

Codify everything you’re looping back to your agent about and make it a guardrail. Give your agent the tools it needs to give itself grounding.

An agent without guardrails or grounding is like a person unconnected to their senses: disconnected from the world, all you do is dream - in a dream anything can happen, there’s nothing to ensure realism. When you look at it that way it’s a miracle coding agents produce anything useful at all :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: