Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By karanb192v1.0.1MITIn 1 marketplace
Surfaces settings or skills changes made mid-session by installers, npm postinstall scripts or other processes, and can block them. Blocking is opt-in via CONFIG_WATCH_BLOCK=true; policy settings always only warn.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Tripwire for out-of-band config changes: makes every mid-session settings/skills change loudly visible, or blocks it outright.
A ConfigChange hook fires whenever a configuration file changes while a session runs: an installer script, an npm postinstall payload (the CHAINDROP worm hid in .claude/settings.json exactly this way), or any other process rewriting settings behind Claude Code's back. By default it emits a systemMessage naming the changed source (and file path when the payload includes one) so the change is visible in the session instead of sliding by silently. Opt into block mode and it exits 2 to stop the change from taking effect; policy_settings cannot be blocked by hooks per the docs, so those still warn.
Pairs with config-guard: config-guard (PreToolUse) blocks the agent's own writes to its guardrail config; config-watch covers the out-of-band path.
One caveat, straight from the docs: the hooks reference guarantees ConfigChange can block via exit 2 but does not document the event's payload schema. The hook therefore parses defensively (accepts source / config_source / matcher and file_path / path) and logs the raw payload so you can inspect what your Claude Code version actually sends.
/plugin marketplace add karanb192/claude-code-hooks # once per machine
/plugin install config-watch@claude-code-hooks
Restart Claude Code, done. (Or from a shell: claude plugin install config-watch@claude-code-hooks.)
| Event | Matcher | What happens |
|---|---|---|
| ConfigChange | user_settings|project_settings|local_settings|policy_settings|skills | Warn mode (default): emits a systemMessage naming the changed source, exit 0. Block mode: exits 2 with the reason on stderr, stopping the change from taking effect; policy_settings still warns. Either way, the raw payload is logged. |
Note: ConfigChange also fires for changes YOU make (e.g. /config, editing settings in your editor), so block mode is opt-in for hardened setups; the default keeps legitimate workflows friction-free.
Optional, set via environment variable:
| Variable | Default | Purpose |
|---|---|---|
CONFIG_WATCH_BLOCK | false | Set to the literal string true to block config changes (exit 2) instead of warning. Any other value keeps warn mode. policy_settings cannot be blocked and always warns. |
Logs each event (including the raw payload, since the schema is undocumented) to ~/.claude/hooks-logs/<date>.jsonl. It makes no network calls (the script only uses fs and path), so everything stays on your local machine.
/plugin uninstall config-watch@claude-code-hooks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub karanb192/claude-code-hooks --plugin config-watchPlugins from other owners that cover similar ground