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 atretyak1985v0.1.3Apache-2.0In 1 marketplace
Mod pack (function hooks, no daemon needed): keeps file tools inside this project's roots, redacts secret-shaped values in tool results before Claude sees them (the raw output may still be kept in the local transcript; see README Limits), routes production-deploy shell commands to the native ask dialog, and can hide agents of packs this project has not enabled. Reads policy from .claude/project.json at runtime; additive to core's shell hooks.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Project isolationisolation
Deny file tools (Read, Edit, Write, MultiEdit, NotebookEdit, Glob, Grep) on paths outside this project's roots, and destructive Bash (rm, mv, cp, > redirects, cd) that names an absolute path outside them.
booleandefault true
Production-deploy guardprodGuard
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it decides whether tool calls may run; sees, changes or blocks tool calls; reads files; reads environment variables (AGENT_PROJECT, AGENT_WORKSPACE_ROOT, HOME, TMPDIR); reads your settings; changes what Claude reads (system prompt, context, reminders).
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.
Send Bash commands that match a production-deploy pattern to the native ask dialog, whatever the permission rules say; in auto, dontAsk and bypassPermissions mode, where no dialog would reach a person, refuse them instead.
booleandefault true
Secret redactionredaction
Replace secret-shaped values in tool results with [REDACTED:<rule>] before Claude sees them. The raw output may still be kept in the local transcript (see README Limits).
booleandefault true
Hide agents of disabled packsagentOffer
Do not offer the model '<pack>:<agent>' agents whose *-pack is not enabled for this project (project.json enabledPacks or project/local settings enabledPlugins).
booleandefault false
Extra rootsextraRoots
Comma-separated extra directories the isolation guard treats as inside this project (absolute, ~/..., or relative to the project root).
stringdefault
Defer heavy MCP toolsdeferHeavyTools
Put MCP tools whose description exceeds 2048 characters behind ToolSearch.
booleandefault false
Guards for running many projects on one machine, written as a mod: one
hooks module of function hooks (hooks/hooks.json → hooks/register.ts), not
shell scripts. It needs no daemon. Each session reads its policy from the
project's own .claude/project.json through $.fs when it starts. When a hook
cannot judge, it falls through to the next hook, so a broken guard never
blocks a session.
| Guard | Hook | What it does |
|---|---|---|
| Isolation | tool.call | Denies Read, Edit, Write, MultiEdit, NotebookEdit, Glob and Grep on a path outside the project's roots. In Bash it denies rm/mv/cp of an absolute path outside the roots, an output redirect (>, >>, &>) to one, and cd into one. The deny reason is one line naming the path, the first roots, and the extraRoots option. |
| Redaction | session.append | Before Claude sees a tool result, replaces every secret-shaped value inside its tool_result block with [REDACTED:<rule>]. The raw output may still be kept in the local transcript (see Limits). Prompt rows, assistant rows and the row's other blocks are never touched. The status line counts redactions (guard: 3 secrets redacted). |
| Production guard | tool.check | Sends a call that matches a production-deploy pattern to the native ask dialog, even where the permission rules would have allowed it. In auto, dontAsk and bypassPermissions mode, where no dialog would reach a person, it refuses the call instead, and the reason tells the operator to run it from a session in default mode. A deny from beneath stays a deny. See "Permission mode" below. |
| Agent offer | agent.offer | Hides <name>-pack agents of packs this project has not enabled from the model. Off by default. |
| Heavy-tool deferral | tool.describe | Puts an MCP tool whose description is longer than 2048 characters behind ToolSearch. Off by default. |
These are read on session.start, which fires again on every reload:
$.session.root(), $.session.cwd());.claude/project.json: the directory that holds it, plus every
repos[] entry, resolved relative to that directory ("../shared-lib" works);<AGENT_WORKSPACE_ROOT>/<AGENT_PROJECT> when both are set (the project's
name stands in for an unset AGENT_PROJECT);~/.claude, /tmp, /private/tmp, $TMPDIR (and its /private spelling);extraRoots.With no project.json the guard still runs, with the session root,
~/.claude and the temp dirs as its roots.
A repos[] or extraRoots entry is ignored when it is /, the home
directory, a directory above home, or a directory above the project directory
or the session root. A project name that is not one path segment adds no
workspace root. Such an entry would switch the fence off rather than widen
it. Each ignored entry is logged once per session.start as
guard-pack: ignored root <dir> from <repos[]|extraRoots> (<why>). A sibling
of the project ("../shared-lib") and a directory under home
("~/notes") still work. To open more than that, turn isolation off.
hooks/patterns/prod.json holds the default production-deploy globs. It has
the same strings, in the same order, as the daemon's
DefaultProdDeployPatterns. The project's own
approvals.prodDeployPatterns from project.json are added to them. The
syntax is Tool or Tool(argGlob): the tool name must match exactly, the
glob is matched case-insensitively against the tool's argument string
(command for Bash), and * matches any run of characters.hooks/patterns/secrets.json holds the redaction rules, ported from the
daemon's response-layer redaction. Each rule has a stable name (the
<rule> in the mark), a JavaScript pattern, optional flags, and an
optional replace template ($1 keeps a captured prefix such as
Bearer , and {mark} is the mark itself).A hooks module can import only code, so the runtime reads both files through
$.fs. The tests run with no file system, so hooks/testkit.ts carries a
verbatim copy of each file between // BEGIN mirror: and // END mirror:
markers. The daemon's parity tests (go test ./internal/approvals ./internal/api -run Parity in tools/swarmery) compare the JSON files with
the Go lists and fail when a testkit copy differs from its file, so a pattern
edit means editing the Go list, the JSON file and the testkit copy together.
core's hooks/lib/prod-deploy-patterns.txt is pinned to the same Go list, and
scripts/tests/fixtures/prod-deploy-patterns/cases.tsv holds the rows every
matcher must agree on.
7-day copy clicks
npx claudepluginhub atretyak1985/swarmery --plugin guard-packBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground