Menu

Free beta: the guard rails we built after our AI agent's mistakes (Claude Code hooks)
📰

Free beta: the guard rails we built after our AI agent's mistakes (Claude Code hooks)

DEV Community: python·Tom Hitchcock·5 days ago
#seqkxKpw
#devtopython#devto#dev#agent#done
Reading 0:00
15s threshold

I run a small business in Sydney with an AI agent doing a lot of the day-to-day work: emails, posting, scheduled jobs, the lot.

It's brilliant. It has also:

sent the same email to someone twice,

told me a job was "done" when the job had quietly failed,

burned through a day's budget in a loop that kept retrying the same thing,

and very nearly tidied up the wrong folder.

Each time, we added a rule so it couldn't happen again. Those rules are now a small kit, and I'm looking for 3 to 5 people who run Claude Code (or any agent that runs shell commands) to try it free and tell me honestly whether it helped.

What's in it

Dangerous-command block (PreToolUse hook): stops rm -rf / , force-push, git reset --hard , DROP TABLE , DELETE with no WHERE , terraform destroy , curl | sh , printing .env and more (18 rules) before they run.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.