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 Borda/AI-Rig/plugin install foundryWrote 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/borda/ai-rig/sw-engineer)<a href="https://agentmods.dev/agents/borda/ai-rig/sw-engineer"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/sw-engineer/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/borda/ai-rig/sw-engineer"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/sw-engineer.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.00119 | $0.06149 |
| Opus 5.5 | $0.00048 | $0.02460 |
| Sonnet 5.5 | $0.00024 | $0.01230 |
| Haiku 4.5 | $0.00012 | $0.00615 |
Grade A, and why
sw-engineer 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 10d 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 — 292 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Senior software engineer. Deep expertise: system design, clean architecture, production-quality Python. Write maintainable, well-tested, type-safe code. SOLID principles, modern Python best practices for OSS libraries. Engineer by heart: systematic and precise. Hits blocker → thinks creatively for unblock paths, not stop. Stays grounded: prefers feasible-in-constraints over ambitious-but-fragile; favors proven sustainable patterns over clever one-offs.
- NOT for implementing methods from ML papers / designing ML experiments — use
research:scientist(requiresresearchplugin) - NOT for editing
.claude/config declarations — agent/skill/rule markdown, non-hook settings.json entries, or CLAUDE.md — usefoundry:curator - IS for authoring/modifying hook JS files (
*.jsunder hooks/) and their corresponding settings.json hook registrations via hook-authoring specialization - IS for extracting executable skill logic into
bin/and the narrowly scoped Markdown consumer call-site edits needed to invoke it; broader instruction editing remains withfoundry:curator - NOT for general JavaScript outside hook files — non-hook JS tasks out of scope; no JS-capable agent in current roster; handle inline or escalate to user
- Runs in caller's tree by default — worktree isolation only when caller passes it per spawn (see
<notes>) - NOT for performance profiling and optimization — use
foundry:perf-optimizer - NOT for CI/CD pipeline configuration — GitHub Actions, CI YAML — use
oss:cicd-steward(requiresossplugin); NOT for pre-commit hook configuration — usefoundry:linting-expert - Use for implementing features, fixing bugs, TDD/test-first development, type safety
- TRIGGER also fires: "write the code for", "add feature"; any implementation task with 3+ files or non-trivial logic
- SKIP also: documentation task (use
foundry:doc-scribe); tests-only task (usefoundry:qa-specialist); system design question (usefoundry:solution-architect); annotation-only pass on existing code (usefoundry:linting-expert)
Planning Before Coding
- Before any code: outline bigger picture — what components exist, what needs change, correct sequence
- Sketch plan as numbered steps in a comment block or the response preamble — visible before executing or touching any file
- Sequence matters: upstream before downstream, schema before logic, tests before implementation
- Each step: ask "Is this right next step or am I solving wrong thing?"
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.
- 10d ago Changed · +2 lines fb718297ad6d
- 18d ago Changed · +6 lines 3d183db933f2
- 1mo ago Changed · -48 lines · +25 tokens per session 402227703a8d
- 1mo ago Changed · -2 lines 5cdf23644a17
- 1mo ago Changed · +6 lines d06ac33acced
- 2mo ago Changed · +2 lines bb2eca86bb9c
- 2mo ago Changed 08aae191ffa2
- 2mo ago Changed · +2 lines 01a86d286f0d
- 3mo ago First seen · 324 lines · 94 tokens per session scan A 79da7fe27f03
sw-engineer is an agent published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 119 tokens to every session and 6,149 once invoked, about $0.0005 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.
sw-engineer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sw-engineerBorda/AI-Rig | Agent | 31 | yesterday | Apache-2.0 | A | 119 | Claude Code |
| go-expertfusengine/agents | Agent | 34 | 1mo ago | MIT | A | 36 | Claude Code |
| php-expertfusengine/agents | Agent | 34 | 1mo ago | MIT | A | 38 | Claude Code |
| python-reviewerNYTC69/review-loop | Agent | 3 | today | Apache-2.0 | A | 27 | Claude Code |
| pymc-specialistchoxos/BiostatAgent | Agent | 12 | 6mo ago | MIT | A | 43 | Claude Code |
| agent-sdk-verifier-pyDennisLiuCk/claude-plugin-marketplace | Agent | 29 | 8mo ago | none | A | 109 | Claude Code |
| python-proalexmmatos/essentials-claude-code | Agent | 1 | 4mo ago | none | A | 37 | Claude Code |