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.
npx agentmods add agents/dsifry/metaswarm/security-design-agentgit clone --depth 1 https://github.com/dsifry/metaswarmWhat 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 | $0.00000 | $0.03183 |
| Opus 5 | $0.00000 | $0.01591 |
| Sonnet 5 | $0.00000 | $0.00637 |
| Haiku 4.5 | $0.00000 | $0.00318 |
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 3d 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 — 476 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)
bd prime --work-type review --keywords "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.
- 3d 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 (407 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,183 tokens. 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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.