All shelves / Mods / Safety
guard-pack
By atretyak1985
guard-pack is a Claude Code safety mod by atretyak1985.
Holds file tools and shell moves that leave the project's roots, asks before a production deploy, and redacts secrets in a tool result before Claude reads it.
DrawsHolds a command
Install
The marketplace name is swarmery.
/plugin marketplace add atretyak1985/swarmery /plugin install guard-pack@swarmery
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.0
- License
- Apache-2.0
- Repo stars
- 7
- Last change
- 2026-10-14
What it can reach
- Draws in the session
- Holds a command
- Sees tool calls
Each session reads its policy from the project's .claude/project.json when it starts. With no project.json it still runs, using the session root, ~/.claude, and the temp directories as roots. Isolation, on by default, denies Read, Edit, Write, MultiEdit, NotebookEdit, Glob, and Grep on a path outside those roots, and in Bash it denies rm, mv, or cp of an absolute path outside them, an output redirect to one, and cd into one. Claude reads the deny reason, one line naming the path and the first roots. The production guard, on by default, sends a call that matches a production-deploy pattern to the native ask dialog, even where the permission rules would have allowed it. A deny from beneath stays a deny. The README says that in auto mode the ask was settled without a dialog and the matching command ran. Redaction, on by default, replaces every secret-shaped value in a tool result with a mark such as [REDACTED:rule] before Claude sees it, and the status line counts them. The raw output may still be kept in the local transcript. Hiding agents of packs this project has not enabled is off by default. Deferring an MCP tool whose description is longer than 2048 characters is off by default. It needs neither core nor the swarmery daemon. Paths are lexical. Bash is a heuristic: a relative path, and cat or ls of an outside path, pass.
The install name is guard-pack. The marketplace name is swarmery. The marketplace also holds core, review-pack, and swarmery-link. This one installs on its own. The marketplace source is ./plugins/guard-pack. The holds are why this page files it under safety. file-guard holds writes outside the project and writes into .git, and asks before lockfiles and CI files. secret-shield replaces API keys, tokens, private keys, and passwords in tool output with a redaction marker before the model or the transcript sees them. This pack holds reads as well as writes outside the roots, adds the deploy ask, and its redaction leaves the stored transcript as it was.
Demo

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold onesession.appendWhen an entry is written to the transcripttool.checkA Claude Code eventagent.offerA Claude Code eventtool.describeA Claude Code event
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- atretyak1985
- Category
- Safety
- Marketplace
- swarmery
- Folder
- plugins/guard-pack
- Version
- 0.1.0
- License
- Apache-2.0
- Repo stars
- 7
- Last change
- 2026-10-14
- Language
- Go
- Files
- 19