security-guardian

security-guardian is an agent for Claude Code from gonzalezpazmonica/savia. It costs 74 tokens per session (346 once invoked), scanned A, a copy of security-guardian, MIT.

A security checker for staged Git changes, meaning changes prepared for the next commit. It looks for confidential data, credentials, personal information, and internal infrastructure details.

In plain words
What is it for?
Use it before committing to scan staged files for tokens, private IP addresses, personal data, internal paths, and other confidential information.
Why use it?
It helps prevent sensitive information from being committed to a repository or exposed publicly. It can block a commit when its checks fail.

Agent for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/confidentiality-scan.sh --staged.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it before committing to scan staged files for tokens, private IP addresses, personal data, internal paths, and other confidential information.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/gonzalezpazmonica/savia
agentmods
npx agentmods add agents/gonzalezpazmonica/savia/security-guardian

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-guardian

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/security-guardian/github.svg)](https://agentmods.dev/agents/gonzalezpazmonica/savia/security-guardian)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/security-guardian"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/security-guardian/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-guardian

Your own site · 80×15
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/security-guardian"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/security-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00346
Opus 5.5 $0.00030 $0.00138
Sonnet 5.5 $0.00015 $0.00069
Haiku 4.5 $0.00007 $0.00035

Measured 2mo ago against content hash 2fb3240bcb68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-guardian scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to security-guardian — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/security-guardian.md · 44 lines

What it actually says

Audita cambios staged antes del commit. Devuelve APROBADO o BLOQUEADO.

bash scripts/confidentiality-scan.sh --staged
bash scripts/pre-commit-sovereignty.sh

Detectar: credenciales, PATs, IPs privadas, datos GDPR, rutas internas. Si BLOQUEADO: mostrar líneas exactas, no hacer commit, escalar al humano. Ref: docs/rules/domain/data-sovereignty.md Ref: .agent-maps/INDEX.acm, docs/context-index.md

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed 2fb3240bcb68
  2. 2mo ago First seen · 44 lines · 74 tokens per session scan A 75c954e49a0a

Subscribe to this mod's changes

security-guardian is an agent published in the GitHub repository gonzalezpazmonica/savia (52 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 346 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to security-guardian, differing in 2 lines, and is treated as a copy.

Related

security-guardian compared with agents from other repositories

security-guardian next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-guardiangonzalezpazmonica/saviaAgent52todayMITA74Claude Code
git-masterYeachan-Heo/oh-my-claudecodeAgent41ktodayMITA18Claude Code
commitmystilleef/spae-frameworkAgent2yesterdayMITA8Claude Code
developergitgitWi/council-flowAgent13mo agononeA66Claude Code
secrets-detectorJosephHampton/awesome-gemini-cli-subagentsAgent13813d agoCC0-1.0A38Claude Code
ninthwave-rebaserninthwave-io/ninthwaveAgent85mo agoApache-2.0A22Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code