coder · ruvnet — Claude Code subagent: coding and installation
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.
no license ★ 850 updated 2026-10-26
.claude/agents/coder.mdWhat coder 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.
What it helps with
- implement a feature from project requirements
- design an API interface
- refactor code while keeping its behavior
- add error handling and tests
Example prompts for the agent
- 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.
How to install coder
Manually: put the files in place
.claude/agents/coder.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/coder.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/coder.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about coder
How do I install coder in Claude Code?
Add the subagent file at .claude/agents/coder.md.
What does the coder subagent do?
It implements and refactors code, designs APIs, and handles errors. It also runs checks and stores information about completed work.
Which checks does coder run after a task?
If the project has package.json, it runs npm run lint --if-present. It then runs npm test.
Similar subagents
All subagents for Agent setup: memory, context, orchestration →coder by other authors comes first.