ai-agent

Safeexec

Gates destructive commands like rm -rf, npm audit fix --force, git reset/revert, from losing uncommited work
160 stars6 forksShellUpdated 4/16/2026100% free · open source
What it does

Safeexec wraps your shell and blocks destructive commands (e.g., rm ‑rf, npm audit fix --force, git reset) unless you explicitly confirm, protecting uncommitted work.

When to use it
  • You’re about to run a script that might accidentally delete files or reset git history.
  • Your team shares a terminal and you want a safety net against accidental rm ‑rf or git reset --hard.
  • You run CI/CD pipelines locally and need a guard against commands that could erase your repo.
Ready-to-paste prompt
safeexec npm audit fix --force   # safeexec will pause, show you what will be changed, and ask "Proceed? (y/N)" before running the risky fix.
Heads up: Safeexec only intercepts commands launched through the `safeexec` binary; running `rm -rf` directly in the terminal will bypass the guard, so remember to use the alias or wrapper for every destructive operation.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/safeexec && curl -fsSL https://workflowstacks.com/api/skills/safeexec/claude-skill -o ~/.claude/skills/safeexec/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Safeexec works
Codeflow
Free to inspect

Safeexec is a small Shell project (~900 lines across 1 code files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 5 months ago, MIT license, no tests found.

Size
Small codebase
~900 lines · 1 code files · 7 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Shell
No API keys detected
Shell 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
READMENo tests foundThin docsNo CIMIT licenseUpdated 5 mo ago
Quick Actions
Details
Creator
agentify-sh
Language
Shell
Category
ai-agent
Published
12/13/2025

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.