scope-guard
by Atchyut · ★ 1 · updated yesterday
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.
Install
/plugin marketplace add theonly1me/claude-code-mods/plugin install scope-guard@claude-code-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
tool.callturn.stepturn.startturn.completeprompt.submitui.rendersession.startcommand.run- API calls
$.command.register$.fs.read$.model.complete$.prompt.submit$.session.append$.store.get$.store.set$.ui.ask$.ui.invalidate$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePrompt- Can see
every tool callevery prompt- Reach
- level 2 of 3 drives Claudereads filespersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/theonly1me/claude-code-mods
- Path in repo
plugins/scope-guard- Source commit
6d69bf8the exact code the scan read- Author
- Atchyut @theonly1me
- License
- MIT
- First published
- Last pushed
- First listed here
- On X
- Mentioned in 1 post on X
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
Posts about this repo
@ClaudeDevs I've created 11 different useful and fun mods, they're open source and available at https://github.com/theonly1me/claude-code-mods I'll create more mods that I find useful. Here's a quick demo of them, install instructions in the README
More from theonly1me/claude-code-mods
change-journal
theonly1me/claude-code-mods
A live HTML page that shows every change Claude makes, with diffs, the reason for each edit, checks, and before/after behavior flows.
decision-lens
theonly1me/claude-code-mods
See the decisions Claude made in each turn, why it made them, and steer future turns with keep and avoid rules.
grill
theonly1me/claude-code-mods
While Claude works on your task, a sharp partner asks the questions that change the result. Answers reach Claude mid-turn. Brainstorm and side chat modes too.
little-harvest
theonly1me/claude-code-mods
Every file that changes becomes a crop: Claude's edits and yours grow a farm in its own pane, tests bring sun or storms, and passing turns fill the barn.
looks
theonly1me/claude-code-mods
Make Claude Code look the way you like: four themes (Retro CRT, Punk, Synthwave, Zen paper) switched with /theme, tidier tool calls, and optional one-line tool rows and replies centered at a reading width.
night-feast
theonly1me/claude-code-mods
A vampire feeds on every tool call Claude finishes while the moon tracks how full the context window is. Between meals it stalks, swoops, and lies in wait. Dawn means it is time to compact.
pocket-familiar
theonly1me/claude-code-mods
A fox spirit that lives on your work: passing tests feed it, finished turns cheer it, it plays while you are quiet, and it grows up to nine tails.
samurai-dojo
theonly1me/claude-code-mods
A Claude samurai cuts down a Codex, Gemini, or ChatGPT foe for every tool call, and meditates, trains, and duels between them through four seasons.
slayer-corps
theonly1me/claude-code-mods
Tanjiro, Nezuko, Zenitsu, and Inosuke take turns against demons up to Muzan as you and Claude work, and spar between strikes. The story continues every session.
unslop
theonly1me/claude-code-mods
Finds AI slop in Claude's changes (dashes, comment blocks, comments that repeat the code, tests that assert nothing, filler phrases) and tells Claude to remove it. Shows what was unslopped.