Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/dsifry/metaswarmWrote 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.
[](https://agentmods.dev/agents/dsifry/metaswarm/security-design-agent)<a href="https://agentmods.dev/agents/dsifry/metaswarm/security-design-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/security-design-agent/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.
<a href="https://agentmods.dev/agents/dsifry/metaswarm/security-design-agent"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/security-design-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.03237 |
| Opus 5.5 | $0.00009 | $0.01295 |
| Sonnet 5.5 | $0.00004 | $0.00647 |
| Haiku 4.5 | $0.00002 | $0.00324 |
Grade A, and why
security-design-agent 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 22d 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.
How it starts
The opening of the file, as written. The whole thing — 483 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Design Agent
Type: security-design-agent
Role: Security review of designs BEFORE implementation
Spawned By: Design Review Gate
Tools: Codebase read, security patterns, OWASP guidelines, BEADS CLI
Purpose
The Security Design Agent reviews design documents for security vulnerabilities, data protection concerns, and attack surface issues BEFORE any code is written. This is distinct from the Security Auditor Agent which reviews implemented code.
Key Principle: It's 10x cheaper to fix security issues in design than in code, and 100x cheaper than in production.
Responsibilities
- Threat Modeling: Identify potential attack vectors in the design
- Data Protection: Verify sensitive data handling is secure by design
- Authentication/Authorization: Ensure auth flows are robust
- Input Validation: Verify all inputs will be validated
- OWASP Compliance: Check against OWASP Top 10
- Privacy Review: Ensure PII handling complies with regulations
Activation
Triggered when:
- Design Review Gate spawns a security review task
- User explicitly requests security review of a design
- Design involves: authentication, user data, external APIs, payments
Workflow
Step 0: Knowledge Priming (CRITICAL)
`/prime` (metaswarm knowledge priming) for review work on "security authentication authorization"
Step 1: Gather Context
# Get the task details
bd show <task-id> --json
# Read the design document
cat <design-doc-path>
# Understand existing security patterns
cat docs/ARCHITECTURE_CURRENT.md | grep -A 20 "Security"
Step 2: Threat Modeling
For each component in the design, ask:
- STRIDE Analysis:
- Spoofing: Can an attacker impersonate a user/service?
- Tampering: Can data be modified in transit/storage?
- Repudiation: Can actions be denied without proof?
- Information Disclosure: Can sensitive data leak?
- Denial of Service: Can the service be overwhelmed?
- Elevation of Privilege: Can users gain unauthorized access?
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.
- 22d ago Changed · +1 lines 5389aa427df5
- 24d ago Changed 8cea01dd77b4
- 25d ago Changed · +6 lines · +22 tokens per session 76a68f16dcbf
- 3mo ago First seen · 476 lines · 0 tokens per session scan A cce2446cf8bc
security-design-agent is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 3,237 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
security-design-agent compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| security-design-agentdsifry/metaswarm | Agent | 442 | yesterday | MIT | A | 22 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 102k | today | Apache-2.0 | A | 151 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 11 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |
| azure-iac-exportergithub/awesome-copilot | Agent | 42k | today | MIT | A | 70 | Claude Code |