It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
Version
0.4.1
License
MIT
Repo stars
5
Last change
2026-10-10
What it can reach
Holds a command
Sees tool calls
Needs Claude Code 2.1.287 or later. Tested on 2.1.289. A cat or a 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. watched_files defaults to STATUS.md, CLAUDE.md, and MEMORY.md. /shared-file-guard lists the files this session has seen, and off or on is a command you type. If the mod fails, the command runs as normal. It never changes the command and never sends anything anywhere. Settings are asked at install, or later with /plugin configure shared-file-guard@mehmetmutlu. Paths built inside a script, and relative paths after a cd in the same command, are not seen. It compares date and size, not a hash. It checks, then the shell writes, and it does not lock, so two sessions that pass in the same few milliseconds can still overwrite each other. The refusal text is added to what the model reads.
The install name is shared-file-guard. This page adds the author's name. The marketplace name is mehmetmutlu. The marketplace also holds answer-buttons, arcade, and other mods. This one installs on its own. The refused shell write is why this page files it under workflow. It guards STATUS.md, CLAUDE.md, MEMORY.md, and the names you set, across sessions. It is not a hold of a risky shell command. memory-fork draws what the memory fork changed above the prompt, and refuses the session's writes into the memory folder. This one refuses a shell write to a shared file another session changed.
Demo
Screenshot of the author's GitHub page.
What it hooks into
session.startWhen a session starts
command.runWhen you run its slash command/shared-file-guard
tool.callAround a tool call, where it can hold oneReadEditWriteBash
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/shared-file-guardShow which shared files this session has seen, or turn the guard off|on
Files
The author's README and source, 4 files. They load when you open them.