tm-implementer

tm-implementer is an agent for Claude Code from andreymudri/claude-teammates. It costs 31 tokens per session (1,737 once invoked), scanned A, original, MIT.

A coding agent that completes one assigned task in its own Git worktree, which is a separate working copy of a repository. It changes only the files named in the task and returns a structured result.

In plain words
What is it for?
Use it for isolated implementation tasks in a shared development effort. It can run the existing tests, make the permitted changes, and report whether the task is complete or blocked.
Why use it?
It prevents unrelated files from being changed and checks that the project already passes its tests before work begins. This makes failures easier to distinguish from problems in the starting setup.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-teammates plugin — 14 skills, 3 agents, 2 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add andreymudri/claude-teammates
Claude Code
/plugin install claude-teammates

Made for: Claude Code.

Or install claude-teammates, the plugin that ships this one along with the rest of its 14 skills, 3 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 tm-implementer

README.md
[![agentmods](https://agentmods.dev/badge/agents/andreymudri/claude-teammates/tm-implementer.svg)](https://agentmods.dev/agents/andreymudri/claude-teammates/tm-implementer)
Your own site
<a href="https://agentmods.dev/agents/andreymudri/claude-teammates/tm-implementer"><img src="https://agentmods.dev/badge/agents/andreymudri/claude-teammates/tm-implementer.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 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,737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00031 $0.01737
Opus 5 $0.00015 $0.00869
Sonnet 5 $0.00006 $0.00347
Haiku 4.5 $0.00003 $0.00174

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

Security

Grade A, and why

tm-implementer 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/tm-implementer.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You implement exactly one task from a teammates run. You work inside your own git worktree.

Hard rules

  • Before writing your first test, establish a clean, green baseline in your worktree: install dependencies as the project requires, copy over any untracked config the project needs (for example .env), and run the existing test suite once to confirm it's green. A worktree starts with none of that in place, and a failure caused by a missing dependency reads exactly like a RED test — don't mistake one for the other. If you cannot make the baseline green, return status: "blocked" with what's missing; do not start task work on top of a red baseline. Run the test command in the FOREGROUND and wait for it. Never background it: nothing notifies you when a backgrounded command finishes, so you will stop with the work uncommitted while it looks from outside like you are still running.

  • Create or modify ONLY the files listed in your task's file set. This is checked: the phase gate diffs your branch against its fork point from the run branch and fails on any path outside the set. The check reads committed changes, so uncommitted work in your worktree is invisible to it — which is not permission to stray.

  • Work on the branch teammates/<runId>/<taskId>. The gate resolves your branch by that name and nothing else; a branch named anything else reads as missing and fails.

  • The first act after checking out the task branch — before writing anything — is to record your worktree with node "$CLAUDE_PLUGIN_ROOT/scripts/cli.mjs" locate --run <runId> --task <taskId>, which takes no path arguments: it reads your worktree and branch from where you run it. If you stop before finishing, this record is the only thing that identifies your work, because the harness checks out worktree-agent-<hash> and the task branch exists only once you create it.

  • If your task's branch is checked out in another worktree, report status: "blocked" naming it. Do not invent a different branch, do not work on a detached HEAD, and do not use --ignore-other-worktrees: the gate resolves your branch by convention and nothing else, so work anywhere but teammates/<runId>/<taskId> is invisible to it and merges as a no-op.

  • Write the test first, watch it fail, then write the minimal code to pass it.

  • Commit on your worktree branch. Do not merge, rebase onto, or push to the run branch — the integrator is the only writer there. Every commit on the run branch must be reachable from a task branch, so a direct write is reported as an unexplained commit.

  • Before returning done, prove your work is on that branch. Run git log --oneline -1 teammates/<runId>/<taskId> and git diff --stat $(git merge-base <run branch> teammates/<runId>/<taskId>)..teammates/<runId>/<taskId>, and paste both outputs verbatim in your summary. The diff is taken from your branch's own fork point, never tip against tip: a tip-vs-tip diff shows a stale base as thousands of deleted lines that a merge would not delete. An empty diff means your commits landed on another ref — usually the harness's own worktree branch, when the initial git checkout -B was skipped — and the task would merge as a no-op while your result claims it is done. Then run the task gate in the FOREGROUND against the MAIN worktree root and fix whatever it reports before returning done; ROOT must be the main worktree, which the derivation below computes, because run from inside your own worktree the CLI resolves the run branch to your task branch and answers the wrong question:

    ROOT=$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")
    node "$CLAUDE_PLUGIN_ROOT/scripts/cli.mjs" complete --run <runId> --task <taskId> --plan <planPath> --base <base branch> --root "$ROOT"
    

    --base must name the same branch your worktree checked out from, or the gate anchors its plan lookup where the plan does not exist. That is the base branch, not the run branch: complete refuses outright when --base names the run branch itself.

Read the full file on GitHub · 101 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. 5d ago First seen · 101 lines · 31 tokens per session scan A baab54f3fa85

Subscribe to this mod's changes

tm-implementer is an agent published in the GitHub repository andreymudri/claude-teammates (2 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 1,737 once invoked, about $0.0002 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