Home / Claude Code mods / Security / scope-guard

scope-guard

scope-guard is a Claude Code mod by theonly1me that notices when Claude drifts outside your request. Clear drift waits for your answer in a question dialog; milder drift is flagged above the prompt with a pull-back key.

Updated 2026-10-05

What is scope-guard?

scope-guard is a Claude Code mod by theonly1me that notices when Claude drifts outside your request. Clear drift waits for your answer in a question dialog; milder drift is flagged above the prompt with a pull-back key. It is listed under Security and has 4 GitHub stars.

TypeClaude code mod
Authortheonly1me
Repositorytheonly1me/claude-code-mods
Popularity4 GitHub stars
CategorySecurity
SecurityLow risk (84/100)
Rank#768 of 5,272 Claude Code mods; #104 in Security
LicenseMIT
Last commit2026-10-05
Stars this week+2
Hooks8 events
Seesevery prompt, every tool call
Draws onAbovePrompt

Is scope-guard safe to install?

scope-guard scores 84/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.fs.readreads files
$.model.completedrives Claude
$.prompt.submitdrives Claude
$.session.append
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.invalidatedraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install scope-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/theonly1me/claude-code-mods
    claude plugin validate ./claude-code-mods/plugins/scope-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add theonly1me/claude-code-mods && claude plugin install scope-guard@claude-code-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs scope-guard for you:

Install the "scope-guard" Claude Code mod from https://github.com/theonly1me/claude-code-mods/tree/main/plugins/scope-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from theonly1me/claude-code-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • change-journal: A live HTML page that shows every change Claude makes, with diffs, the reason for each edit, checks, and before/after be (Review before installing)
  • decision-lens: See the decisions Claude made in each turn, why it made them, and steer future turns with keep and avoid rules. (Low risk)
  • grill: While Claude works on your task, a sharp partner asks the questions that change the result. Answers reach Claude mid-tur (Review before installing)
  • little-harvest: Every file that changes becomes a crop: Claude's edits and yours grow a farm in its own pane, tests bring sun or storms, (Review before installing)
  • looks: Make Claude Code look the way you like: four themes (Retro CRT, Punk, Synthwave, Zen paper) switched with /theme, tidier (Low risk)
  • night-feast: A vampire feeds on every tool call Claude finishes while the moon tracks how full the context window is. Between meals i (Review before installing)
  • pocket-familiar: A fox spirit that lives on your work: passing tests feed it, finished turns cheer it, it plays while you are quiet, and (Review before installing)
  • samurai-dojo: A Claude samurai cuts down a Codex, Gemini, or ChatGPT foe for every tool call, and meditates, trains, and duels between (Review before installing)