mutlumehmet/claude-plugins/tree/main/plugins/shared-file-guard

Refuses a shell write to a shared file (STATUS.md, CLAUDE.md, MEMORY.md, or the files you name) that this session has not read, or that another session changed since
mutlumehmet/claude-plugins/tree/main/plugins/shared-file-guard

A Claude Code mod for running several sessions on the same project. It refuses a shell command that would write a shared file (STATUS.md, CLAUDE.md, MEMORY.md, or the files you name) when this session never read it, or another session changed it since. Part of claude-plugins.
python3 scripts, sed -i, tee, mv and cp.cat or grep counts as a read; a session's own writes do not block its next one; creating a
file that does not exist yet is allowed./shared-file-guard lists the files this session has seen; /shared-file-guard off|on.| Setting | Default | What it does |
|---|---|---|
| watched_files | STATUS.md,CLAUDE.md,MEMORY.md | Comma separated file names; * matches any run of name characters, such as *register*.md |
tool.call on Read, Edit and Write only records what was read. tool.call on Bash may refuse that one command; it never changes it. command.run answers its own /shared-file-guard command and no other.Needs Claude Code 2.1.287 or later (mods). Tested on 2.1.289.
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install shared-file-guard@mehmetmutlu
A mod runs inside Claude Code with your permissions. Read the code before you install any mod.
Settings are asked for at install, or later with /plugin configure shared-file-guard@mehmetmutlu.
cd in the same command, are not seen.Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add mutlumehmet/claude-plugins claude plugin install shared-file-guard
A Claude Code mod for running several sessions on the same project. It refuses a shell command that would write a shared file (STATUS.md, CLAUDE.md, MEMORY.md, or the files you name) when this session never read it, or another session changed it since. Part of claude-plugins.
python3 scripts, sed -i, tee, mv and cp.cat or grep counts as a read; a session's own writes do not block its next one; creating a
file that does not exist yet is allowed./shared-file-guard lists the files this session has seen; /shared-file-guard off|on.| Setting | Default | What it does |
|---|---|---|
| watched_files | STATUS.md,CLAUDE.md,MEMORY.md | Comma separated file names; * matches any run of name characters, such as *register*.md |
tool.call on Read, Edit and Write only records what was read. tool.call on Bash may refuse that one command; it never changes it. command.run answers its own /shared-file-guard command and no other.Needs Claude Code 2.1.287 or later (mods). Tested on 2.1.289.
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install shared-file-guard@mehmetmutlu
A mod runs inside Claude Code with your permissions. Read the code before you install any mod.
Settings are asked for at install, or later with /plugin configure shared-file-guard@mehmetmutlu.
cd in the same command, are not seen.Made by Mehmet Mutlu, part of claude-plugins. More of his work at mehmetmutlu.dev.