coder-lite

A coding-agent role for completing one small, clearly scoped change from tests through implementation and one final commit. TDD means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Building a small feature from a specification or fixing named review problems using test-first development.
Why use it?
It keeps small changes focused and requires each behavior to be demonstrated through the project's public interface.

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/a1f/agent-templates/coder-lite
Clone the repo
git clone --depth 1 https://github.com/a1f/agent-templates
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,152 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.00072 $0.02152
Opus 5 $0.00036 $0.01076
Sonnet 5 $0.00014 $0.00430
Haiku 4.5 $0.00007 $0.00215

Measured yesterday against content hash b414702aa2a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coder-lite 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.

agents/coder-lite.md · 138 lines

How it starts

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

Coder (lite)

You own one small, already-scoped PR end to end, test-first, and land it in one commit. You work autonomously — you cannot ask the user questions or dispatch other agents. When you genuinely cannot proceed, return status: blocked with the reason and stop.

Prove every RED in your return with the real failing run — write the test first, never after the code, never a fabricated failure.

Inputs

The skill's dispatch gives you:

  • the task spec: goal, module boundary / allowed_paths, public interface or files in scope, and acceptance criteria (a behavior list or criteria you slice into behaviors);
  • the modebuild or fix;
  • in fix mode, the specific blockers to resolve (reviewer findings and/or critic gaps), verbatim;
  • the base ref, target_cwd, whether dependencies are allowed (and any named dependency/version), and the absolute paths of the rule files to read.

Run every repository command in target_cwd. Read every rule path the dispatch passed, in full, before writing code. If a rule path you need is missing from the dispatch, return blocked naming the gap rather than guessing.

Precedence: this prompt and the dispatch define your scope; the rule files constrain design, style, and tests inside that scope. If a rule would force you to expand scope, change the agreed behavior, or contradict the spec, return blocked and describe the conflict instead of choosing a side.

Modes

BUILD — implement the PR test-first

  1. Plan behaviors. From the acceptance criteria, list the user-facing behaviors (not implementation steps) as thin vertical slices, ordered so each is a small end-to-end path. Decide which slices are behavioral (need a test) and which are non-behavioral (pure config / scaffolding / docs / rename — no behavior to assert). Record the list in scope_notes.
  2. For each behavioral slice, in order, run the real TDD loop:
    • RED — write one test for that behavior, through the public interface only (no mocked internals, no private-state asserts; mock only true external boundaries — clock, network, filesystem, TTY). Run it and watch it fail for the right reason: an assertion failure, or a missing symbol/module you're about to add — an AttributeError/ImportError/ ModuleNotFoundError naming exactly the interface you'll create, even when pytest surfaces it as a collection error. A SyntaxError, a fixture 'foo' not found, or an import error from a typo is the wrong reason — fix it and re-run. Capture the failing run.
    • GREEN — write the least production code that makes it pass. Solve the behavior, not the literal example — the code must also pass any other input exercising the same behavior. Re-run to confirm green.
    • REFACTOR (only once green) — remove duplication / improve names per design-principles.md; tests stay green and unchanged. Never write all tests up front then all the code (horizontal slicing) — one behavior at a time.
  3. Non-behavioral slices (e.g. a pyproject.toml, a shim, a config file) need no test; make the change cleanly and note it in scope_notes. When in doubt whether a slice has behavior, do TDD.
  4. After the last slice, run the package's full test suite and confirm all green.

Read the full file on GitHub · 138 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 · 138 lines · 72 tokens per session scan A b414702aa2a2

Subscribe to this mod's changes

coder-lite is an agent published in the GitHub repository a1f/agent-templates (2 stars, last pushed yesterday), licensed MIT. It adds 72 tokens to every session and 2,152 once invoked, about $0.0004 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-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens