contract-watch
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
After the model changes a function signature with Edit, adds the callers ripwire finds to the Edit's result, so the model fixes them before the build does.
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
After Claude edits a function signature, it asks the separate ripwire program (which must already be on your PATH) which callers no longer match and adds them to the Edit result so Claude fixes them. An optional deny mode (off by default) blocks git commit, push and merge until callers match. Nothing leaves your machine.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers /contract-watch with on, off, mode note|deny), tool.call for Edit (after the edit: compares old_string and new_string with regexes to find one-line function signatures whose parameters changed; runs git rev-parse --show-toplevel --show-prefix in the file's directory and ripwire <repo root> --edit-check=<file>:<symbol>, timeout 20 s; appends callers to the Edit result), turn.complete and prompt.submit (re-checks open symbols and adds a reminder note for Claude) and tool.call for Bash (checks open symbols before git commit, push or merge; only in deny mode it denies the command, narrowed to staged files for plain commits via git diff --cached --name-only). Settings are kept with $.store; findings go to the shared sidebar if installed, otherwise to the transcript. ripwire is an external CLI that is not part of the plugin and was not reviewed; it runs on the repository root, so whatever it does with the source tree is outside this review. No network calls, no writes, no env access. The eslint config and Makefile in the folder are dev tooling not loaded by the hooks; dev dependencies not reviewed.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: no
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/contract-watch/)