scope-watch
Reviewed
at commit 39335b2
Warn when observed file edits leave a chosen path prefix.
0 upvotes
Log in to upvote or save- Made by
- Yash Thakker
- Pinned commit
-
39335b2d1e5885573fabbb98ef2dd4c49f011f86 - What we checked
-
Watches the file paths of Edit and Write calls and shows a toast and a pane entry when a file outside a path prefix you choose (default src/) was edited. It only observes: it never blocks or changes an edit, reads no files, runs no programs and makes no network calls. The warning list is kept in memory only.
Review details
Static review of the source at the pinned commit; not run. Registers handlers for session.start (registers the /scope-watch command), command.run (opens the pane), tool.call filtered to Edit and Write (awaits next(e), then returns the unchanged result; uses $.session.cwd to make the path relative and, if the edit was not denied or an error and the path lacks the prefix, calls $.ui.toast and invalidates the render) and ui.render for the Pane. State (prefix and last 30 out-of-prefix paths) is a module variable, nothing is persisted. ui.js only holds pure text helpers. Advisory only; Bash and MCP edits are not seen. No npm dependencies, no network, no file or process access.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- 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/scope-watch/)