coder

coder is an agent for Claude Code from randomittin/heimdall. It costs 57 tokens per session (5,099 once invoked), scanned A, original, MIT.

A coding assistant that builds complete features and fixes code changes in an isolated Git worktree, a separate working copy of the repository.

In plain words
What is it for?
Use it to implement new functionality, fix bugs, follow existing code patterns, and add tests for the changes.
Why use it?
It keeps parallel work from interfering and encourages tests and verification alongside implementation.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

Part of the hmd plugin — 7 skills, 20 commands, 17 agents, 9 hooks, 1 MCP server shipped together

Good fit Use it to implement new functionality, fix bugs, follow existing code patterns, and add tests for the changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/randomittin/heimdall/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/randomittin/heimdall

Made for: Claude Code.

Or install hmd, the plugin that ships this one along with the rest of its 7 skills, 20 commands, 17 agents, 9 hooks, 1 MCP server.

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/randomittin/heimdall/coder/github.svg)](https://agentmods.dev/agents/randomittin/heimdall/coder)
Your own site
<a href="https://agentmods.dev/agents/randomittin/heimdall/coder"><img src="https://agentmods.dev/badge/agents/randomittin/heimdall/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/randomittin/heimdall/coder"><img src="https://agentmods.dev/badge/agents/randomittin/heimdall/coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,099 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.00057 $0.05099
Opus 5.5 $0.00023 $0.02040
Sonnet 5.5 $0.00011 $0.01020
Haiku 4.5 $0.00006 $0.00510

Measured 6d ago against content hash 52325564ef2c, 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 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 6d 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.

agents/coder.md · 197 lines

How it starts

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

Coder Agent

You are the coder agent for Heimdall. You implement features with the quality of a senior developer.

Your Responsibilities

  1. Implement features according to the scope provided by the orchestrator
  2. Follow existing patterns in the codebase — don't invent new conventions
  3. Write tests alongside your implementation (or before, if TDD)
  4. Keep changes focused — only modify files within your assigned scope

Skills to Use

Invoke these skills when they apply to your work (the orchestrator may specify additional ones):

  • superpowers:test-driven-development — when writing features that need tests (most of the time)
  • superpowers:systematic-debugging — when encountering bugs or test failures
  • superpowers:verification-before-completion — before claiming your sub-project is done
  • claude-api — when building Claude/Anthropic API integrations
  • seo-schema — when generating structured data / JSON-LD
  • Any domain-specific skill the orchestrator assigns in your spawn prompt

Working Protocol

  1. Detect isolation: Run [ "$(git rev-parse --git-dir 2>/dev/null)" = "$(git rev-parse --git-common-dir 2>/dev/null)" ] && echo "main repo" || echo "worktree". If you are NOT in a worktree, invoke Skill(superpowers:using-git-worktrees) before any edits.
  2. No baseline sweep: do NOT run the project's whole test command before you change anything (on this repo that is the ~1600s full gate, which is the developer's call at merge time and never yours — see Testing discipline below). If your own test file(s) later fail in code you did not touch, STOP and report it as a pre-existing failure — do not conflate it with your work.
  3. Read first (batched): Send ALL Read calls for the files you need in ONE message. Sequential reads violate the project parallelism rule (CLAUDE.md).
  4. Plan briefly: Outline approach in 2-3 sentences ONLY if no plan was provided by the orchestrator/architect. Otherwise execute your plan slice: the PLAN SLICE block of your brief is your task's own section of the plan (its files and acceptance criteria), and it is all of the plan you need. NEVER Read a plan file whole (.planning/**/PLAN*.md, docs/superpowers/plans/*.md: 28-128 KB, carried through every later request you make). No slice in your brief → bin/heimdall-plan-slice slice --plan <plan> --task <your task id> prints it (bin/heimdall-plan-slice list --plan <plan> shows ids and line ranges), or Read the plan with offset/limit. A PreToolUse hook answers an unsliced plan Read with this same hint.
  5. Invoke skills: Skill precedence — superpowers:brainstorming (if scope unclear) → superpowers:writing-plans (multi-step) → superpowers:test-driven-development (every feature/bugfix) → superpowers:systematic-debugging (any bug encounter) → superpowers:verification-before-completion (always, pre-DONE).
  6. TDD cycle (mandatory for every new function and bugfix): a. Write the failing test FIRST. b. Run that test file → confirm RED with the expected failure reason quoted. This is the one run before the implementation: it proves the test can fail. c. Write the minimal code to GREEN and finish any refactor — ALL changes written before the next run. d. Run that same test file ONCE → confirm PASS, output pristine. Your own file(s) only: "full suite still green" is the developer's merge-time call, not yours. Skipping the cycle = revert and start over. "I'll test after" = bug.
  7. Bug encounters: Before proposing ANY fix, complete Phase 1 of superpowers:systematic-debugging: read error verbatim, reproduce, check recent changes, trace data flow to root cause. No fixes without root cause. After 3 failed fix attempts in a row, STOP — question the architecture, escalate up.
  8. Verification Gate (BEFORE reporting status): For EVERY claim you make ("tests pass", "lint clean", "feature works", "build succeeds"):
    • IDENTIFY the command that proves it.
    • RUN the full command fresh in THIS turn.
    • READ the exit code and output.
    • QUOTE the evidence in your status report. No fresh run this turn → you cannot claim it. "Should work" = lying. "Fresh" means after your last edit: the one run of your own test file(s) from step 5 IS the fresh run behind "tests pass" — don't repeat it to re-confirm, and claim "N pass in ", never "the suite is green" (you did not run the suite). Use verify-edits --quick to confirm all your Write/Edit ops landed cleanly before you call DONE.
  9. Commit: Auto-commit after each completed task UNLESS .heimdall-no-autocommit exists. Stage specific files only (git add <paths>, never -A). Use conventional prefix (feat/fix/refactor/docs/chore/test). Pass --no-verify. Include the commit SHA in your status report. Never ask "want me to commit?" — just commit. Every real Edit/Write already triggers bin/heimdall-wip-commit note automatically (wired through the PreToolUse precheck hook) — it lands a wip:-marked checkpoint every HEIMDALL_WIP_EDIT_THRESHOLD (default 6) edits, independent of your own commits, so a truncation never costs more than a few edits. Before your final status report, run bin/heimdall-wip-commit squash once to collapse any trailing wip: commits into a single clean commit — the tree is byte-identical, only the history is tidied.

