guard-edit 0.2.0

Denies Bash commands that write a file of a git project (sed -i, redirections, tee, scripts that write files, cp or mv over a file): such edits go through Edit or Write, so they show their diff and /rewind can undo them.

alvaro.martin 0 on alvaromr/claude-mods

Install

Claude Code
/plugin marketplace add alvaromr/claude-mods
/plugin install guard-edit@claude-mods

Run both lines inside Claude Code.

Hooks into

  • Tool calls

Also in alvaromr/claude-mods

More guardrails mods

All guardrails mods
Repo stars
0
Repo forks
0
License
MIT
Last commit
Checked
d829fcc,
Source on GitHub