overwrite-guard

by systemNEO · ★ 0 · updated 8 days ago

Guardsvalidates

0

Stops Claude from rewriting whole existing files: Write on an existing file and shell commands that replace one (>, tee, cp, mv, python/node writes) are refused with a request to use Edit.

install overwrite-guard

Install

/plugin marketplace add systemNEO/claude-code-mods
/plugin install overwrite-guard@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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
tool.call
API calls
$.env.get$.fs.list$.fs.stat$.session.cwd$.session.root$.ui.log
Can see
Write calls/"^(Bash|PowerShell|Monitor)$"/ calls
Reach
level 1 of 3 reads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/systemNEO/claude-code-mods
Path in repo
overwrite-guard
Source commit
743133a the exact code the scan read
Author
@systemNEO
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 systemNEO/claude-code-mods

delete-guard

systemNEO/claude-code-mods

Deleting outside the project folder requires the user's approval (Bash, PowerShell, cmd, subagents, MCP).

★ 0ToastsGuardsCommands

wsl-file-links

systemNEO/claude-code-mods

Under WSL, absolute paths in Claude's replies become clickable file:// links that Windows opens (files and folders).

★ 0Reskins