All shelves / Mods / Safety
scope-guard
By theonly1me
scope-guard is a Claude Code safety mod by theonly1me.
Asks before Claude edits, deletes, or moves files outside what you asked for, and flags milder drift above the prompt with keys to pull Claude back.
DrawsHolds a command
Install
The marketplace name is claude-code-mods.
claude plugin marketplace add theonly1me/claude-code-mods claude plugin install scope-guard@claude-code-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 4
- Last change
- 2026-10-04
What it can reach
- Draws in the session
- Holds a command
- Sees tool calls
Claude Code 2.1.289 or later; run /reload-plugins in an open session after installing. Each change the rules flag costs one short confirm call to the helper model, claude-sonnet-5-5 at medium effort, and Claude waits up to 20 seconds for it before the change runs; most changes never reach the model. /scope flag only flags, /scope off stops the checks, and manyFiles, 8 by default, sets how many files one turn may change.
The marketplace, claude-code-mods, holds theonly1me's eleven mods, six for work and five pixel games; each installs on its own. Stopping a change you did not ask for is why this page files it under safety. file-guard, by Singh-AP, holds writes outside the project and into .git. persona, by omeerdvrn, refuses edits outside the role you set. This one keeps your last three prompts as the task and checks each Edit, Write, NotebookEdit, and each rm, git rm, mv, or git mv against cheap rules first: a file not in your request that Claude did not read this turn, a file outside the project, a large rewrite. Only then does the helper model decide in scope, mild drift, or clear drift; if that call fails, the rules decide alone. Clear drift opens Claude Code's question dialog with Allow once, Allow for this task, and Stop.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/scope
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/scopeScope Guard: show the task, allowed paths, and recent flags. on, off, ask, or flag sets the mode.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- theonly1me
- Category
- Safety
- Marketplace
- claude-code-mods
- Folder
- plugins/scope-guard
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 4
- Last change
- 2026-10-04
- Language
- TypeScript
- Files
- 15