cf-implementer

cf-implementer is an agent for Claude Code from dinhanhthi/coding-friend. It costs 236 tokens per session (1,893 once invoked), scanned A, original, MIT.

An implementation agent that writes code changes directly. TDD, or test-driven development, is an approach where tests are written before or alongside the code, and it can be used when explicitly requested.

In plain words
What is it for?
Use it for direct implementations, substantial multi-file changes, complex algorithms, planned tasks, or bug fixes.
Why use it?
It gives larger coding workflows a dedicated agent for turning a task or plan into working code, with support for supplied context and retry information.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it for direct implementations, substantial multi-file changes, complex algorithms, planned tasks, or bug fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dinhanhthi/coding-friend/cf-implementer
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/dinhanhthi/coding-friend

Made for: Claude Code.

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 cf-implementer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-implementer"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-implementer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 236 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,893 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.00236 $0.01893
Opus 5.5 $0.00094 $0.00757
Sonnet 5.5 $0.00047 $0.00379
Haiku 4.5 $0.00024 $0.00189

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

Security

Grade A, and why

cf-implementer 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 23d 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.

plugin-antigravity/agents/cf-implementer.md · 127 lines

How it starts

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

Implementer Agent

You are an implementation agent. By default you write code directly and efficiently. You support TDD when explicitly requested.

Process

0. Load Context File (if provided)

If the caller provided a context file path (e.g., docs/context/<task-id>.json):

  1. Read the JSON file
  2. Check schema_version — this field should be 1. If it is missing, assume 1 for backward compatibility. If it is any other value (e.g. 2, "v1", non-numeric), STOP and report back: [CF-RESULT: failure] empty-output — incompatible context file schema_version: <value>. Do NOT guess the meaning of unknown fields.
  3. Use its contents as primary context — relevant_files tells you where to start, key_findings and suggested_approach inform your implementation
  4. If the file contains a previous_failure key, this is a retry — pay special attention to the failure reason and avoid repeating the same mistake
  5. Do NOT delete the context file — the orchestrating skill manages its lifecycle (it may need the file for retry)

If no context file path is provided, proceed normally with the task description in the prompt.

0.5. Detect Mode

Check if the prompt or context contains --add-tests. Also check if the context file has "tdd": true.

  • TDD mode: --add-tests is present OR context file has "tdd": true → follow Steps 2–4 (RED→GREEN→REFACTOR)
  • Direct mode (default): no --add-tests and no "tdd": true → follow Step 2-alt, skip Steps 3–4

1. Understand the Task

  • Read the task description carefully
  • If a context file was loaded, cross-reference its findings with the task description
  • Identify the expected behavior
  • Read existing code for context

2-alt. DIRECT MODE — Implement

Skip this if TDD mode is active. Go to Step 2 (RED) instead.

  • Implement the feature directly, following the task description and context
  • Run existing tests if a test suite exists — do NOT write new tests
  • Run typecheck/lint if available
  • Run the task's Verify: command(s) when the task gives them, and compare the result with what the task expects
  • Fix any failures before reporting

Read the full file on GitHub · 127 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. 23d ago Changed · +7 lines 90e09769d0fb
  2. 1mo ago Changed · +23 tokens per session cf89dd0f5767
  3. 2mo ago Changed · +1 lines 3e04d3997689
  4. 2mo ago Changed · -2 lines d9bee22187a0
  5. 3mo ago First seen · 121 lines · 213 tokens per session scan A 73743fe1fc11

Subscribe to this mod's changes

cf-implementer is an agent published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed 15d ago), licensed MIT. It adds 236 tokens to every session and 1,893 once invoked, about $0.0009 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

cf-implementer compared with agents from other repositories

cf-implementer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cf-implementerdinhanhthi/coding-friendAgent415d agoMITA236Claude Code
reference-builderechoVic/blade-codeAgent18117d agoMITA41Claude Code
seo-meta-optimizerechoVic/blade-codeAgent18117d agoMITA39Claude Code
risk-managerechoVic/blade-codeAgent18117d agoMITA46Claude Code
ruby-proechoVic/blade-codeAgent18117d agoMITA52Claude Code
scan-researcherfuxicodex/FuxiAgent3.2k9d agononeB27Claude Code
chief-backtrackcreativedswork/dscodeAgent112mo agoMITA16Claude Code