ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add atretyak1985/swarmery
/plugin install guard-pack@swarmery
Open the repo

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

The opening of the guard-pack README: guards for running many projects on one machine as one hooks module, then the isolation, redaction, and production guard rows of its table.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold one
  • session.appendWhen an entry is written to the transcript
  • tool.checkA Claude Code event
  • agent.offerA Claude Code event
  • tool.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
Repo
atretyak1985/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

Other mods in Safety

supabase-guardSzotaszHolds a commandAsks before a Supabase write aimed at another project, or a destructive call, and stops the call when you refuse.secret-panebengousHolds a commandOpens a masked box beside the transcript when Claude needs a secret, gives Claude a placeholder, and puts the real value back only inside a Bash command.ultramodmertkayacsHolds a commandPacks ten mods: limits and context above the prompt, a guard with undo for rm -rf and git reset --hard, .env reads refused, and a receipt under each answer.envdavekissHolds a commandOpens a card when Claude needs a key, so you paste the value into a pane Claude can't read, and holds Claude's reads of .env files and commands that print them.model-allowlisterikdarlingdataHolds a commandRefuses a subagent spawn that pins a model id instead of a tier alias such as opus or sonnet, and holds spawns to model rules you write per agent type.ruflo-browserruvnetHolds a commandRefuses ruflo browser opens of file, javascript, data, or chrome URLs, credentialed or cloud-metadata hosts, unsafe Chrome flags, and cookie-reading scripts.ruflo-intelligenceruvnetHolds a commandRefuses a key, token, or password in what ruflo learns from, an email address in a public transfer, and a reset of ruflo's intelligence without confirm.ruflo-jujutsuruvnetHolds a commandRefuses a pull request ruflo creates or reviews when its title or body holds a key, token, or password, and a merge or close that does not carry confirm.ruflo-neural-traderruvnetHolds a commandRefuses a live order from ruflo's neural-trader tools unless it is confirmed, paper, or a dry run, and any trader call or memory write that holds a broker key.ruflo-loop-workersruvnetHolds a commandRefuses a ruflo background worker dispatch whose context holds a key, token, or password, and any dispatch past a per-session cap, which catches a stuck loop.ruflo-workflowsruvnetHolds a commandRefuses a ruflo workflow definition, run, or workflow memory record that holds a secret, and a workflow_delete that names no single workflow id.ruflo-federationruvnetHolds a commandRefuses ruflo federation publishes and syncs to other machines that hold a key, token, or password, or personal data such as an SSN or a card number.
All 73 in Safety