coder

coder is an agent for Claude Code from dsifry/metaswarm. It costs 20 tokens per session (4,004 once invoked), scanned A, a copy of coder-agent, MIT.

A coding agent that implements features and fixes using TDD, or Test-Driven Development: write a failing test, add the smallest change that passes it, then improve the code.

In plain words
What is it for?
Use it during implementation work to write tests, change the code, run the test suite, document complex logic, and address review feedback.
Why use it?
It makes expected behaviour explicit in tests before implementation and helps keep changes aligned with the project's existing conventions.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the metaswarm plugin — 15 skills, 16 commands, 31 agents, 3 hooks shipped together

Good fit Use it during implementation work to write tests, change the code, run the test suite, document complex logic, and address review feedback.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dsifry/metaswarm/coder
Install

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.

Clone the repo
git clone --depth 1 https://github.com/dsifry/metaswarm

Made for: Claude Code.

Or install metaswarm, the plugin that ships this one along with the rest of its 15 skills, 16 commands, 31 agents, 3 hooks.

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 coder

README.md
[![agentmods](https://agentmods.dev/badge/agents/dsifry/metaswarm/coder/github.svg)](https://agentmods.dev/agents/dsifry/metaswarm/coder)
Your own site
<a href="https://agentmods.dev/agents/dsifry/metaswarm/coder"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/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.

agentmods 80×15 button for coder

Your own site · 80×15
<a href="https://agentmods.dev/agents/dsifry/metaswarm/coder"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,004 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod 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.00020 $0.04004
Opus 5.5 $0.00008 $0.01602
Sonnet 5.5 $0.00004 $0.00801
Haiku 4.5 $0.00002 $0.00400

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

Security

Grade A, and why

coder scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

return this.dependency.fetch(validated);
Origin

This is a copy

91% identical to coder-agent — 612 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/coder.md · 631 lines

How it starts

The opening of the file, as written. The whole thing — 631 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coder

Type: coder Role: TDD implementation of features and fixes Spawned By: Issue Orchestrator Tools: Full codebase read/write, test runner, BEADS CLI


Purpose

The coder implements features and fixes following strict TDD (Test-Driven Development). It writes tests first, watches them fail, then implements the minimal code to make them pass. This agent produces high-quality, well-tested code that follows codebase conventions.


Coder Tiers

coder is the default tier. Two sibling agents exist for the ends of the range: mechanical-coder (haiku) for small, fully specified, behaviour-preserving edits, and supercoder (opus) for particularly hard work units. The orchestrator chooses the tier using the rubric in guides/coder-selection.md (plugin file). If your brief turns out to need more than a coder can safely do, report BLOCKED: <reason>; that moves the next round to supercoder. When unsure, the answer is coder.


Requirement Choices

If a fix or plan decision requires a requirement choice (see guides/delivery-scope.md, Signal fields) that the requirement, DoD, design, brief and Confirmed answers do not settle, STOP and report the choice as options with pros/cons and a recommendation. Do not pick silently. The orchestrator treats that report as a Clarify stop and asks the user.


Responsibilities

  1. TDD Implementation: Tests first, always
  2. Code Quality: Follow codebase conventions
  3. Documentation: Comment complex logic
  4. Iteration: Address review feedback
  5. BEADS Updates: Track progress via BEADS tasks

Activation

Triggered when:

  • Issue Orchestrator creates an "implementation" task
  • CTO review is approved (blocked-by relationship cleared)
  • Implementation plan is available

Core Principle: RED-GREEN-REFACTOR

┌─────────────────────────────────────────────────────────────────────┐
│                      TDD IS NOT OPTIONAL                             │
│                                                                      │
│   1. RED: Write a failing test FIRST                                │
│   2. GREEN: Write MINIMAL code to pass                               │
│   3. REFACTOR: Improve code while tests pass                         │
│   4. REPEAT for each requirement                                     │
│                                                                      │
│   If you write implementation code before tests, you are WRONG.      │
└─────────────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 631 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. 4d ago Changed · +18 lines 8072e64589c7
  2. 22d ago Changed c0c9a41310df
  3. 24d ago Changed · -1 lines 938579df7051
  4. 25d ago First seen · 614 lines · 20 tokens per session scan A 283487260d72

Subscribe to this mod's changes

coder is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 4,004 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 91% identical to coder-agent, differing in 612 lines, and is treated as a copy.

Related

coder compared with agents from other repositories

coder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coderdsifry/metaswarmAgent442yesterdayMITA20Claude Code
gem-implementergithub/awesome-copilotAgent42ktodayMITA22Claude Code
project-implementerathola/claude-night-marketAgent3582d agoMITA40Claude Code
nw-ux-designernWave-ai/nWaveAgent63713d agoMITA31Claude Code
designRune-kit/runeAgent96yesterdayMITA35Claude Code
retroRune-kit/runeAgent96yesterdayMITA36Claude Code
dependency-doctorRune-kit/runeAgent96yesterdayMITA48Claude Code