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

이 세션이 읽지 않았거나, 다른 세션이 읽은 이후 변경한 공유 파일(STATUS.md, CLAUDE.md, MEMORY.md 또는 사용자가 지정한 파일)에 대한 셸 쓰기를 거부합니다.
mutlumehmet/claude-plugins/tree/main/plugins/shared-file-guard

동일한 프로젝트에서 여러 세션을 실행하기 위한 Claude Code 모드입니다. 이 세션이 공유 파일(STATUS.md, CLAUDE.md, MEMORY.md 또는 사용자가 지정한 파일)을 한 번도 읽지 않았거나, 다른 세션이 읽은 이후 변경한 경우 해당 파일에 대한 셸 명령 쓰기를 거부합니다. claude-plugins의 일부입니다.
python3 스크립트, sed -i, tee, mv, cp와 같은 셸의 공백을 메웁니다.cat 또는 grep는 읽기로 간주됩니다. 세션 자체의 쓰기는 다음 쓰기를 차단하지 않습니다. 아직 존재하지 않는 파일을 생성하는 것은 허용됩니다./shared-file-guard는 이 세션이 본 파일을 나열합니다. /shared-file-guard off|on.| 설정 | 기본값 | 기능 |
|---|---|---|
| watched_files | STATUS.md,CLAUDE.md,MEMORY.md | 쉼표로 구분된 파일 이름; *는 *register*.md와 같이 이름 문자의 모든 실행과 일치합니다. |
tool.call는 읽은 내용만 기록합니다. Bash의 tool.call는 해당 명령을 거부할 수 있지만, 변경하지는 않습니다. command.run는 자체 /shared-file-guard 명령에만 응답하고 다른 명령에는 응답하지 않습니다.Claude Code 2.1.287 이상(모드)이 필요합니다. 2.1.289에서 테스트되었습니다.
/plugin marketplace add mutlumehmet/claude-plugins
/plugin install shared-file-guard@mehmetmutlu
모드는 Claude Code 내에서 사용자 권한으로 실행됩니다. 모드를 설치하기 전에 코드를 읽으십시오.
설정은 설치 시 또는 나중에 /plugin configure shared-file-guard@mehmetmutlu를 사용하여 요청됩니다.
cd 이후의 상대 경로는 인식되지 않습니다.Mehmet Mutlu가 제작했으며, claude-plugins의 일부입니다. 그의 더 많은 작업은 mehmetmutlu.dev에서 확인할 수 있습니다.
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
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.