v0.1.0by Gonzalo Verdugo
protect-paths
Stops Claude from editing secrets, lockfiles and any path you list.
0 downloadsUpdated 6 Oct 2026guard · secrets · lockfiles
See it run
A sample Claude Code session played through this mod's hooks, in your browser. What it draws is drawn. Files, network, processes and the model are never reached: each call is listed under the terminal with the stand-in it got.
It is a simulation: a mod that depends on a real answer shows what it does with an empty one.
README
protect-paths
Refuses any Edit or Write on a file that should not change by accident: .env files, keys,
and the lockfiles of npm, bun, pnpm, yarn, Cargo, Go and Poetry. The paths option adds globs
of your own, comma-separated (migrations/**, *.tf); a glob with no slash matches the file name
at any depth. Claude gets told which rule stopped it, and the person can still edit by hand.
It does not read commands: a Bash command that writes one of those files is not stopped.
It touches tool calls (Edit and Write, which it can refuse).
Files
5 files, 4.8 KB unpacked, in the latest version.
Pick a file to read it.
Versions
A published version never changes. Each archive is pinned by its sha256 in the marketplace.
| Version | Published | Size | sha256 | |
|---|---|---|---|---|
| 0.1.0 | 6 Oct 2026 | 2.7 KB | e5550e6afbf7… | zip |