TagTeam

One conversation across Claude Code, Gemini, Grok CLI, OpenAI Codex and Grok Build.

When a 5-hour usage limit hits mid-refactor, switch tools without starting over. TagTeam mirrors your real native sessions both ways and writes a five-line handoff note before stopping.

TagTeam relay flow: Claude Code hits 95% usage limit, writes a handoff, Gemini Antigravity continues the same session, then Grok CLI continues and syncs back to claude --resume
Native session sync in all directions — no chat wrapper, no API proxy, zero external Python dependencies.

Install with one command

Requires Windows 10/11 and Claude Code. Paste this in PowerShell: it checks Python 3.11+ (and offers to install it), downloads the latest release verified by SHA-256 and opens the TagTeam setup.

irm https://mop4r.github.io/tagteam/install.ps1 | iex

The setup shows which AIs are installed on your PC, you check the ones to sync and pick the options (default folder, the same Claude environment in each AI, shortcuts, status line, handoff, folders that never leave Claude) and watch it install step by step. It installs the official agy, grok and codex CLIs only for the AIs you check. Sign in once to each CLI, then keep working: every session shows up natively in claude --resume, the Antigravity sidebar, the Agy CLI --resume picker, Grok --resume, the Codex app, Codex --resume, the Grok Build app and Cursor CLI --resume.

TagTeam monitor in the terminal: per-AI health, chats synced in each direction, recent runs and errors
Open TagTeam again and it is a live monitor: health, chats per AI, recent runs and errors. Add or remove an AI, change options, repair, update or uninstall from there.

What stays in sync

From Claude Code Gemini (Antigravity / agy) Grok CLI OpenAI Codex Grok Build (Cursor)
Conversations Both ways (desktop app + CLI) Both ways Both ways (app + CLI) Both ways (cursor-agent CLI and the app)
~/.claude/CLAUDE.md Referenced from generated ~/.gemini/GEMINI.md Loaded natively + ~/.grok/AGENTS.md Block in ~/.codex/AGENTS.md Loaded natively
Skills (~/.claude/skills) config/skills.json Native One junction per skill in ~/.codex/skills Native (+ claude.ai skills as junctions)
Plugins & MCP servers config/plugins.json & mcp_config.json Enabled in config.toml Installed natively; MCP through Codex's config API Plugins native; MCP in ~/.cursor/mcp.json
Automatic handoff at 95% Yes (via local quota API) Manual (Grok CLI has no non-TUI usage API yet) Manual Manual
Interactive resume picker Agy CLI --resume shortcut Grok --resume shortcut Codex --resume shortcut Cursor CLI --resume shortcut

The five-line handoff

At 95% of the Claude 5-hour or 7-day limit (or Gemini quota), the Stop hook pauses once so the agent leaves a short handoff note at the end of the chat:

## Handoff to Gemini or Grok
- Request: migrate the auth module to async.
- Done: login, token and middleware migrated; 34 tests green (commit 3f2a91c).
- In progress: session.py half done, branch feat/async-auth.
- Next step: finish SessionStore.refresh() and run tests/auth.
- Watch out: don't touch the legacy /v1 routes; credentials are in .env.local.

Frequently asked questions

How does TagTeam continue a Claude Code conversation in Gemini Antigravity, Grok CLI, OpenAI Codex or Grok Build (Cursor)?

Hooks in Claude Code, Antigravity, Grok CLI, OpenAI Codex and Grok Build call TagTeam after replies (throttled to once every 2 minutes per conversation). TagTeam converts and writes directly to each agent's native session storage so resume works inside each tool.

Does it send my code or chats to a remote server?

No. Everything is local file I/O plus the local servers of Antigravity and Codex. No telemetry, no proxy, and no third-party API keys.

Can I sync across multiple Windows PCs?

Yes. Sync ~/.claude/projects with git, Syncthing, or OneDrive. TagTeam keeps sync state per PC and remaps workspace paths across different usernames and drives.

My synced chats disappeared from Grok Build (Cursor) after updating. How do I get them back?

Grok Build 3.32 moved chats into a local agent host and only migrated chats that carry the agent's conversation state, which copies from TagTeam 0.5 and older did not have. Update TagTeam to 0.6 or newer, close the app and let one sync run: the copies are rewritten with the state and the app imports them the next time it opens.

Are the Grok CLI and Grok Build the same tool?

No. The Grok CLI (grok, xAI's terminal agent) and Grok Build (formerly Cursor: the desktop app and the cursor-agent CLI) keep separate chats. TagTeam syncs both, each in its own format.

What about macOS and Linux?

The core sync engine is pure Python standard library; Windows shortcuts and the Grok picker are Windows-specific today. Pull requests for macOS and Linux are welcome on GitHub.