code-developer

A coding agent for implementing, debugging, refactoring, and optimizing software. It can work from a product story, a direct task, or a specified file or path.

In plain words
What is it for?
Use it to develop a story, complete a task, or improve specified code through implementation, debugging, refactoring, or optimization.
Why use it?
It gives different kinds of coding requests a defined way to start and follow through. The workflow helps it first understand the requested mode and relevant project context.

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/liteagents/code-developer
Clone the repo
git clone --depth 1 https://github.com/hamr0/liteagents
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 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 $0.00013 $0.01690
Opus 5 $0.00006 $0.00845
Sonnet 5 $0.00003 $0.00338
Haiku 4.5 $0.00001 $0.00169

Measured yesterday 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 yesterday.

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

Copies of this mod

1 near-identical copy found in the catalogue:

packages/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. yesterday 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/liteagents (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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.