path-jail
by Plagemes · ★ 8 · updated 15 Oct 2026
Allows writes only inside the project root, resolving symlinks and .. tricks.
Install
/plugin marketplace add Plagemes/claude-mods/plugin install path-jail@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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
session.startcommand.runclassic.DirectoryAddedtool.call- API calls
$.clock.after$.command.register$.env.get$.fs.read$.fs.stat$.mods.hello$.mods.mode$.mods.publish$.mods.registerTab$.session.cwd$.session.root$.settings.read$.state.get$.state.set$.ui.log- Can see
classic hooks/"^(?:Edit|Write|MultiEdit|NotebookEdit|Bash)$"/ calls- Reach
- level 1 of 3 reads filesreads env varsreads settingsreads mod statedrawsother: $.mods.helloother: $.mods.modeother: $.mods.publishother: $.mods.registerTab
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Plagemes/claude-mods
- Path in repo
mods/path-jail- Source commit
e9815cethe exact code the scan read- Author
- @Plagemes
- 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 Plagemes/claude-mods
permission-log
Plagemes/claude-mods
Keeps a log of every tool call that was denied, and why.
permission-ping
Plagemes/claude-mods
Pings you with a sound and toast when Claude is waiting on your approval.
persona-switch
Plagemes/claude-mods
/persona switches Claude between reviewer, architect, teacher and other roles.
pii-in-logs
Plagemes/claude-mods
Flags log statements that print emails, passwords, tokens or other personal data.
port-check
Plagemes/claude-mods
Before a dev server starts, tells you if the port is already taken and by which process.
pr-describer
Plagemes/claude-mods
/pr-desc drafts a pull request title and description from your branch diff.
prod-guard
Plagemes/claude-mods
Stops production-affecting commands (terraform apply, kubectl on prod, DROP TABLE) unless explicitly allowed.
profile-run
Plagemes/claude-mods
/profile runs a command under a profiler and shows the hottest functions.
project-brain
Plagemes/claude-mods
A self-organising project memory that learns which decisions, conventions and fixes matter and recalls them like a neural network.
prompt-enhancer
Plagemes/claude-mods
/enhance rewrites your draft prompt into a precise, well-scoped request.
prompt-history
Plagemes/claude-mods
/history searches every prompt you have sent across sessions and reuses one.
prompt-lint
Plagemes/claude-mods
Gently flags vague prompts like 'fix it' and suggests what to add.
Related mods
Other mods in Guards, close to this one by stars.