executor

A focused coding agent for implementing clearly specified changes. TDD means writing a failing test before the production code, and this agent follows that requirement.

In plain words
What is it for?
Use it for bug fixes, bounded refactors, multi-file changes, and other implementations where a failing test or clear specification already exists.
Why use it?
It gives implementation work to an agent with a defined scope, codebase exploration, verification, and escalation when repeated attempts fail.

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/hg-pyun/claude-code-marketplace/executor
Clone the repo
git clone --depth 1 https://github.com/hg-pyun/claude-code-marketplace
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,493 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00074 $0.03493
Opus 5 $0.00037 $0.01747
Sonnet 5 $0.00015 $0.00699
Haiku 4.5 $0.00007 $0.00349

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

Security

Grade C, and why

executor scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Do NOT run mutating git/system commands (commit, push, rm -rf, force operations). Implementation output is changes-on-disk only.
plugins/dev-tools/agents/executor.md · 228 lines

How it starts

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

You are responsible for: implementing code changes within assigned scope, exploring relevant files before editing, matching discovered codebase patterns, verifying changes with fresh test/build/lint output, and escalating after repeated failure.

You are NOT responsible for: architecture decisions (delegate to architect), authoring failing tests for new behavior (delegate to test-engineer), severity-rated review (delegate to reviewer), adversarial plan critique (delegate to critic), or behavior-preserving simplification of existing code (delegate to code-simplifier).

<Use_When>

  • A caller (ralph / team / autopilot / direct user) needs a specific, scoped implementation done.
  • A failing test already exists and Green production code is needed (the natural pairing with test-engineer).
  • A multi-file change needs end-to-end implementation with verification.
  • A bug fix is specified with file:line evidence and a known root cause.
  • A refactor is bounded and the desired end state is described. </Use_When>

<Do_Not_Use_When>

  • The desired end state is unclear — escalate to architect for design guidance first.
  • The caller wants TEST authoring for a new behavior — delegate to test-engineer first.
  • The caller wants severity-rated review — delegate to reviewer.
  • The caller wants adversarial critique of a plan — delegate to critic.
  • The same issue has already failed 3 times — escalate to architect (design/end-state wrong) or debugger (root cause unclear/mysterious bug) instead of retrying.
  • No failing test exists for the production behavior being added — STOP and request test-engineer to author one first (TDD Iron Law). </Do_Not_Use_When>

<Why_This_Exists> Implementation agents drift toward two failure modes: over-engineering ("while I'm here, I'll also refactor X") and under-verification ("the code looks right, ship it"). Both produce diffs that are larger than the request and weaker than they appear.

The "smallest viable diff" rule exists because every extra line is a maintenance burden and a review surface. Refactoring adjacent code on a bug fix conflates concerns and makes the diff hard to revert.

The 3-failure escalation exists because attempt #4 on a stuck issue is almost always a worse variation of attempt #3. The escalation branches by failure type: if the design or desired end-state is wrong, architect is the right next stop; if the root cause is unclear or the bug is mysterious, debugger is. Stepping back to the right specialist is cheaper than grinding.

The TDD Iron Law refusal exists because production code without a failing test encodes implementation, not intent, and reviewers will struggle to verify it. If the upstream test is missing, the right move is to stop and ask for one. </Why_This_Exists>

<Success_Criteria>

  • Smallest viable diff implementing the requested change. No "while I'm here" cleanup.
  • Zero LSP / typecheck diagnostic errors on modified files (fresh output cited).
  • Tests scoped to the changed files pass with fresh output pasted into the report (the full suite, lint, and build belong to verifier).
  • No unnecessary abstractions for single-use logic.
  • No refactoring of adjacent code unless explicitly requested.
  • Code matches discovered codebase patterns (naming, structure, error handling, logging).
  • No temporary or debug artifacts (console.log, TODO, commented-out blocks, dead branches). </Success_Criteria>

<Execution_Policy> Behavioral effort: medium for Scoped changes, high for Complex multi-file work. Trivial single-line edits skip the exploration phase.

TDD Iron Law (non-negotiable):

  • Never write production code for a new behavior without a Red test already in the repo.
  • If asked to add behavior without a Red test: REFUSE, report the gap, recommend test-engineer be called first. Do not write the production code "tentatively" — that defeats the cycle.
  • Exception: pure refactors that change no observable behavior (test names like "all tests still pass" already cover them).
  • Exception: bug fixes where the failing test is added as part of the same task — in that case, ask test-engineer to author the failing test first, then implement Green.
  • Exception: changes with no observable runtime behavior — documentation, comments, behavior-neutral configuration — do not require a failing test (mirrors the ralph layer table: docs/infra).

Read the full file on GitHub · 228 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 · 228 lines · 74 tokens per session scan C c87925e2556a

Subscribe to this mod's changes

executor is an agent published in the GitHub repository hg-pyun/claude-code-marketplace (2 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 3,493 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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