What is package-guard?
package-guard is a Claude Code mod by LupusMalusDeviant that before Claude installs or runs a package (npm, pnpm, yarn, bun, npx, pip, uv, poetry, pipx, cargo), asks the public registry about it. Holds the command when the package does not exist (a. It is listed under Security and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | LupusMalusDeviant |
| Repository | LupusMalusDeviant/mod-box |
| Popularity | 1 GitHub stars |
| Category | Security |
| Security | Low risk (88/100) |
| Rank | #3,866 of 9,397 Claude Code mods; #475 in Security |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 4 events |
| Sees | Bash calls |
| Draws on | AbovePrompt |
Is package-guard safe to install?
package-guard scores 88/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 7 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.process.run | runs processes |
$.state.get | |
$.state.set | |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install package-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/LupusMalusDeviant/mod-box claude plugin validate ./mod-box/plugins/package-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add LupusMalusDeviant/mod-box && claude plugin install package-guard@mod-box
Or ask Claude to set it up
Paste this into Claude Code and it installs package-guard for you:
Install the "package-guard" Claude Code mod from https://github.com/LupusMalusDeviant/mod-box/tree/main/plugins/package-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from LupusMalusDeviant/mod-box
This repository has at least 9 Claude Code mods on MCPMods.
- mod-box: 21 Claude Code mods in one plugin, each switchable on its own; /mod-box opens the window to switch, configure and import (Low risk)
- blast-radius: Holds risky shell commands (rm -rf, git reset --hard, git clean, force push, migrations) and shows what they would hit. (Review before installing)
- cache-meter: Band: time left on the warm cache, hit rate, context as weather with its trend over 12 turns, plan limits, compact and k (Review before installing)
- ci-watch: After every git push, follows the GitHub Actions runs (via gh) until they finish; with an open pull request (also after (Review before installing)
- handoff: /handoff writes a handoff note to .claude/handoff.local.md; a new session offers to continue from it. (Low risk)
- pet: A desktop pet and little companion on the Windows desktop, always on top and in front of borderless games: a cardboard b (High risk)
- read-guard: Holds a whole-file Read (no offset/limit) of a file above the limit, a lockfile, minified code or a source map, and the (Low risk)
- relay: Main agent dispatches tasks to persistent worker sessions via CLI (Claude Code, Codex, OpenCode or the Werkbank servers (High risk)