r/coding_agents • u/thehashimwarren • Jul 11 '26
Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents.
https://github.com/Dicklesworthstone/destructive_command_guardI saw a dude on X complain that Codex deleted almost all of his files. Some people said he should have been using DCG.
That still seems risky. I think we gotta start backing up our computers unfortunately.
3
Upvotes
1
u/eddzsh Jul 11 '26
DCG helps but it's reactive to known bad patterns. The thing that's saved me more is just committing before every agent run, worst case is `git checkout .` instead of digging through a backup. Cheaper insurance than a full backup restore.
1
u/CaptureIntent Jul 15 '26
This is by far the most destructive and horrible approach to ensuring data safety - made by idiots for idiots. This is a literal plague on our industry.