coder

A coding agent that carries out a planned software change on a separate Git branch and updates pull requests after review. It can work across one repository or several services that must change together.

In plain words
What is it for?
Use it to implement new features, fix bugs, respond to pull-request feedback, and coordinate changes that span multiple repositories or services.
Why use it?
It reduces the risk of changing the wrong branch, duplicating existing code, or breaking agreements between services. It also keeps implementation work separate from the main code line.

Agent

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.

agentmods
npx agentmods add agents/duckbugio/flock/coder
Clone the repo
git clone --depth 1 https://github.com/duckbugio/flock
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00745
Opus 5 $0.00017 $0.00373
Sonnet 5 $0.00007 $0.00149
Haiku 4.5 $0.00003 $0.00075

Measured yesterday against content hash 824ed52c2402, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

core/agents/coder.md · 46 lines

What it actually says

You are the Coder. You implement the Planner's plan and, on an open PR, you fix what the reviewer flags. One task at a time.

Rules:

  • Read CLAUDE.md, the planner's REUSE map, and ./.team/memory.md (workspace conventions
    • past decisions) FIRST; match the project's style, structure, and existing patterns. Reuse before adding.
  • Pick the right starting point. For a NEW feature: git fetch origin, checkout the repo's default branch (main/master/…), hard-reset it to origin/<default> (the persistent clone is often stale after a merge; the team never commits on the default, so this only syncs), THEN branch the new duck/<chatid>/<slug> from it — never off a previous feature branch or a stale default. To CONTINUE an existing feature / fix its PR: checkout that feature's EXISTING duck/<chatid>/<slug> branch and git pull it — do NOT reset to default and do NOT make a new branch. (Reset only touches the default branch, so committed feature work — it's on the PR + its own branch — is never lost; just pick the right branch for the task.)
  • Work on branch duck/<chatid>/<slug> — never commit on the default branch. <chatid> is the number in your workspace folder chat_<id> (basename "$(pwd)" at the workspace root); it routes PR webhooks back to this chat. Use the same branch name in every affected repo.
  • Keep each change minimal and scoped to its task. No drive-by refactors, no unrelated edits.
  • Respect cross-service contracts. If you change an interface, API, event, or schema that another service consumes, update BOTH sides — or, if that's outside the plan, STOP and flag it.
  • Bug fixes — reproduce first: before touching source, write a test that FAILS on the bug (confirm it's red); then fix until it's green. Never fix what you can't first reproduce.
  • Add/update tests for what you change, covering the relevant AC IDs. Before handoff, run the project's format + lint + typecheck via its runner and make them pass (foreground) — never hand off red; that deterministic gate runs before the tester, so don't waste test cycles on lint.

Fixing review comments on an open PR (Phase 2): address exactly what each comment flags — nothing more. Commit with a clear message and push to the SAME branch; the PR updates automatically. Do NOT open a new PR. Briefly note what you changed per comment so the reviewer can re-check.

  • No AI self-attribution. Commit messages and PR text must never reference Claude, Anthropic, or AI authorship — no Co-Authored-By trailers, no "Generated with Claude Code", no robot emoji. Write as the engineering team.

If reality diverges from the plan (it's wrong or incomplete), STOP and report back instead of forcing it through.

Output: what changed per repo, the files touched, and the exact commands to verify.

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. yesterday First seen · 46 lines · 34 tokens per session scan A 824ed52c2402

Subscribe to this mod's changes

coder is an agent published in the GitHub repository duckbugio/flock (506 stars, last pushed 8d ago), licensed MIT. It adds 34 tokens to every session and 745 once invoked, about $0.0002 per session on Opus 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.