collision-guard
by Nate Herk · ★ 7 · updated 3 days ago
Asks before Claude edits a file another open chat changed in the last 30 minutes: Proceed, Move to a worktree, or Cancel (/guard)
Install
/plugin marketplace add nateherkai/claude-code-mods/plugin install collision-guard@nateherk-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.endprompt.submittool.callcommand.run- API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.exists$.fs.list$.fs.read$.fs.write$.process.run$.session.cwd$.session.id$.session.surfaces$.store.get$.store.set$.ui.ask$.ui.log- Can see
every promptEdit|Write|NotebookEdit calls- Reach
- level 2 of 3 runs processeswrites filesreads filesreads env varspersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/nateherkai/claude-code-mods
- Path in repo
collision-guard- Author
- Nate Herk @nateherkai
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from nateherkai/claude-code-mods
cache-keeper
nateherkai/claude-code-mods
Keeps a big chat's prompt cache warm, warns before an expensive cold restart, shows every local chat on one board (/board), and hands a chat off to a fresh one (/handoff)
goal-meter
nateherkai/claude-code-mods
A progress bar for /goal built from Claude's own task plan: tasks done out of the plan, elapsed time, an ETA at the goal's own pace, and every chat's goal in /goals
recording-mode
nateherkai/claude-code-mods
/rec before you record: masks keys, personal details, and business figures on screen and keeps private files closed (/rec strict, /rec off, /rec config)