Home / Claude Code mods / Security / shared-repo-guard

shared-repo-guard

shared-repo-guard is a Claude Code mod by naoanao that for repos where several AI agents (or you and an agent) work in the same folder: stops secret values from leaving your .env, pushes to public remotes, and git commands that would wipe work.

Updated 2026-10-12

What is shared-repo-guard?

shared-repo-guard is a Claude Code mod by naoanao that for repos where several AI agents (or you and an agent) work in the same folder: stops secret values from leaving your .env, pushes to public remotes, and git commands that would wipe work. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authornaoanao
Repositorynaoanao/shared-repo-guard
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (88/100)
Rank#4,079 of 5,272 Claude Code mods; #427 in Security
LicenseMIT
Last commit2026-10-12
Hooks5 events
Sees/"^(?!(Bash|PowerShell|Read|Write|Edit)$)"/ calls, Bash|PowerShell calls, Read calls, Write|Edit calls
Draws onAbovePrompt

Is shared-repo-guard safe to install?

shared-repo-guard scores 88/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.process.runruns processes
$.session.cwd
$.ui.invalidatedraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install shared-repo-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/naoanao/shared-repo-guard
    claude plugin validate ./shared-repo-guard/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add naoanao/shared-repo-guard && claude plugin install shared-repo-guard@shared-repo-guard

Or ask Claude to set it up

Paste this into Claude Code and it installs shared-repo-guard for you:

Install the "shared-repo-guard" Claude Code mod from https://github.com/naoanao/shared-repo-guard. Run claude plugin validate on it first and show me what it can access before you enable it.