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 atretyak1985v3.28.2Apache-2.0In 1 marketplace
Plans and executes multi-repo changes with specialist agents, and audits security, dependencies and env vars. Hooks block edits to secrets and to files a phase plan protects, and log tool calls to a local session file.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
PostgreSQL, Drizzle, Zod, Kubernetes, Prometheus, Grafana, Jira, Playwright
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
The vendor-neutral core plugin's hook layer. hooks/hooks.json is the
registry Claude Code reads; this table is the same list with the WHY and the
environment knob for each, so an operator can tell what a hook does and how to
switch it off without reading the script.
Every hook here is best-effort and exits 0 unless the table says otherwise.
Only pre-model-switch.sh may block (exit 2) — plus phase-guard.sh,
protect-sensitive-files.sh and architecture-freshness.sh, whose refusals are
the point of the gate.
Agent roster and ownership metadata live in AGENTS.md, not here.
hooks.json| Event | Hook | What it does | Knob |
|---|---|---|---|
| PreToolUse(Edit|Write|Bash) | phase-guard.sh | Inside a phase run (a .swarmery/plan/ dir at or above the cwd) blocks (exit 2) an Edit/Write on, or a Bash command naming, a file the lent phase doc's kind: guard block protects — reads through Bash included — plus the guard's own inputs (.swarmery/plan/**, .swarmery/guard.log). Logs every block to .swarmery/guard.log. Silent no-op outside a run; see "Phase guard" below | — |
| PreToolUse(Edit|Write) | protect-sensitive-files.sh | Blocks edits to secrets, keys, and other protected paths | — |
| PreToolUse(Bash) | bash-shape-guard.sh | Refuses malformed Bash command shapes before the permission classifier sees them | — |
| PreToolUse(Bash) | prod-deploy-guard.sh | Answers ask for a command matching a production-deploy pattern, so the native dialog shows even when an allow rule, auto mode or bypassPermissions would skip it; in a headless -p run that resolves to a denial. Never emits allow; burn-in in docs/GATE-HARDENING.md | approvals.prodDeployPatterns in .claude/project.json, PROD_DEPLOY_GUARD_LOG |
| PreToolUse(Agent) | architecture-freshness.sh | Refuses a research-shaped subagent spawn once per session while the architecture map is stale | SWARMERY_MAP_FRESHNESS=0, SWARMERY_MAP_STALE_DAYS |
| PostToolUse(Edit|Write) | code-formatter.sh | Formats the edited file with the stack's formatter | — |
| PostToolUse(Edit|Write) | type-checker.sh | Type-checks after an edit | — |
| PostToolUse(Bash) | post_bash_index_check.sh | Warns when the Graphify graph has drifted from HEAD | — |
| PostToolUse(*) | post-tool-observe.sh | Records every tool call (commands capped at 500 chars) in the per-day session log claude-session-YYYYMMDD.jsonl, kept in the private run dir (~/.swarmery/run, 0700; the log 0600), and tracks the session's token budget | SWARMERY_RUN_DIR, SWARMERY_SESSION_FILE, SWARMERY_SESSION_BUDGET_TOKENS, SWARMERY_PRICING_JSON |
| SessionStart | session-start.sh | The welcome banner: component counts, active branches, in-flight tasks | — |
| SessionStart | session-context-bridge.sh | Carries last session's state into a cold one — the newest NEXT.md slice (≤40 lines / 2048 B) and the newest daemon handoff brief for this project (≤1024 B), whole block ≤3072 B. Silent when there is nothing to inject or no daemon answers | SWARMERY_CONTEXT_BRIDGE=0, SWARMERY_PORT |
| SessionStart | task-session-log.sh | Links the session uuid to the active task card | — |
| SessionStart | architecture-digest.sh | Injects a compact architecture digest when the repo has a map | — |
| SessionEnd | session-summary.sh | Aggregates the session's tool calls into a summary, and rotates the append-only logs it feeds — workspace sessions/*.json, metrics/session-*.jsonl and logs/trace-*.jsonl at 30d, the per-day statusline substrate claude-session-*.jsonl in the run dir at 7d (legacy copies in /tmp are left for the OS). working/** and the single-file audit logs (bash-shape-guard.jsonl, gate-bypasses.jsonl) are never swept | CLAUDE_SESSION_TMP |
| SubagentStart | subagent-start.sh | Records an agent spawn | — |
| SubagentStop | subagent-stop.sh | Records an agent's completion and duration | — |
| PreCompact | pre-compact.sh | Warns that the context window is about to be compacted | — |
| PostCompact | post-compact.sh | Confirms the compaction | — |
| Notification | notify-completion.sh | Context-rich desktop notification | — |
| PreModelSwitch | pre-model-switch.sh | Blocks (exit 2) a switch UP onto a model with no recorded validation. A switch DOWN (weaker family — fable/mythos › opus › sonnet › haiku — or an older generation of the same family) always passes — that is the shape of a safeguard fallback, and blocking one strands the session | SWARMERY_ALLOW_UNVALIDATED_MODEL, SWARMERY_PORT, SWARMERY_MODEL_SWITCH_PAYLOAD_LOG |
| PostModelSwitch | post-model-switch.sh | Records that the session's model changed, and warns once when the change was a downgrade | SWARMERY_SESSION_FILE |
phase-guard.sh enforces the ## Guard block a planner writes into every
phase doc (skills/workspace-plans/resources/plan-format.md → "## Guard"):
7-day copy clicks
Plugins from other owners that cover similar ground
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 atretyak1985/swarmery --plugin core