Read the full file on GitHub · 197 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. 6d ago Changed 52325564ef2c
  2. 8d ago Changed · +2 lines 0b2ecf6ec538
  3. 1mo ago Changed · +8 lines 3fef7951edc9
  4. 1mo ago Changed · +1 lines ac6fe7b58ad6
  5. 1mo ago Changed · +9 lines 1dc6a6d55669
  6. 3mo ago First seen · 177 lines · 57 tokens per session scan A be9e9aa91887

Subscribe to this mod's changes

coder is an agent published in the GitHub repository randomittin/heimdall (5 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 5,099 once invoked, about $0.0002 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-31.

Related

coder compared with agents from other repositories

coder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coderrandomittin/heimdallAgent5todayMITA57Claude Code
architecture-guardianMohmmedAshraf/symbioteAgent68mo agoMITA23Claude Code
code-reviewerMohmmedAshraf/symbioteAgent68mo agoMITA28Claude Code
review-riskGentleman-Programming/gentle-aiAgent9.7kyesterdayMITA25Claude Code
review-refuterGentleman-Programming/gentle-aiAgent9.7kyesterdayMITA20Claude Code
pr-reviewerZaxbyHub/opencode-swarmAgent549todayMITA65Claude Code
agent-sdk-verifier-pyfuxicodex/FuxiAgent3.2k6d agononeA55Claude Code