Server data from the Official MCP Registry
Git-verified handoffs between AI coding agents: task, next step, constraints and drift warnings.
About
Git-verified handoffs between AI coding agents: task, next step, constraints and drift warnings.
Security Report
Valid MCP server (2 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
7 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: TAGTEAM_ROOT
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"tagteam-ai": {
"command": "npx",
"args": [
"-y",
"tagteam-ai@0.5.3"
],
"env": {
"TAGTEAM_ROOT": "your-tagteam-root-here"
}
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
tagteam
العربية · English
Your AI coding agent stopped mid-task. The next one continues from the exact next step.
Usage limit, crash, /compact or a closed window: tagteam saves a short, git-checked handoff and starts the next session (or the next agent) with it. Rules you set can't be broken along the way.
- No re-explaining. The next session gets the task, what's done, the ONE next step, test status and what was not checked yet.
- No stale plans. The handoff is compared with git first: "2 new commits since the handoff, touching 3 files".
- Rules that hold. "Don't touch
src/payments/**" is blocked during the session (file edits and shell writes, in Claude Code, Gemini CLI and Antigravity), flagged at handover, and fails the pull request in CI.
Works with Claude Code, Codex, Gemini CLI, Antigravity, Cursor, OpenCode, Cline and Aider, on your own logins and keys. Local, free, Apache-2.0.
npm i -g tagteam-ai # or brew / scoop, see "Install"
tagteam install claude # in your repo; or gemini, antigravity, codex, cursor, opencode, cline, aider
Restart your agent in the repo. That's it: handoffs are saved and loaded from now on. Add a rule with tagteam constraint "Don't change the payment gateway" --paths "src/payments/**".

A live run on one task: real Claude Code (2.1.330) → real Codex (0.172) → real Claude Code, through tagteam. The handoff, the agents' replies (excerpts, cut where marked …) and the command output are as they happened. An earlier demo with the summarizer writing the handoff after a usage limit: docs/demo.gif.
Switch agents automatically when one hits its limit:
tagteam profile add claude
tagteam profile add deepseek --key # or codex on your ChatGPT login, or any provider you already pay for
tagteam --auto-switch # run this instead of `claude`; on a usage limit, the next profile continues
If tagteam saves you from re-explaining a project, a ⭐ on GitHub helps other developers find it.
The loop, without you doing anything
- You run
tagteaminstead ofclaude. The agent starts with the saved context: task, next action, rules, drift warnings. - The session ends: usage limit, crash, closed window, or you just want a second opinion.
- A handoff is always saved. The agent writes it (
/handoff, MCP, or the auto-save on/compactand exit). If it couldn't, a cheap model from your other profiles writes it from the redacted transcript and diff. If every provider is down, tagteam still saves the git state and your last messages. - The handoff is checked. Missing pieces ("no test status", "next action is vague") are reported to the agent while it can still fix them, and to the next one.
- The next agent starts. tagteam proposes the next profile in your chain, or with
--auto-switchstarts it by itself when the session ended on a usage limit. - It continues from the next step, with a warning if commits or edits happened since the handoff.
Your own keys and logins only: tagteam never shares, stores or switches subscription logins.
Install
| npm (any OS, Node 20+) | npm i -g tagteam-ai |
| Homebrew (macOS, Linux) | brew tap MHRabea/tagteam https://github.com/MHRabea/tagteam then brew install tagteam |
| Scoop (Windows) | scoop bucket add tagteam https://github.com/MHRabea/tagteam then scoop install tagteam |
Brew and Scoop install Node for you if it is missing.
Works with your agent
tagteam install <agent> wires tagteam into a repo once:
| Agent | Context at start | Saves handoffs | Edit guard | What it writes |
|---|---|---|---|---|
| Claude Code | ✅ hook | ✅ hook + MCP | ✅ files + shell | .claude/settings.local.json, .mcp.json |
| Gemini CLI | ✅ hook | ✅ hook + MCP | ✅ files + shell | .gemini/settings.json, GEMINI.md |
| Antigravity (CLI, App, IDE) | ✅ hook | ✅ hook + MCP | ✅ files + shell | .agents/hooks.json, .agents/mcp_config.json, AGENTS.md |
| Codex | rules file | MCP / CLI | CI + status | AGENTS.md |
| OpenCode | rules file | ✅ MCP | CI + status | AGENTS.md, opencode.json |
| Cursor | rules file | MCP / CLI | CI + status | .cursor/rules/tagteam.mdc |
| Cline | rules file | MCP / CLI | CI + status | .clinerules/tagteam.md |
| Aider | /run tagteam resume | /run tagteam capture | CI + status | CONVENTIONS.md, .aider.conf.yml |
Agents without hooks still get the rules at session start and are checked by tagteam status and the GitHub Action. Re-running an install only replaces tagteam's own entries.
The VS Code extension shows in the status bar whether the handoff is fresh, stale or breaking a rule, whatever agent wrote it.
Why
Long AI coding sessions get lost in four common ways:
- Compaction: the agent summarizes 200 messages and forgets the one rule that mattered.
- A new session: you explain the project again.
- Switching agents: none of the context comes with you.
- Stale summaries: "continue where you left off" points at code that changed an hour ago.
tagteam fixes all four with a small local CLI.
What makes it different
| Native resume | Memory / rules files | Provider switchers | tagteam | |
|---|---|---|---|---|
| Works across different agents (Claude Code, Codex, any MCP client) | – | partial | – | ✅ |
| Drift detection: warns when the repo changed since the handoff | – | – | – | ✅ |
| Handoff check: tells the agent what its handoff is missing, while it can still fix it | – | – | – | ✅ |
| Handoff written even when the agent hit its limit or crashed | – | – | – | ✅ |
| Auto-switch to the next agent on a detected usage limit (opt-in) | – | – | partial | ✅ |
| Guardrails: rules bound to file paths, checked against your diff | – | – | – | ✅ |
| Edits to protected paths blocked during the session (Claude Code) | – | – | – | ✅ |
| Claimed vs actual: re-runs the handoff's tests and tells the next agent if "pass" was false | – | – | – | ✅ |
| Team rules in CI: the same rules fail a pull request (GitHub Action) | – | – | – | ✅ |
| Nothing added to your repo (unless you opt in to shared rules) | ✅ | – | ✅ | ✅ |
| Secrets redacted before anything is saved | n/a | – | n/a | ✅ |
Drift detection
Every handoff records the branch, HEAD and dirty files. When the next session starts, tagteam compares that state with the repo:
## ⚠ Drift since handoff — verify before trusting it
- 2 new commit(s) since the handoff, touching 3 file(s): src/billing.js, test/billing.test.js, package.json.
- Uncommitted changes differ from the handoff. Newly modified: src/gateway.js.
Guardrails: blocked in the session, flagged at handover, failed in CI
tagteam constraint "Do not change the payment gateway interface" --paths "src/payments/gateway.*"
One rule, three layers:

Recorded from a real headless Claude Code session (2.1.330) with tagteam's hook; the agent's reply is quoted as written, with the proposed code cut.
-
During the session (prevention). In Claude Code, tagteam's
PreToolUsehook refuses the edit before it happens and tells the agent why. Tested with real Claude Code: the file stays untouched, and the agent stops and asks you instead of working around it:I didn't change the file, because a tagteam guard hook blocked the edit:
src/payments/**is protected by the rule "Do not change the payment gateway"…The same hook reads shell commands (the Bash and PowerShell tools) and blocks the common ways they write, move or delete files:
>/>>,tee,sed -i,perl -i,rm,mv,cp,dd of=,git checkout --/restore/rm, and PowerShell'sSet-Content,Out-File,Remove-Item,Move-Item… Deleting a folder that holds protected files (rm -rf src) or a glob that reaches them (rm src/*) counts too. Tested with real Claude Code: asked to runsed -ion the gateway, it was blocked and the file stayed untouched, while ordinary commands ran as usual. It reads commands, it does not run them, so a script or apython -cone-liner can still get past it; the next two layers catch that. -
At handover (detection). Every agent sees the rule at session start, and
tagteam statusflags any diff that touches those paths (exit code 2). This also catches writes the hook can't see, such as scripts, and agents without hooks (Codex). -
In CI (gate).
tagteam checkand the GitHub Action fail a pull request that touches the path (below).
Need to change a protected file yourself? Run tagteam guard off in your own terminal (per repo), make the change, then tagteam guard on. It refuses to run without a terminal, so an agent cannot switch off its own guard; in CI use TAGTEAM_GUARD=off. While a rule is active, agents also cannot edit tagteam's own rules and settings or the .claude/settings*.json that runs the hook. Matching ignores letter case on Windows and macOS and follows symlinks. A rule saved with --warn-only warns but never blocks.
Team rules that also guard your pull requests
Add --shared and the rule goes into .tagteam/constraints.json in the repo (the only file tagteam ever writes there, and only when you ask). Commit it: every teammate's agent gets the rule, and CI enforces it.
tagteam constraint "Payments code changes need a review from the payments team" --paths "src/payments/**" --shared
tagteam check --base main # files changed on this branch vs the rules; exit 2 on a hit
On GitHub, add the action to any workflow. A pull request that touches a protected path fails, with an annotation on each file:
on: pull_request
jobs:
guardrails:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: MHRabea/tagteam@v0.5.3
The same rule your AI agent was told about at session start is the one your CI checks, so an agent (or a person) can't quietly change a file you protected.
Team handoffs: continue a teammate's session
tagteam share on # from now on, every agent handoff is also written to .tagteam/handoff.json
git add .tagteam && git commit -m "handoff"
A teammate pulls, opens any agent, and it starts from your handoff, with drift measured against the commit it was written on. Your own messages, the transcript path and the session id stay on your machine. tagteam share (without on) shares just the latest handoff once.
On a pull request, the action can comment with the handoff, what changed since it and any protected path touched, and keep that one comment up to date:
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
tagteam:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: MHRabea/tagteam@v0.5.3
with:
comment: true
tagteam report --base main prints the same comment locally.
A handoff that survives rate limits
When an agent exits without saving a handoff (limit hit, crash, window closed), a cheap model from one of your other profiles writes it. That model gets the redacted transcript and the diff. If no other profile has a key, tagteam saves the git state and your last messages.
Auto-switch on a usage limit
tagteam --auto-switch (or "autoSwitch": true in ~/.tagteam/profiles.json) starts the next profile by itself when the session ended on a usage or rate limit. tagteam reads it from the end of the agent's own transcript (Claude Code's limit and API-error messages, Codex error events), not from guesses: a session that merely talks about rate limits never triggers it. Each profile is skipped at most once per run, so if every provider is limited, tagteam stops and asks.
Claimed vs actual: tagteam verify
A handoff that says "tests: pass" is a claim. tagteam verify re-runs the handoff's own test command and compares:
Handoff 2026-11-28T09-12-03-120Z claims tests: pass
Command from the handoff: npm test
Run this command in the repo? [y/N] y
...
✗ tagteam verify: claimed pass, but the tests FAIL now. The next agent will see this result.
A pass also only covers what ran. The agent lists checks that still have to run in pending_checks, each with the reason it hasn't run, and the next agent sees them first:
## ⚠ Not checked yet — do not treat this work as verified
- refund path against the payment sandbox (not run: no sandbox key here)
The test result below says pass, but it does not cover these.
The next agent's context then says what was actually re-run and what it returned, instead of the previous agent's word for it. A test result that was never re-run is labelled as a claim. The command comes from a handoff an agent wrote, so tagteam shows it and asks before running it (--yes to skip the prompt for commands you trust), and never runs it on its own.
Handoff check
A handoff with "next: continue" is not a handoff. tagteam checks each one for a task, ONE concrete next action, test status and listed progress. When the agent saves through MCP, it gets the gaps back immediately ("No test status: the next agent cannot tell whether the code currently passes") and can save again. The next agent sees any remaining gaps, and so does tagteam status. The check is advisory: it never fails a build.
Benchmark: does the next agent continue from the right step?
bench/ holds repos stopped in the middle of a task, each with the handoff the last session left. A fresh agent is asked which file it would change first: once with only the task title ("continue the refunds task"), once with the tagteam context. It runs read-only, in throwaway repos, on your own agent login:
node bench/run.mjs --agent claude # or codex, gemini; mock checks the harness without an agent
The scenarios cover a half-built feature, a test that fails for a cause in another file, a step a teammate already committed (drift), a decision that is not in the code yet, and a quick fix that sits in a protected file. Add your own as JSON in bench/scenarios/.
First run, Claude Code 2.1.330, one run per scenario (2026-11-29, raw answers):
| Right first file | Touched a protected file | |
|---|---|---|
| Task title only | 3/5 | 0 |
| With tagteam context | 5/5 | 0 |
Without context it fixed the symptom in src/format.js instead of the cause in src/tz.js, and redid the step a teammate had already committed. With tagteam it named that commit and moved on to logout.js. Five scenarios and one run are a small sample. The protected files carry "do not edit" comments that the agent respected even without context, so that column says little yet. Run it with your own agent, and send scenarios that are harder.
How it works
tagteam ──▶ agent (Claude Code / Codex / custom)
│ │ SessionStart hook / first prompt ◀── context pack (task, next action, constraints, drift)
│ │ MCP tool save_handoff ──────────────▶ handoff.json (git-stamped, redacted)
│ ▼
└── on exit: handoff saved? no → summarizer (another provider) → fallback: git state
usage limit + --auto-switch? → start the next profile
otherwise: Continue with "deepseek"? [Enter]
- Claude Code: hooks and MCP are passed with
--settingsand--mcp-config. Nothing is written into your repo. - Codex: the provider and MCP server are passed with
-coverrides. Your~/.codex/config.tomlis untouched. - Any agent: a
customprofile gets the context as a file. Any MCP client can usetagteam mcp.
Profiles
tagteam profile add claude # Claude Code, your normal login (no key stored)
tagteam profile add deepseek # Claude Code on DeepSeek's Anthropic-compatible API
tagteam profile add openai # Codex on the OpenAI API
tagteam chain claude,deepseek,openai
| Preset | Runs as | Provider | Tested live (2026-11) |
|---|---|---|---|
claude | Claude Code | your normal login | ✅ hooks + MCP |
claude-api | Claude Code | Anthropic API key (separate from a Claude plan) | key ok (no API credit to run) |
codex | Codex | your ChatGPT login (codex login) | not run yet |
deepseek | Claude Code | api.deepseek.com/anthropic | ✅ two-session task with handoffs |
openai | Codex | OpenAI Responses API | config ok (no credit to run) |
grok | summarizer only | xAI | ✅ summarizer (as an agent: rejected by Claude Code and Codex today) |
gemini | summarizer only | Gemini OpenAI-compatible API | key ok, API returned 503 under load |
Summarizer-only profiles never run as agents. They write handoffs when an agent stops without one, and tagteam moves on to the next summarizer if one fails.
Other providers:
tagteam profile add router --agent claude --base-url https://openrouter.ai/api --model <model>
tagteam profile add mine --agent codex --base-url https://my-provider/v1 --model <model>
tagteam profile add other --agent custom --command "my-agent --prompt-file {context_file}"
Commands
| Command | |
|---|---|
tagteam / tagteam run [profile] | Start an agent with the saved context. On exit, save a handoff and offer the next profile. --auto-switch: move on by itself after a usage limit |
tagteam status [--json] | Drift, guardrail and completeness report (exit 2 on drift or a guardrail hit) |
tagteam guard [on|off] | Show the blocking rules, or turn the edit guard off and on for this repo |
tagteam verify [--yes] | Re-run the handoff's test command and compare with what it claims (exit 2 on a false pass) |
tagteam check [--base ref] | For CI and pre-push: files changed on the branch vs the rules (exit 2 on a hit). Needs no saved handoff |
tagteam doctor | Check node, git, agents, keys and the repo (exit 1 on problems) |
tagteam resume | Print the context pack |
tagteam log / tagteam show [id] | Handoff history |
tagteam constraint / tagteam decision | Add a rule (--shared: for the whole team, in the repo) or record a decision |
tagteam install <agent> | Per-repo wiring: claude, gemini, antigravity, codex, opencode, cursor, cline, aider |
tagteam share [on|off] | Team mode: write handoffs to .tagteam/handoff.json for teammates |
tagteam report [--base ref] | Pull request summary: the shared handoff, what changed since it, protected paths touched |
tagteam mcp | MCP server: get_context, save_handoff, add_decision, add_constraint, update_memory, list_handoffs |
In Claude Code, /handoff saves a handoff written by the agent itself, and the tagteam skill tells the agent when to use tagteam on its own: check drift at session start, record rules and decisions as they come up, save a handoff before it stops, and run tagteam status before committing. tagteam run installs both at user level (~/.claude/commands/handoff.md, ~/.claude/skills/tagteam/SKILL.md) and never overwrites files of your own with the same name. The skill is plain templates/skill/SKILL.md, so any agent that reads Agent Skills can use it.
Security and privacy
- Local-first: data lives in
~/.tagteam/and never enters your repo, except what you opt in to:--sharedrules (.tagteam/constraints.json) and team handoffs (.tagteam/handoff.json, without your messages or transcript path). - Keys: kept in the OS key store: Windows DPAPI, macOS Keychain or Linux Secret Service (
secret-tool).profiles.jsonholds only ciphertext or a reference. A key reaches the agent only through an environment variable, never as an argument. - Logins: tagteam never reads, stores or switches subscription logins. The
claudeprofile uses Claude Code's own login. - Redaction: API keys, tokens, passwords, private keys and credentials in URLs are redacted before anything is saved or sent.
- Summarizer: it is the only network call tagteam makes. Turn it off with
--no-summary.
Status
0.5, early. Tested live on Windows (including the edit guard with real Claude Code); CI runs the test suite (140+ tests, with fake agents and a mock provider) on Windows, macOS and Linux. Saves are locked per repo, so two agents or hooks saving at once never overwrite each other. See SECURITY.md and CHANGELOG.md.
Roadmap:
- winget (needs a standalone binary)
- cost per task
- more benchmark scenarios, and results for Codex and Gemini CLI
License
Apache-2.0 © 2026 Mahmoud Rabea · GitHub · LinkedIn. "tagteam" and its logo are not covered by the license. See NOTICE.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
