DJPalefaceSD/rostech-mods/tree/main/plugins/hands-off
关于这个 mod
Hands-Off
标记为属于你的文件。交还之前 Claude 不能编辑,因此你手动处理的文件会保持原样。
- /hands-off notes/plan.md 标记文件;标记文件夹会覆盖其中所有内容。
- /hands-off list 显示标记。
- /hands-off release notes/plan.md 交还一个文件;/hands-off release all 交还全部文件。
它会守护 Claude 的 Edit、Write 和 NotebookEdit 工具:对已标记路径的编辑会被拒绝,并告诉 Claude 先询问你。标记跨会话保存在你自己机器上的 Claude Code 插件存储中,不会发送任何内容。
这个 mod 源自一个简单规则:当使用者说某个文件属于自己时,Claude 不得写入;不是拼写错误、重新格式化或明显正确就能例外,只有使用者能交还文件。旧版本只能显示旗标和警告,后来改为真正阻止写入的版本。
已在 Claude Code 2.1.287 上测试。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add DJPalefaceSD/rostech-mods claude plugin install hands-off
原文 / README
Hands-Off
Files you mark as yours. Claude cannot edit them until you hand them back, so a file you are working on by hand stays exactly as you left it.
/hands-off notes/plan.mdmarks a file. A folder covers everything inside it./hands-off listshows what is marked./hands-off release notes/plan.mdhands one back./hands-off release allhands back everything.
It guards Claude's Edit, Write and NotebookEdit tools: an edit to a marked path is refused, with a message telling Claude to ask you first. The marks are kept across sessions on your own machine, in Claude Code's plugin store. It sends nothing anywhere.
Why this exists
I edit my own files by hand, in Notepad++.
I direct Claude Code all day. I do not write the code.
I run Claude like a workshop, and Claude is the foreman. On 15 August 2026, half in character, I told the foreman this, at 1:23 in the afternoon:
"Next time i come in here and 2 minutes later some idiot AI is [messing] with MY files in any way that i dont approve then you habndel it"
Nothing had been wrecked yet. That was the point. I wanted it fixed before it happened.
The rule it made: when I say a file is mine, no Claude writes to it. Not a typo. Not a reformat. Not because the change is obviously right. And I release it. Nobody else does.
The first version was a flag and a warning. A shell script kept the list, and a hook printed it above every turn. It could not stop a write. It only made a write deliberate instead of an accident.
This mod is the version that stops it.
Tested with Claude Code 2.1.287.
