protected-paths-guard 0.2.0
Denies Edit, Write and NotebookEdit calls on sensitive paths (.env files, lockfiles, CI workflows, git internals, private keys) with a glob allowlist override. A tool.call hook with an array matcher.
Install
git clone https://github.com/AlanSmithDev/ag-claude-templates.git claude --plugin-dir ag-claude-templates/cli-tool/components/mods/security/protected-paths-guard
Run in a terminal. Claude Code loads the mod from that folder for the session.
Hooks into
- Tool calls
Also in AlanSmithDev/ag-claude-templates
More guardrails mods
- blast-radius 0.1.0 See what a risky command would change before it runs. 279.9k
- agents-md 0.1.0 AGENTS.md as project instructions, by one option. Under claude-md-or-agents-md a project with no instruction files of its own gets its AGENTS.md files instead: a prompt.context hook asks $.fs.ancestors for every AGENTS.md and .claude/AGENTS.md from the filesystem root down to the working director... 155.5k
- claude-mem 15.12.1 mod + skill Persistent memory for AI coding agents: the next session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and more. 114.9k
- ruflo-rvf 0.3.7 mod + skill RVF format for portable agent memory, session persistence, and cross-platform transfer. As a mod (ADR-445): a write guard that keeps secrets out of memory, sessions and transfers, /rvf-mod, and a status file the console shows 81.6k
- openviking-memory 0.7.22 mod + skill Long-term semantic memory for Claude Code, powered by OpenViking. Auto-recall relevant memories at session start and capture important information during conversations. 42.1k