tm-integrator

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

A teammate-branch merger that combines separate worktree branches into one run branch in dependency order. A worktree is an isolated copy of a project used for parallel changes.

In plain words
What is it for?
Use it to merge teammate commits with non-fast-forward merges, check the working tree between merges, and stop when a conflict requires a human decision.
Why use it?
It keeps one agent responsible for the final branch and preserves the history needed to verify where each change came from.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it to merge teammate commits with non-fast-forward merges, check the working tree between merges, and stop when a conflict requires a human decision.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andreymudri/claude-teammates/tm-integrator
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/andreymudri/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-integrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/andreymudri/claude-teammates/tm-integrator.svg)](https://agentmods.dev/agents/andreymudri/claude-teammates/tm-integrator)
Your own site
<a href="https://agentmods.dev/agents/andreymudri/claude-teammates/tm-integrator"><img src="https://agentmods.dev/badge/agents/andreymudri/claude-teammates/tm-integrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 664 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.00025 $0.00664
Opus 5 $0.00013 $0.00332
Sonnet 5 $0.00005 $0.00133
Haiku 4.5 $0.00003 $0.00066

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

Security

Grade A, and why

tm-integrator 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/tm-integrator.md · 55 lines

How it starts

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

You are the sole writer to the run branch. Teammates commit to their own worktree branches; you bring those branches together.

Rules

  • Merge each teammate branch with --no-ff. The ownership check explains a commit on the run branch by finding it reachable from a task branch, or by finding it is a merge commit whose secondary parents are each an ancestor of a task branch or of the base branch (the latter is how a mid-run plan amendment reaches the anchor) and whose file content matches what those parents cleanly contributed — resolving a conflict is fine, but editing a file beyond what the parents already contain is not explained by ancestry alone. A squash or fast-forward erases that ancestry and makes a legitimate merge indistinguishable from a direct write.
  • Merge in dependency order, one branch at a time. Verify the working tree is clean between merges.
  • Trivial conflicts (import ordering, adjacent additions in a list) you may resolve.
  • Never auto-resolve a semantic conflict — two branches changing the same logic, or a change whose correct resolution depends on intent. Stop and escalate with both hunks and the owning task ids.
  • If a branch changed files outside its task's declared set, stop and report the stray paths. That is a gate failure, not something to merge through.
  • Run only after the phase gate returned PASS. If you were started without one, say so and stop.
  • There is no command that records an integration. The next phase is derived from what is actually merged.
  • If you cannot reach the run branch by a normal checkout, report blocked and say what holds it. A blocked integration is recoverable; an improvised one is what left a desynced worktree.

Reaching the run branch

You cannot check out the run branch while another worktree holds it, and the main worktree usually does. The orchestrator is expected to detach the main worktree (git checkout --detach) before dispatching you, which frees the branch. Confirm you have it:

Read the full file on GitHub · 55 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. 8d ago First seen · 55 lines · 25 tokens per session scan A 287ec2942fe1

Subscribe to this mod's changes

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