protected-paths-guard Claude Code mod

Blocks file-editing tools on configured sensitive paths.

  • tool.call

Install commands

Installation not verified

Review the author’s instructions and source before installing.

Open source repository ↗

Review the source before installing. Installation guide →

Permissions Facts

Can read files
–
Can write files
–
Can access the network
–
Can read environment variables
–
Can change prompts
–
Can intercept tool calls
Yes

Capability evidence is not a security certification; “–” does not mean a capability is absent.

Source & updates

Last updated
2026-10-08
License
MIT
Plugin version
0.2.0
Claude Code
2.1.287+
Source
8da17d6
Repository stars
32,476 · Repository contains 18 mods in this directory
Source files
Plugin manifest ↗Hooks configuration ↗Registered module ↗

Source inventory

Declared events: tool.call{tool=Edit|Write|NotebookEdit}

Declared API calls: $.ui.log

Can intercept tool calls evidence

protected-paths-guard:60 ↗

on('tool.call', { tool: ['Edit', 'Write', 'NotebookEdit'] }, ($, e, next) => {

Review methodology · Source and updates · Runtime limits · Function hooks guide