executor

executor is an agent for Claude Code from hg-pyun/claude-code-marketplace. It costs 74 tokens per session (3,493 once invoked), scanned C, original, MIT.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the dev-tools plugin — 11 skills, 1 command, 15 agents shipped together

Good fit Use it for bug fixes, bounded refactors, multi-file changes, and other implementations where a failing test or clear specification already exists.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hg-pyun/claude-code-marketplace/executor
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.

Clone the repo
git clone --depth 1 https://github.com/hg-pyun/claude-code-marketplace

Made for: Claude Code.

Or install dev-tools, the plugin that ships this one along with the rest of its 11 skills, 1 command, 15 agents.

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 executor

README.md
[![agentmods](https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/executor/github.svg)](https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/executor)
Your own site
<a href="https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/executor"><img src="https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/executor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for executor

Your own site · 80×15
<a href="https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/executor"><img src="https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/executor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00074 $0.03493
Opus 5.5 $0.00030 $0.01397
Sonnet 5.5 $0.00015 $0.00699
Haiku 4.5 $0.00007 $0.00349

Measured 2mo ago against content hash c87925e2556a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

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. 2mo ago 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 4mo ago), licensed MIT. It adds 74 tokens to every session and 3,493 once invoked, about $0.0003 per session on Opus 5.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.