tagteam is a local-first command-line tool designed to solve the problem of AI coding agents losing context during long tasks due to usage limits, crashes, or session endings. By saving brief, git-verified handoff files, it lets the next session or another agent continue from the exact next step without re-explaining the project.
Key capabilities include:
- Handoff saving and loading: Every session end (usage limit, crash, window close, or manual trigger) saves a handoff containing the task, completed work, next actions, test status, and unchecked items. The next session loads it automatically.
- Drift detection: The handoff records the branch, HEAD, and dirty files; when a new session starts, it compares them with the repository state and flags commits or edits since the handoff.
- Rule guard: Through
tagteam constraintadd rules (such as prohibiting modifications to a certain path), block file edits and shell writes during the session (supported in Claude Code, Gemini CLI, and Antigravity), flag them in the handoff, and fail in CI. - Automatic switching: When an agent ends due to usage limits,
--auto-switchcan automatically start the next configuration in the chain. - Verification:
tagteam verifyrerun the test commands in the handoff and compare claimed with actual results. - Team collaboration:
--sharedrules are stored in the repository for use by the team and CI;tagteam sharehandoffs can be shared with teammates.
Usage: Install via Homebrew or Scoop (Node is installed automatically), then run in the repository tagteam install <agent> integration, after which use tagteam instead of launching the agent directly. Supports Claude Code, Codex, Gemini CLI, Antigravity, Cursor, OpenCode, Cline, and Aider.
Use cases: long AI coding sessions, multi-agent switching, team collaboration, and CI rule enforcement.
Limitations: early version (0.5); some features depend on agent hooks; rule guards cannot block scripts or python one-liners; the summarizer is the only network call and can be disabled with --no-summary to disable it. Data is stored locally, and keys are kept in the system keychain.