Agent Plugins Marketplace
← All plugins

file-guard

v1.0.0

Keeps Claude's file edits inside the project: refuses writes outside it (symlinks resolved), never lets a tool touch .git internals, and asks before it changes lockfiles, CI workflows, migrations or secrets.

Claude Code

By awesome-claude-modsLicense: MIT0 GitHub starsUpdated 2 weeks ago

Directory evidence

Runtimes
Claude Code
Parsed components
0 skill or MCP entries
Source updated
Oct 4, 2026
Manifest status
Canonical path parsed

The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →

Install file-guard for Claude Code

Installs for the current user
claude plugin marketplace add IchenDEV/agent-plugin-mkt
claude plugin marketplace update agent-plugin-marketplace
claude plugin install file-guard@agent-plugin-marketplace

Paste and run these commands in a terminal with Claude Code. They add and refresh the PluginsMP catalog, then install this plugin.

The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.

Get the source manually
git clone https://github.com/Singh-AP/awesome-claude-mods

Clone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is mods/safety/file-guard/.

Plugin files

mods/safety/file-guard/
└── .claude-plugin/plugin.json

Plugin manifests1

mods/safety/file-guard/.claude-plugin/plugin.json
{
  "name": "file-guard",
  "version": "1.0.0",
  "description": "Keeps Claude's file edits inside the project: refuses writes outside it (symlinks resolved), never lets a tool touch .git internals, and asks before it changes lockfiles, CI workflows, migrations or secrets.",
  "author": {
    "name": "awesome-claude-mods",
    "url": "https://github.com/Singh-AP/awesome-claude-mods"
  },
  "homepage": "https://github.com/Singh-AP/awesome-claude-mods/tree/main/mods/safety/file-guard",
  "repository": "https://github.com/Singh-AP/awesome-claude-mods",
  "license": "MIT",
  "keywords": [
    "mod",
    "safety",
    "files",
    "guardrails",
    "sandbox",
    "yolo"
  ],
  "userConfig": {
    "protect": {
      "type": "string",
      "title": "Protected files",
      "description": "Comma-separated globs inside the project that ask before Claude changes them. ** crosses folders; a pattern without / matches the file name anywhere; !glob exempts.",
      "default": ".github/workflows/**, **/migrations/**, **/*.lock, package-lock.json, pnpm-lock.yaml, yarn.lock, Cargo.lock, poetry.lock, **/.env*, !**/.env.example, !**/.env.sample, !**/.env.template, **/*.pem, **/id_rsa*, .git/**"
    },
    "extraRoots": {
      "type": "string",
      "title": "Extra writable folders",
      "description": "Comma-separated folders outside the project that Claude may write to (~ allowed), e.g. ~/notes, ~/work/shared-config.",
      "default": ""
    },
    "allowTemp": {
      "type": "boolean",
      "title": "Allow temp folders",
      "description": "Let Claude write to /tmp, /var/tmp and $TMPDIR.",
      "default": true
    },
    "allowClaudeDirs": {
      "type": "boolean",
      "title": "Allow Claude's own folders",
      "description": "Let Claude write its memory, plans, todos and session mods under ~/.claude (never ~/.claude/settings.json).",
      "default": true
    },
    "fenceReads": {
      "type": "boolean",
      "title": "Fence reads too",
      "description": "Also refuse Read calls outside the project and the folders above.",
      "default": false
    }
  }
}

If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.

[file-guard on Agent Plugins Marketplace](https://pluginsmp.com/plugins/file-guard)