# coder

The coder subagent implements and refactors code, designs APIs, and handles errors. Use it for development tasks that call for tests and follow-up checks.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 850 repo stars
- Author: ruvnet
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ruvnet/agentic-flow/tree/HEAD/agentic-flow/.claude/agents/core/coder.md
- Updated: 2026-10-26
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/coder

## What it does

coder reviews requirements, plans architecture and interfaces, then builds functionality incrementally. Its guidance favors readable code, error handling, and writing tests before implementation. It can also refactor existing code while preserving its behavior.

Before a task, hooks search `npx claude-flow memory` for similar successful patterns and past failures, then record that work has started. Afterward, the subagent runs `npm run lint --if-present` when the project contains `package.json`, and runs `npm test`. A project without a configured test command can therefore fail at this check. Results are stored in memory; a successful run with more than 90 tests triggers neural pattern training.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/coder.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/coder.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/coder.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ruvnet/agentic-flow/tree/HEAD/agentic-flow/.claude/agents/core/coder.md

## When to use it
- implement a feature from project requirements
- design an API interface
- refactor code while keeping its behavior
- add error handling and tests

## Example prompts
- Implement error handling for this API and add tests.
- Design and build a service interface from the project requirements.
- Refactor this module without changing what it does.

## Similar
- [ts-coder](https://affpapa.org/en/nevibecode/skills/ts-coder.md) — skill · ★ 869 repo stars
- [zero-hallucination-coder](https://affpapa.org/en/nevibecode/skills/zero-hallucination-coder.md) — skill · 69 installs
- [ns-coder](https://affpapa.org/en/nevibecode/skills/ns-coder.md) — skill · 151 installs
- [backend-security-coder](https://affpapa.org/en/nevibecode/skills/rmyndharis-backend-security-coder.md) — skill · 142 installs
- [backend-api-security-backend-security-coder](https://affpapa.org/en/nevibecode/agents/backend-api-security-backend-security-coder.md) — subagent · ★ 42780 repo stars
- [karpathy-coder](https://affpapa.org/en/nevibecode/skills/karpathy-coder.md) — skill · 1053 installs

## Other versions with the same name
- [coder · josstei](https://affpapa.org/en/nevibecode/agents/josstei-coder.md) — ★ 489 repo stars

From the same set: [ruvnet/agentic-flow](https://affpapa.org/en/nevibecode/by/ruvnet/agentic-flow.md) — 76 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
