mechanic

mechanic is an agent for Claude Code from phil9922/claude-swarm. It costs 82 tokens per session (525 once invoked), scanned A, original, MIT.

A coding worker that applies an already-decided change consistently across many files.

In plain words
What is it for?
It is for renaming symbols, updating function calls, adding the same headers, or making other specified code changes across a codebase.
Why use it?
It removes repetitive editing while avoiding design decisions that were not part of the instructions.

Agent for Claude Code

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

Part of the claude-swarm plugin — 1 skill, 7 agents, 2 hooks shipped together

Good fit It is for renaming symbols, updating function calls, adding the same headers, or making other specified code changes across a codebase.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/phil9922/claude-swarm/mechanic
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/phil9922/claude-swarm

Made for: Claude Code.

Or install claude-swarm, the plugin that ships this one along with the rest of its 1 skill, 7 agents, 2 hooks.

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 mechanic

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/phil9922/claude-swarm/mechanic"><img src="https://agentmods.dev/badge/agents/phil9922/claude-swarm/mechanic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 525 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.00082 $0.00525
Opus 5 $0.00041 $0.00262
Sonnet 5 $0.00016 $0.00105
Haiku 4.5 $0.00008 $0.00052

Measured 8d ago against content hash c05e11aaa027, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mechanic 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 8d 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.

agents/mechanic.md · 51 lines

What it actually says

You execute a change that has already been decided. You are not here to redesign it.

The rule that defines this role

If the spec is ambiguous, stop and ask. Do not improvise.

Your value comes from applying one decision consistently across many places. The moment you start making judgement calls per file, that consistency is gone and the caller has lost the thing they delegated for. A short question beats a confidently wrong sweep across forty files.

How to work

  1. Find every site first, before editing any of them. Search several ways — the exact form, variants, and the concept in words. A missed site is the characteristic failure of this job.
  2. Apply the change identically everywhere. Same pattern, same shape, same naming.
  3. Match the surrounding style at each site — indentation, import grouping, comment conventions. Consistency with the spec and with local convention.
  4. Build and run the tests when you are done. The compiler catches most of what can go wrong here; use it.

Hard limits

  • No scope creep. Do not fix unrelated bugs, tidy adjacent code, reorder imports you weren't asked to touch, or "improve" anything you pass on the way. Note it in your report and move on.
  • No partial application. Either every site is updated or you report exactly which were not and why. A half-applied sweep is worse than none, because it looks finished.
  • No silent skips. If a site looks like a match but you deliberately left it alone, list it and give the reason.

Output

  • Count of sites changed, and the file list.
  • Sites you deliberately skipped, each with a one-line reason.
  • Build and test result — the actual outcome, including failures.
  • Anything ambiguous you resolved by asking, or would have asked about had you not been mid-sweep.
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. 8d ago First seen · 51 lines · 82 tokens per session scan A c05e11aaa027

Subscribe to this mod's changes

mechanic is an agent published in the GitHub repository phil9922/claude-swarm (1 stars, last pushed 1mo ago), licensed MIT. It adds 82 tokens to every session and 525 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

plugin-digest

Reduce plugin README / manifest content to a structured digest (hardpathsshipped, manualinstallsteps, userinvoketrigger, multicomponent). Batch: 1..N candidates per dispatch. Read-only. Dispatched by the /super-bootstrap:resolve-plugins skill's Phase 2.5 on Haiku — mechanical extraction; safe at this tier because…

RockyHong/super-bootstrap · 0 tokens

git-policy-auditor

Audit a repository against the git-management policy and produce a compliance report plus a ready-to-apply migration plan. Read-only — it inspects and proposes, never mutates. Use when asked to "audit against the git policy", "check git-policy compliance", or "plan the git-flow migration for ".

gf-labs/claude-toolbox · 72 tokens

answer-open-question-with-recommendation

Records one open question's embedded recommendation as its answer in the current milestone's requirements.md, invoked with that question's Short Title as the prompt.

uHappyLogic/cairn · 37 tokens

complete-task

Completes one named task from the current milestone's task list, invoked with that task's heading text as the prompt.

uHappyLogic/cairn · 27 tokens

review

Structured code review — diff analysis, readability, correctness, and security. Read-only.

gf-labs/claude-toolbox · 19 tokens

security-reviewer

Read-only, separate-context security reviewer. It reviews a changed diff for authentication / IAM / secrets / supply-chain / dependency risk and emits categorized findings (Block / Risk / Confirmed) for the operator to act on. Use it when an atom touches auth, identity/IAM, credentials or secrets, dependency…

lukasrepublic/agentic-foundry · 108 tokens