mech-executor

mech-executor is an agent for Claude Code from Nanako0129/pilotfish. It costs 72 tokens per session (372 once invoked), scanned A, original, MIT.

A coding agent for carrying out fully specified mechanical work, such as consistent refactors, renames, documentation edits, and tests that follow existing patterns.

In plain words
What is it for?
Use it for well-defined multi-file changes, repeated edits, convention-based tests, documentation updates, and named verification commands.
Why use it?
It avoids unnecessary design decisions by stopping when the instructions are incomplete or the problem falls outside the stated scope.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions subagents.

Part of the pilotfish plugin — 7 agents, 1 hook shipped together

Good fit Use it for well-defined multi-file changes, repeated edits, convention-based tests, documentation updates, and named verification commands.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nanako0129/pilotfish/mech-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/Nanako0129/pilotfish

Made for: Claude Code.

Or install pilotfish, the plugin that ships this one along with the rest of its 7 agents, 1 hook.

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 mech-executor

README.md
[![agentmods](https://agentmods.dev/badge/agents/nanako0129/pilotfish/mech-executor/github.svg)](https://agentmods.dev/agents/nanako0129/pilotfish/mech-executor)
Your own site
<a href="https://agentmods.dev/agents/nanako0129/pilotfish/mech-executor"><img src="https://agentmods.dev/badge/agents/nanako0129/pilotfish/mech-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 mech-executor

Your own site · 80×15
<a href="https://agentmods.dev/agents/nanako0129/pilotfish/mech-executor"><img src="https://agentmods.dev/badge/agents/nanako0129/pilotfish/mech-executor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 372 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00072 $0.00372
Opus 5.5 $0.00029 $0.00149
Sonnet 5.5 $0.00014 $0.00074
Haiku 4.5 $0.00007 $0.00037

Measured 2mo ago against content hash 7179910618a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mech-executor 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 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.

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.

plugin/agents/mech-executor.md · 20 lines

What it actually says

Leaf agent: do whole task yourself, this session. Never delegate — Agent/Workflow tools disabled by design. Task seems to need sub-agents → mis-routed; stop/report.

Mechanical executor. Receive fully-specified tasks; carry out exactly — no scope expansion, redesign, or “while I'm here” improvements.

Follow spec conventions and surrounding style. Verify before finishing: run spec checks/tests, confirm every done-criteria item.

Spec ambiguous or wrong mid-task (named file missing, pattern has unstated exceptions, tests fail outside scope) → stop; report exactly found, no guessing — orchestrator re-specs. Precise “blocked because X” = successful outcome; guessed implementation isn't.

Long work: foreground; explicit timeout (max 600000ms/10min). Never detach — no nohup, setsid, trailing &, run_in_background. Detach escapes harness task tracking (no task id, no captured output, no completion notification) — orphaned result, nobody collects. Command can't finish in 10min → don't start: report needs long-running process, exact command, absolute working directory (incl isolated worktree path), required env vars/input paths, stop — orchestrator runs it exact context, re-tasks you with output.

Final message: what changed (files + one line each), verification/how, deferred items.

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 Changed 7179910618a6
  2. 3mo ago First seen · 20 lines · 72 tokens per session scan A 4fbcb1361353

Subscribe to this mod's changes

mech-executor is an agent published in the GitHub repository Nanako0129/pilotfish (718 stars, last pushed 6d ago), licensed MIT. It adds 72 tokens to every session and 372 once invoked, about $0.0003 per session on Opus 5.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.

Related

mech-executor compared with agents from other repositories

mech-executor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mech-executorNanako0129/pilotfishAgent7186d agoMITA72Claude Code
aiwg-model-coding-workerjmagly/aiwgAgent232todayMITA19Claude Code
lead-engDUBSOpenHub/dark-factoryAgent2823d agoMITA16Claude Code
red-teamDUBSOpenHub/dark-factoryAgent2823d agoMITA29Claude Code
architectrealgarit/fable-batonAgent315d agoMITA54Claude Code
Senkujosix/agent-flowAgent811d agoMITA23Claude Code
Alphonsejosix/agent-flowAgent811d agoMITA26Claude Code