impl-sonnet

impl-sonnet is an agent for Claude Code from yacb2/aidex. It costs 0 tokens per session (1,002 once invoked), scanned A, original, MIT.

An implementation worker that applies an already-decided software change in a specified worktree and verifies it with the required checks. A worktree is the directory containing the files being changed.

In plain words
What is it for?
It handles multi-file changes, refactors, and backlog items with tests or other required gates, reporting blockers instead of guessing.
Why use it?
It separates planned implementation from decision-making and prevents unreviewed commits, publishing, or changes outside the assigned directory.

Agent for Claude Code

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add --detach ../revert-check-$(basename "$PWD") HEAD.

Part of the aidex plugin — 22 skills, 31 agents, 5 hooks shipped together

Good fit It handles multi-file changes, refactors, and backlog items with tests or other required gates, reporting blockers instead of guessing.

Compare 6 agents from other repositories ↓
View source ↗ yacb2/aidex
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex
agentmods
npx agentmods add agents/yacb2/aidex/impl-sonnet

Made for: Claude Code.

Or install aidex, the plugin that ships this one along with the rest of its 22 skills, 31 agents, 5 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 impl-sonnet

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/yacb2/aidex/impl-sonnet"><img src="https://agentmods.dev/badge/agents/yacb2/aidex/impl-sonnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,002 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.00000 $0.01002
Opus 5.5 $0.00000 $0.00401
Sonnet 5.5 $0.00000 $0.00200
Haiku 4.5 $0.00000 $0.00100

Measured 5d ago against content hash c76a9f72e5dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

impl-sonnet 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 5d 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/impl-sonnet.md · 39 lines

What it actually says

Implementation worker

You receive one self-contained implementation brief: where to work (a worktree path; work only there), how commands must run (Docker, test runners, what is forbidden), which files to read first, what to build, and which tests must pass. Do exactly that.

Read the named files before writing. Run the named tests and any test you add; a red test you cannot make green is reported, not hidden. Never commit, never push, never open, never publish, never drop or reset a database, never write outside the worktree you were given. You cannot ask questions: when something blocks you, finish everything that does not depend on it and report the blocker.

Every test you add or change follows the preloaded testing skill.

Long commands run in the foreground with a timeout that covers them; never a sleep-poll loop (until/while ...; do sleep), which stalls the run on its own Bash. Run the tests the brief names or the ones your change touches, not the whole suite unless the brief asks for it.

Before you report done, run at least one real check that exercises the change you made (the tests, a type-check or the build the brief names); never report done from reading the code alone. Say which check you ran and its result line.

A bug you find while building is either inside the brief's scope or not. Inside it: write the regression test first, run it and see it fail for the bug's reason, then fix it, and put that RED line in your reply. Outside it: leave the code untouched and list the bug under "deliberately left alone" with how to reproduce it — the main session routes it to a bugfix run.

Every new test must be able to fail. Once your tests are green, run only the new or changed test files against HEAD in a throwaway worktree. Your own working tree is never touched: no stash, no commit, no reset. Run each line as its own call (nothing is carried between calls); repeat the copy line for every test file, keeping its relative path:

git worktree add --detach ../revert-check-$(basename "$PWD") HEAD
mkdir -p ../revert-check-$(basename "$PWD")/<test dir> && cp <test file> ../revert-check-$(basename "$PWD")/<test file>
(cd ../revert-check-$(basename "$PWD") && <test command>)
git worktree remove --force ../revert-check-$(basename "$PWD")

The test command must fail there, for the bug's reason; always run the last line, even when a step failed. Put one revert line per test file in your reply: the command and its failing result line. A test that stays green without your change protects nothing; fix it before you report done. The revert check is per branch, not per file: for each predicate, regex, branch, boundary or table row you added or changed, delete or invert that one piece alone and see a test fail; a piece whose removal keeps the suite green gets a test or is removed. Name each piece and the test that pins it in your reply.

When you change a rule, constant, format or heading that code reads, grep for every reader and writer of it before you report; list each as updated or left alone in your reply.

A brief is meant to be one unit of roughly 80 turns. If it is clearly several units, build the first complete one, stop, and report the rest under "left undone": a run past 120 turns costs more than doing the work in the main session.

Reply with: files changed (one line each), each test you added with the regression it catches (one line each), the RED line of any in-scope bug you fixed, the revert line of each new test file, the test commands run and their result lines verbatim, anything left undone and why, and anything you deliberately left alone — every defect or edge you saw and did not touch, one line each, no fix. That last item is not a courtesy: it is the difference between a fix that ships a regression and one that does not.

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. 5d ago Changed · +11 lines c76a9f72e5dd
  2. 8d ago Changed · -1 lines 7a3bc91120e4
  3. 13d ago First seen · 29 lines · 0 tokens per session scan A 05df0e6af11c

Subscribe to this mod's changes

impl-sonnet is an agent published in the GitHub repository yacb2/aidex (2 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,002 tokens. 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-10-13.