anyone had an agent get around a rule you set for it?
retained text
posted a while back about staging/allowlists for client agent work, got good replies, but nobody's actually answered the one thing that's been bugging me since. if an agent's blocked from running a destructive command directly, what stops it from just writing that same command into a script file and running the script instead? tried it, it worked, the block never saw it coming since it only checks commands, not files the agent just wrote. still haven't found anyone who's actually solved this, just people (me included) hoping it doesn't happen. anyone actually caught this in the wild, or found a real fix?
document fetched 2026-09-20 00:19 · canonical https://reddit.com/r/AI_Agents/comments/1wkkjnz/anyone_had_an_agent_get_around_a_rule_you_set_for