What is collision-guard?
collision-guard is a Claude Code mod by nateherkai that asks before Claude edits a file another open chat changed in the last 30 minutes: Proceed, Move to a worktree, or Cancel (/guard). It is listed under Security and has 37 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | nateherkai |
| Repository | nateherkai/claude-code-mods |
| Popularity | 37 GitHub stars |
| Category | Security |
| Security | High risk (52/100) |
| Rank | #251 of 5,272 Claude Code mods; #42 in Security |
| License | MIT |
| Last commit | 2026-10-02 |
| Stars this week | +18 |
| Hooks | 5 events |
| Sees | Edit|Write|NotebookEdit calls, every prompt |
| Draws on | nothing |
Is collision-guard safe to install?
collision-guard scores 52/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.session.cwd | |
$.session.id | |
$.session.surfaces | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.ask | draws interface |
$.ui.log | draws interface |
How do I install collision-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/nateherkai/claude-code-mods claude plugin validate ./claude-code-mods/collision-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add nateherkai/claude-code-mods && claude plugin install collision-guard@nateherk-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs collision-guard for you:
Install the "collision-guard" Claude Code mod from https://github.com/nateherkai/claude-code-mods/tree/main/collision-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from nateherkai/claude-code-mods
This repository has 4 Claude Code mods on MCPMods.
- cache-keeper: Keeps a big chat's prompt cache warm, warns before an expensive cold restart, shows every local chat on one board (/boar (Review before installing)
- goal-meter: 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 (High risk)
- recording-mode: /rec before you record: masks keys, personal details, and business figures on screen and keeps private files closed (/re (Review before installing)