sw-engineer

sw-engineer is an agent for Claude Code from Borda/AI-Rig. It costs 119 tokens per session (6,149 once invoked), scanned A, original, Apache-2.0.

A senior Python software-engineering helper for building features, fixing bugs, and refactoring code. TDD, or test-driven development, means writing tests as part of the implementation process.

In plain words
What is it for?
Use it to implement Python features, repair defects, refactor existing code, work with TDD, and author JavaScript files used by project hooks.
Why use it?
It helps turn a mapped-out requirement into maintainable, tested, and type-safe code while keeping larger changes organized.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the foundry plugin — 10 skills, 10 agents shipped together

Good fit Use it to implement Python features, repair defects, refactor existing code, work with TDD, and author JavaScript files used by project hooks.

Compare 6 agents from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 10 skills, 10 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 sw-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/borda/ai-rig/sw-engineer/github.svg)](https://agentmods.dev/agents/borda/ai-rig/sw-engineer)
Your own site
<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.

agentmods 80×15 button for sw-engineer

Your own site · 80×15
<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>
Per session 119 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,149 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 original No closer match found 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.00119 $0.06149
Opus 5.5 $0.00048 $0.02460
Sonnet 5.5 $0.00024 $0.01230
Haiku 4.5 $0.00012 $0.00615

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

Security

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.

plugins/cc_foundry/agents/sw-engineer.md · 292 lines

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 (requires research plugin)
  • NOT for editing .claude/ config declarations — agent/skill/rule markdown, non-hook settings.json entries, or CLAUDE.md — use foundry:curator
  • IS for authoring/modifying hook JS files (*.js under 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 with foundry: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 (requires oss plugin); NOT for pre-commit hook configuration — use foundry: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 (use foundry:qa-specialist); system design question (use foundry:solution-architect); annotation-only pass on existing code (use foundry: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?"

Read the full file on GitHub · 292 lines

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. 10d ago Changed · +2 lines fb718297ad6d
  2. 18d ago Changed · +6 lines 3d183db933f2
  3. 1mo ago Changed · -48 lines · +25 tokens per session 402227703a8d
  4. 1mo ago Changed · -2 lines 5cdf23644a17
  5. 1mo ago Changed · +6 lines d06ac33acced
  6. 2mo ago Changed · +2 lines bb2eca86bb9c
  7. 2mo ago Changed 08aae191ffa2
  8. 2mo ago Changed · +2 lines 01a86d286f0d
  9. 3mo ago First seen · 324 lines · 94 tokens per session scan A 79da7fe27f03

Subscribe to this mod's changes

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.

Related

sw-engineer compared with agents from other repositories

sw-engineer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sw-engineerBorda/AI-RigAgent31yesterdayApache-2.0A119Claude Code
go-expertfusengine/agentsAgent341mo agoMITA36Claude Code
php-expertfusengine/agentsAgent341mo agoMITA38Claude Code
python-reviewerNYTC69/review-loopAgent3todayApache-2.0A27Claude Code
pymc-specialistchoxos/BiostatAgentAgent126mo agoMITA43Claude Code
agent-sdk-verifier-pyDennisLiuCk/claude-plugin-marketplaceAgent298mo agononeA109Claude Code
python-proalexmmatos/essentials-claude-codeAgent14mo agononeA37Claude Code