agentify-sh/safeexec
View on GitHub ↗ ★ 170 Shell
gates destructive commands like rm -rf, npm audit fix --force, git reset/revert, from losing uncommited work
4 mentions on Hacker News by 2 people: 1 story, 3 comments · first 2025-12-14 · latest 2026-06-08
20082026
-
…agent cannot run destructive rm -rf or git reset --hard commands, it has saved me many many times https://github.com/agentify-sh/safeexec 3) For mac users, summarizes and speaks out loud after codex finishes a turn…
comment by agentifysh · 2026-06-08 · in Ask HN: What are tools you have made for yourself since the advent of AI? -
not really projects but productivity tools for codex/claude code etc https://github.com/agentify-sh/safeexec/ - this will prevent rm -rf or git reset --hard being run by off chance when used with --dangerously-bypass-permissions flag…
comment by agentifysh · 2025-12-15 · in Ask HN: What Are You Working On? (December 2025) -
▲ 1
Show HN: SafeExec: Destructive Command Interceptor for Codex/Claude/Agentsstory by agentifysh · 2025-12-15 · 0 comments
-
Someone in the Reddit thread linked to https://github.com/agentify-sh/safeexec/ for mitigation.
comment by layer8 · 2025-12-14 · in Claude CLI deleted my home directory and wiped my Mac