scope-guard (YeonwooSung)
Reviewed
at commit f7da140
Scope Guard
0 upvotes
Log in to upvote or save- Made by
- YeonwooSung
- Pinned commit
-
f7da140f3fc63aa5c083f75cd48700517e882c68 - What we checked
-
Adds a /scope command where you list the project paths Claude may change; it then labels each changed file as in scope, outside scope or already changed before you started. It only warns and never blocks edits. It runs read-only git status and remembers the file paths Claude wrote, with secrets masked.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since b375bb2; the rest carries over from the review at that commit. The only code change is the storage key: it is now scope-guard:v1:<hash of [cwd, session id]> instead of the raw JSON, with a fallback read of the old key when it is at most 256 characters, because long keys exceeded the host limit. hash is an existing export of the bundled runtime helper. Registers session.start (registers /scope), command.run for /scope (allow <path>, list, reset, help) and tool.call as a pure observer that awaits next(e) first and only records the target path of successful Write, Edit, MultiEdit and NotebookEdit calls. Runtime calls: $.session.cwd and $.session.id, $.store.get and $.store.set (state capped at 256 KiB), $.command.register, $.ui.toast on a failed save, and $.process.run restricted to git (git status --porcelain=v1 -z --untracked-files=all, 10 s timeout). Stored strings are masked for secrets; no tool input or output is stored. Like any git status call, git may honour repository-local config such as core.fsmonitor in the opened project; not reviewed beyond noting it. No npm dependencies, no network calls, no obfuscated code.
- 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: 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/scope-guard-yeonwoosung/)