subagent-implementation

subagent-implementation is a command for Claude Code from damusix/atomic-claude. It costs 45 tokens per session (489 once invoked), scanned A, original, MIT.

A command that coordinates several fresh-context coding agents through investigation, implementation, review, and follow-up until a task is complete. It works from an approved specification and updates repository documentation afterward.

In plain words
What is it for?
Use it for planned repository changes that need an investigator, builder, reviewer, commits after successful iterations, and documentation updates.
Why use it?
It divides a coding task into focused stages and repeats review after each implementation cycle, reducing the chance that important work or documentation is missed.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it for planned repository changes that need an investigator, builder, reviewer, commits after successful iterations, and documentation updates.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/damusix/atomic-claude/subagent-implementation
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/damusix/atomic-claude

Made for: Claude Code.

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 subagent-implementation

README.md
[![agentmods](https://agentmods.dev/badge/commands/damusix/atomic-claude/subagent-implementation/github.svg)](https://agentmods.dev/commands/damusix/atomic-claude/subagent-implementation)
Your own site
<a href="https://agentmods.dev/commands/damusix/atomic-claude/subagent-implementation"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/subagent-implementation/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 subagent-implementation

Your own site · 80×15
<a href="https://agentmods.dev/commands/damusix/atomic-claude/subagent-implementation"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/subagent-implementation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 489 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.00045 $0.00489
Opus 5.5 $0.00018 $0.00196
Sonnet 5.5 $0.00009 $0.00098
Haiku 4.5 $0.00005 $0.00049

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

Security

Grade A, and why

subagent-implementation 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 12d 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.

context/commands/subagent-implementation.md · 51 lines

What it actually says

You orchestrate; you do not write the code. Fresh-context subagents do, and the scratchpad brief is their only handoff.

Policy

Setting Value
Writer atomic-implementer
Entry hand-off table, plus: no spec and the work is more than a small obvious change → /atomic-plan first
Worktree ask (skip the question when the work is small)
Stuck auto
Non-blockers batch
Finalize cleanup, docs, verify, audit, follow-ups, log, signals, report
Scratchpad purpose implement
Ship no

{{ template "handoff" . }}

Understand

Dispatch atomic-investigator to map the surface (files, call sites, tests, conventions) unless the task names exact files. Lead it with atomic code explore "<area>" when an index exists. Read only what its file:line table says you need for scoping; do not implement.

Spec

Topic slug from the task. The loop runs from a spec, or inline only when the work is small and obvious.

flowchart TD
    S{"Spec exists?"} -->|yes| U["Use the spec"]
    S -->|no| W{"Small and obvious?"}
    W -->|yes| I["Inline brief"]
    W -->|no| P["Hand off to<br/>/atomic-plan"]
  • Spec exists?: docs/spec/<topic>.md.
  • Use the spec: it is the brief's source and its checkpoint table is the loop. Its body must be current before any dispatch: a decision in this conversation that superseded part of it is fixed in the spec, never worked around in the brief.
  • Inline brief: say no spec; proceeding inline and continue with a one-checkpoint brief.

{{ template "worktree-setup" . }}

{{ template "implement-loop" . }}

{{ template "loop-finalize" . }}

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. 12d ago Changed · +10 lines 278c71e950a8
  2. 2mo ago Changed · -227 lines · -8 tokens per session 1c83d9dcb387
  3. 3mo ago First seen · 268 lines · 53 tokens per session scan A 27498e11dbdb

Subscribe to this mod's changes

subagent-implementation is a command published in the GitHub repository damusix/atomic-claude (117 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 489 once invoked, about $0.0002 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

subagent-implementation compared with commands from other repositories

subagent-implementation next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
subagent-implementationdamusix/atomic-claudeCommand1172d agoMITA45Claude Code
agentloop-audit-dashboardalibaba/loongsuite-pilotCommand271yesterdayApache-2.0A21Claude Code
agentloop-audit-queryalibaba/loongsuite-pilotCommand271yesterdayApache-2.0A20Claude Code
generate-llmsopencue/cuecardsCommand9yesterdayMITA33Claude Code
audit-geoopencue/cuecardsCommand9yesterdayMITA24Claude Code
audit-seoopencue/cuecardsCommand9yesterdayMITA27Claude Code
add-agentivan-magda/claude-code-plugin-templateCommand725mo agoMITA12Claude Code