collision-guard (VedantAndhale)

Reviewed at commit 3364994

Asks before Claude edits a file another chat on this machine changed in the last 30 minutes. Each chat keeps its own small ledger; no model calls, no network.

Made by
Vedant Andhale
What we checked

Before Claude edits a file that another Claude Code chat on this machine changed in the last 30 minutes, it asks you to proceed or cancel. Each chat writes a small list of the files it edited (paths, times, folder) to a folder in your Claude config directory. No network or model calls; /collisions shows or changes the window.

Review details

Static review of the source at the pinned commit; not run. Hooks: session.start (registers the /collisions command, reads session id and cwd), tool.call for Edit, MultiEdit, Write and NotebookEdit, and command.run for /collisions. Before an edit it lists the ledger folder (CLAUDE_CONFIG_DIR or ~/.claude, then collision-guard), reads other chats' JSON ledgers modified within the window, and if one edited the same file calls $.ui.ask; Cancel returns a deny note, an unclear answer cancels, and if nobody can be asked the edit proceeds. After a successful edit it writes this chat's ledger <sessionId>.json (file key, time, mtime, path, cwd) with $.fs.write and updates the status line with the count of other active chats. It also stats the edited file. Ledger files from ended sessions are not deleted, but they contain paths only and are ignored once older than the window. Settings (window, on/off) are kept in $.store. Reads USERPROFILE, HOME and CLAUDE_CONFIG_DIR only to find that folder. No network, process or model calls.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of collision-guard (VedantAndhale)
Made this mod? Add a badge to your README

modsforClaude badge for collision-guard (VedantAndhale)

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/collision-guard-vedantandhale.svg)](https://modsforclaude.com/mods/collision-guard-vedantandhale/)

← All mods