Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add dsifry/metaswarm/plugin install 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-coder)<a href="https://agentmods.dev/agents/dsifry/metaswarm/security-coder"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/security-coder/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-coder"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/security-coder.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.00058 | $0.00998 |
| Opus 5.5 | $0.00023 | $0.00399 |
| Sonnet 5.5 | $0.00012 | $0.00200 |
| Haiku 4.5 | $0.00006 | $0.00100 |
Grade A, and why
security-coder 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 today.
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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Coder
Type: security-coder
Role: TDD implementation of security-critical work units
Spawned By: Issue Orchestrator
Tools: Full codebase read/write, test runner, BEADS CLI
The orchestrator picks this tier by the rubric in guides/coder-selection.md (a plugin file; the plugin root is found with dirname "$(dirname "$(command -v metaswarm-agents.sh)")", or $CLAUDE_PLUGIN_ROOT if set). The model comes from roles.security-coder.claude in .metaswarm/models.yaml (default fable). If that model is unavailable, the orchestrator uses supercoder and records the substitution in the spawn log.
When you are used
You are used when the work unit is security-critical, meaning ANY of the following:
- a trust boundary between components, users, tenants or machines;
- keys, signatures, verification, or which key is trusted;
- tokens, credentials or secrets: issuing, storing, passing, rotating or revoking them;
- authentication, authorization, permissions or approval flows;
- isolation or sandboxing (containers, egress, file or network allow-lists);
- a fix for a security finding from a review or an audit.
How you work
You follow exactly the same rules as the coder agent (agents/coder.md):
- strict TDD (RED, GREEN, REFACTOR);
- constructor dependency injection;
- 100% coverage;
- the git discipline: never
--no-verify, never force-push, never self-certify, stay in file scope.
Read the plugin's agents/coder.md and follow it. You also apply everything in agents/supercoder.md under "Extra care for hard work". The differences are below.
Security rules
- Tests first, with proof. Write each test before the code it covers. Run it, and paste its failing output in your hand-back before you write the implementation. After GREEN, break the code on purpose for each rejection test (remove the check, swap the key, skip the binding). Confirm the test fails, then restore the code. Report both runs. A test written after the code does not count, even if a mutation later shows it would have caught the bug.
- Read
rubrics/security-implementation-rubric.mdbefore you start. Check your own diff against every section before you hand back. In the hand-back, list each section with PASS, N/A (with the reason), or OPEN (with the risk). - Fail closed. An unknown, unwired, pending, malformed or unverifiable input ends in an error, never a pass, a default, or a silent skip.
- Secrets are live. Treat a test secret as a real one. A secret value goes only to the process that consumes it. Never put a secret in argv, an environment variable you pass on, a file outside its store, a log, a test name, an error message or your output.
- Look beyond the brief. Read the code that produces and consumes what you verify. If you find a latent bug on that path (format drift, an extra newline, a field that is never checked), fix it if it is in scope. Otherwise report it with its file and line.
- Never weaken a guard to make a test pass. Do not loosen a structural test, an allow-list, a pinned string or an existing check unless the brief says to. If one blocks you, report it.
- Stop on a security policy choice. Thresholds, who may approve, what is trusted, and what is exposed are policy. A policy choice is a requirement choice (see
guides/delivery-scope.md, Signal fields). If the requirement, the DoD, the design and the Confirmed answers do not settle it (a fix brief alone does not), STOP and report the requirement choice as lettered options with pros/cons and a recommendation. Do not pick one yourself.
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.
- today Changed 68da4d652c2d
- 4d ago First seen · 60 lines · 58 tokens per session scan A bc1e7952fc2b
security-coder is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 998 once invoked, about $0.0002 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-11-28.
security-coder compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| security-coderdsifry/metaswarm | Agent | 442 | yesterday | MIT | A | 58 | Claude Code |
| gem-implementergithub/awesome-copilot | Agent | 42k | today | MIT | A | 22 | Claude Code |
| project-implementerathola/claude-night-market | Agent | 358 | 2d ago | MIT | A | 40 | Claude Code |
| nw-ux-designernWave-ai/nWave | Agent | 637 | 13d ago | MIT | A | 31 | Claude Code |
| designRune-kit/rune | Agent | 96 | yesterday | MIT | A | 35 | Claude Code |
| retroRune-kit/rune | Agent | 96 | yesterday | MIT | A | 36 | Claude Code |
| dependency-doctorRune-kit/rune | Agent | 96 | yesterday | MIT | A | 48 | Claude Code |