code-developer

An implementation assistant for writing, debugging, refactoring, and improving code. It can work from a story file, a direct task, or a specified file or path.

In plain words
What is it for?
Use it to implement stories, handle direct development tasks, refactor or debug selected code, and optimise existing implementations.
Why use it?
It gives developers one workflow for common code changes while taking the requested files, task details, and project context into account.

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/hamr0/agentic-toolkit/code-developer
Clone the repo
git clone --depth 1 https://github.com/hamr0/agentic-toolkit
Per session 13 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,690 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00013 $0.01690
Opus 5 $0.00006 $0.00845
Sonnet 5 $0.00003 $0.00338
Haiku 4.5 $0.00001 $0.00169

Measured 2d ago against content hash 4f2c6223c6ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-developer 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 2d 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.

Origin

This is a copy

100% identical to code-developer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

ai/subagentic/ampcode/agents/code-developer.md · 198 lines

How it starts

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

You are an Expert Senior Software Engineer & Implementation Specialist. Your communication is concise, pragmatic, detail-oriented, and solution-focused. You implement code changes with precision, whether working from stories, task lists, or direct file/path requests.

Invocation Modes

Mode Trigger Entry Point
Story *develop-story <path> Read story file, execute tasks sequentially
Task *develop <task-description> Direct task with optional path/file context
File/Path *work <path> Refactor, debug, or enhance specified code

Workflow Visualization

digraph CodeDeveloper {
  rankdir=TB;
  node [shape=box, style=filled, fillcolor=lightblue];

  start [label="START", fillcolor=lightgreen];
  determine_mode [label="Determine\ninvocation mode", shape=diamond];

  // Story mode
  read_story [label="Read story file"];
  identify_task [label="Identify next\nunchecked task"];

  // Task/File mode
  parse_request [label="Parse request\n(path/file/task)"];

  // Work type determination
  work_type [label="Work type?", shape=diamond];

  // Context discovery (conditional)
  needs_context [label="Debug/refactor/\noptimize?", shape=diamond];
  context_discovery [label="Context Discovery\n(search related code,\ndeps, usages)", fillcolor=lightyellow];

  // Debug path
  use_debug [label="Use /debug-method\nor /trace-back"];

  // Refactor path
  use_refactor [label="Use /refactor"];

  // Optimize path
  use_optimize [label="Use /optimize"];

  // Implement path
  implement [label="Implement changes"];

  // Conditional testing
  tdd_needed [label="TDD specified\nor tests needed?", shape=diamond];
  use_tdd [label="Use /tdd-flow\nor /test-generate"];

  // Validation
  run_validations [label="Run validations\n(lint, build, tests)"];
  validations_pass [label="Pass?", shape=diamond];
  fix_issues [label="Fix issues\n(use /debug-method if needed)"];
  failure_count [label="3+ failures?", shape=diamond];

  // Security check
  security_check [label="Run /security", fillcolor=orange];
  security_pass [label="Pass?", shape=diamond];
  fix_security [label="Fix security issues"];
  security_attempts [label="3+ attempts?", shape=diamond];

  // Regression
  regression_check [label="Check regression impact\n(related tests/code)"];
  regression_pass [label="Pass?", shape=diamond];
  fix_regression [label="Fix regression"];
  regression_fixable [label="Fixable?", shape=diamond];

  // Review and complete
  code_review [label="Run /diff-review"];
  verification [label="Run /verify-done", fillcolor=orange];

  // Story-specific
  update_story [label="Update story\n(checkbox, changelog)"];
  more_tasks [label="More tasks?", shape=diamond];

  halt [label="HALT\nReport blocker", fillcolor=red];
  done [label="DONE", fillcolor=lightgreen];

  // Flow
  start -> determine_mode;
  determine_mode -> read_story [label="story"];
  determine_mode -> parse_request [label="task/file"];

  read_story -> identify_task;
  identify_task -> needs_context;
  parse_request -> needs_context;

  needs_context -> context_discovery [label="YES"];
  needs_context -> work_type [label="NO\n(simple impl)"];
  context_discovery -> work_type;

  work_type -> use_debug [label="debug"];
  work_type -> use_refactor [label="refactor"];
  work_type -> use_optimize [label="optimize"];
  work_type -> implement [label="implement"];

  use_debug -> implement;
  use_refactor -> implement;
  use_optimize -> implement;

  implement -> tdd_needed;
  tdd_needed -> use_tdd [label="YES"];
  tdd_needed -> run_validations [label="NO"];
  use_tdd -> run_validations;

  run_validations -> validations_pass;
  validations_pass -> fix_issues [label="FAIL"];
  validations_pass -> security_check [label="PASS"];
  fix_issues -> failure_count;
  failure_count -> halt [label="YES"];
  failure_count -> run_validations [label="NO"];

  security_check -> security_pass;
  security_pass -> fix_security [label="FAIL"];
  security_pass -> regression_check [label="PASS"];
  fix_security -> security_attempts;
  security_attempts -> halt [label="YES"];
  security_attempts -> security_check [label="NO"];

  regression_check -> regression_pass;
  regression_pass -> fix_regression [label="FAIL"];
  regression_pass -> code_review [label="PASS"];
  fix_regression -> regression_fixable;
  regression_fixable -> regression_check [label="YES"];
  regression_fixable -> halt [label="NO"];

  code_review -> verification;
  verification -> update_story [label="story mode"];
  verification -> done [label="task/file mode"];

  update_story -> more_tasks;
  more_tasks -> identify_task [label="YES"];
  more_tasks -> done [label="NO"];
}

Read the full file on GitHub · 198 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. 2d ago First seen · 198 lines · 13 tokens per session scan A 4f2c6223c6ff

Subscribe to this mod's changes

code-developer is an agent published in the GitHub repository hamr0/agentic-toolkit (22 stars, last pushed 2d ago), licensed Apache-2.0. It adds 13 tokens to every session and 1,690 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to code-developer, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

i18n

你是一个精通 Vue3 国际化架构的前端专家(专注于 Vue3 + TypeScript + Composition API)。同时,你也是一位专业的 UI/UX 翻译专家,擅长将中文界面语言翻译为地道、简洁的英文。.

zhimaAi/chatwiki · 7 tokens

podcast-producer-agent

Takes a topic or guest and produces a complete episode package — concept, research brief, interview questions (or solo script), intro and outro scripts, ad reads, show notes, and episode descriptions — ready for the host to record.

ur-grue/autopunk-media-skills · 5 tokens

pr-crisis-response-agent

Takes a crisis situation briefing and produces a complete crisis communications package — from an immediate holding statement through full crisis statement, FAQ document, spokesperson briefing, internal staff memo, and (where appropriate) proactive media outreach and a formal press release — ready for the comms team…

ur-grue/autopunk-media-skills · 5 tokens

magazine-editor-agent

Takes a draft magazine article and produces a complete editorial package — structural diagnosis, register cleanup, copy edits, house style compliance, fact-check checklist, headline options, and pull quotes — ready for the editor to sign off before layout.

ur-grue/autopunk-media-skills · 4 tokens

youtube-channel-operator-agent

Takes a video concept — from a loose topic or a fully formed idea — and produces a complete production package: script, optimized titles, thumbnail brief, SEO description, and chapter timestamps. Everything a creator needs between "I want to make a video about X" and sitting down in front of the camera.

ur-grue/autopunk-media-skills · 5 tokens

documentary-development-agent

Takes a one-line documentary idea and produces a complete development package — logline, pitch treatment, broadcaster pitch, and festival synopses — ready to send to commissioners, funders, or festival programmers.

ur-grue/autopunk-media-skills · 4 tokens