Claude Code mod
path-jail
Restricts Write/Edit to the project root, the temp folder and ~/.claude (resolves symlinks)
Install
/plugin marketplace add MatheusChiodi/cockpit
/plugin install path-jail@cockpitMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L1Reads: reads files, reads env vars, reads mod state
- Sees
- Write calls, Edit calls
- Hooks
tool.call
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- MatheusChiodi/cockpit
- Folder
mods/path-jail- Marketplace
cockpit- Author
- Matheus Chiodi
- Type
- Workflow mods
- License
- MIT
- Last updated
- 18 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is path-jail?
Restricts Write/Edit to the project root, the temp folder and ~/.claude (resolves symlinks) It is a mod for Claude Code, from MatheusChiodi/cockpit on GitHub.
What can the path-jail mod access?
Its widest reach is "reads" (reads files, reads env vars, reads mod state). It sees Write calls, Edit calls. Like any mod, it runs with your permissions.
How do I install path-jail?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add MatheusChiodi/cockpit and then /plugin install path-jail@cockpit.
Is path-jail popular?
MatheusChiodi/cockpit has 1 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 18 October 2026.
More workflow mods
parking-lot
1MatheusChiodi/cockpit
/park <idea> captures an idea without derailing the work and shows it again at the end of the turn
plan-first
1MatheusChiodi/cockpit
/plan-first makes Claude list the files and the order before editing a change that spans more than two files
output-lines
1MatheusChiodi/cockpit
Heads a long slash command output with the command name and its line count, so you know how far to scroll back
pm-command
1MatheusChiodi/cockpit
/pm names the project's package manager and shows its install, add, remove, run and exec commands
open-path
1MatheusChiodi/cockpit
/open opens a file or folder of the project in the system's default app; refuses paths outside the project
priciest-turn
1MatheusChiodi/cockpit
/priciest shows the most expensive turn of the session, its share of the total, the prompt and the tools it ran
Browse the most popular Claude Code mods, all workflow mods, or the skills and MCP server directories.