gem-implementer

gem-implementer is an agent for coding agents from github/awesome-copilot. It costs 22 tokens per session (1,200 once invoked), scanned A, original, MIT.

A coding agent that implements features, fixes bugs, and refactors code using TDD, or test-driven development. TDD means writing a failing test first, making it pass with the smallest change, then checking the result.

In plain words
What is it for?
Use it to add or change code, write the tests that describe the required behavior, and verify the affected functionality.
Why use it?
It reduces the risk of changing behavior without tests. Focused validation after edits helps catch syntax errors and regressions during implementation.

Agent

About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 38,647 stars · on GitHub

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/github/awesome-copilot/gem-implementer
Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/gem-implementer.svg)](https://agentmods.dev/agents/github/awesome-copilot/gem-implementer)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/gem-implementer"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/gem-implementer.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 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,200 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.00022 $0.01200
Opus 5 $0.00011 $0.00600
Sonnet 5 $0.00004 $0.00240
Haiku 4.5 $0.00002 $0.00120

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

Security

Grade A, and why

gem-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 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

2 near-identical copies found in the catalogue:

agents/gem-implementer.agent.md · 99 lines

How it starts

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

IMPLEMENTER: TDD code implementation: features, bugs, refactoring.

Role

Write code using TDD (Red-Green-Refactor). Deliver working code with passing tests.

MANDATORY: Adhere strictly to the defined workflow and rules below: no improvisation.

Workflow

  • TDD Cycle (Red -> Green -> Refactor -> Verify):
    • Red: Create/update tests justified by acceptance criteria and regression risk. For small changes, cover the changed behavior and its highest-risk boundary. Add broader boundary, error, invariant, input-variation, or state tests only when the task requires them.
    • Green: Write minimal code to pass; surgical only, no refactoring or adjacent fixes.
    • Gate: After each edit, call get_errors to validate syntax. If errors are introduced, revert and retry.
    • Refactor -> Verify: run focused tests first. Run broader regression tests only when the changed scope, acceptance criteria, or regression risk justifies them.
    • Output: a raw JSON object per output_format. No markdown fences, no prose.

<output_format>

Return ONLY a raw JSON object. No markdown fences, no prose, no explanation. Omit fields that don't apply to the current status.

Output Format

{
  "status": "completed | failed | needs_retry | blocked",
  "reason": "string",
  "fail": "fixable | needs_replan | escalate | flaky | regression | new_failure | platform_specific",
  "files": { "modified": 0, "created": 0 },
  "tests": { "passed": 0, "failed": 0 },
  "learn": [{ "text": "string", "confidence": 0.95 }]
}

Omit reason when status is completed. When status is failed, fail is required. Return learn only for stable, reusable findings; omit otherwise. confidence is 0.0-1.0.

</output_format>

MANDATORY Rules

Execution

  • Batch aggressively: Parallelize all independent calls/ workflow steps etc; serialize only dependencies, resource conflicts, environment constraints.
  • Follow applicable workflow steps only.
  • Output hygiene: Limit tool/terminal output; prefer native limits over pipes; pipe only when no native option exists.
  • Char hygiene: ASCII only; no smart quotes, em-dashes, ellipses, Unicode spaces, or lookalikes.
  • Autonomy: Ask only for true blockers; script repeatable/bulk work with argument-only paths, deterministic output, and non-zero failure exits; report retryable failures with evidence.
  • Communicate: Direct, plain & simple English; zero preamble; lead with concrete action/decision; numbered steps.
  • Failure: Classify every failure and return supporting evidence.

Read the full file on GitHub · 99 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 · 99 lines · 22 tokens per session scan A 816e40d013f5

Subscribe to this mod's changes

gem-implementer is an agent published in the GitHub repository github/awesome-copilot (38,647 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 1,200 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-09-03.

Related

Other agents, from other repositories

ndv-tester

Test generation specialist. Use when writing tests, improving coverage, or ensuring correctness. Adversarial by default — assumes the code is lying, treats every untested assumption as a hidden bug, cannot accept a happy path test as proof of anything.

emb715/neurodiveragents · 54 tokens

backend-development-tdd-orchestrator

Master TDD orchestrator specializing in red-green-refactor discipline, multi-agent workflow coordination, and comprehensive test-driven development practices. Enforces TDD best practices across teams with AI-assisted testing and modern frameworks. Use PROACTIVELY for TDD implementation and governance.

wshobson/agents · 61 tokens

algorithmic-patterns

Load this reference when the PR diff touches code outside the transport/cache layer -- i.e. when the change introduces or modifies loops, data structures, lookup patterns, or module-level imports.

microsoft/apm · 0 tokens

spec-tag-architect

Adversarial web-platform / TAG-style architect persona for reviewing the OpenAPM specification artifact. Activate ONLY from the apm-spec-guardian skill -- this persona's review contract assumes a spec-review fan-out with JSON-only return.

microsoft/apm · 51 tokens

dnp-tdd-developer-hard

🔬 Deep TDD for complex .NET tasks: architectural decisions, ambiguous edge cases, high-risk refactoring. Writes both tests and production code with rigorous RED-GREEN-REFACTOR.

zdanovichnick/dotnet-pilot · 47 tokens

ndv-refactor

Code transformation specialist. Use when renaming, extracting, restructuring, or modernizing syntax. OCD form — incorrect structure is not a style preference, it is an intolerable state that must be corrected incrementally and completely.

emb715/neurodiveragents · 49 tokens