shell-edit-guard
by David DeCorso · ★ 0 · updated 5 days ago
Blocks Bash commands that write files (inline scripts, sed -i, redirects, tee) and points the model at Edit/Write instead
Install
/plugin marketplace add daviddecorso/claude-mods/plugin install shell-edit-guard@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startcommand.runturn.startturn.completetool.call- API calls
$.command.register$.env.get$.process.run$.session.cwd$.session.id$.state.get$.state.set- Can see
every tool call- Reach
- level 2 of 3 runs processesreads env varsreads mod state
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/daviddecorso/claude-mods
- Path in repo
shell-edit-guard- Source commit
526497fthe exact code the scan read- Author
- David DeCorso @daviddecorso
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from daviddecorso/claude-mods
aq
daviddecorso/claude-mods
Pane for the per-repo aq prompt queue: pick items, batch them into the prompt box, queue drafts, and let Claude queue follow-ups
dev-servers
daviddecorso/claude-mods
Runs each repo's dev servers as named services on fixed ports, with a pane, filtered log reads and start/stop tools for the model
handoff
daviddecorso/claude-mods
Hands a plans/ .md plan to agy (headless with live progress, or copied for agy -i) or Jules (cloud PR), and starts a plan-diff-review when it's done; the review's findings can go back to agy to fix