scope-watch

Reviewed at commit 39335b2

Warn when observed file edits leave a chosen path prefix.

Made by
Yash Thakker
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
Hooked events
Screenshot of scope-watch
Made this mod? Add a badge to your README

modsforClaude badge for scope-watch

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/scope-watch.svg)](https://modsforclaude.com/mods/scope-watch/)

← All mods