A collaboration framework for structured AI-to-AI handoffs with human oversight
Project description
Tagteam
A collaboration framework for structured AI-to-AI handoffs with human oversight. One AI leads, another reviews, and you arbitrate — the whole cycle runs phase by phase from a roadmap.
How it works
- Lead (one AI agent) plans each phase and implements the approved plan.
- Reviewer (a second AI agent) reviews both the plan and the implementation.
- Arbiter (you, the human) breaks ties and approves phases.
Work progresses phase by phase. Each phase is listed in docs/roadmap.md and goes through two review cycles: plan, then implementation. If the two agents can't make progress in 10 rounds, control escalates to the human arbiter.
State is tracked in handoff-state.json (current turn) and docs/handoffs/<phase>_<type>_rounds.jsonl + _status.json (per-cycle rounds). Either agent can pick up where the other left off at any time.
Quick Start
pip install tagteam
cd ~/projects/myproject
tagteam quickstart
You'll be prompted for your two agent names, then quickstart sets up the workspace and starts a handoff session. It auto-detects the best terminal backend available on your machine:
- iTerm2 (macOS, default when iTerm2 is installed) — opens three labeled tabs in a single window, auto-launching iTerm2 if it isn't already running.
- tmux (Linux, WSL, or macOS without iTerm2) — creates one
tmuxsession with three labeled panes. - manual (anywhere else, including Windows without WSL) — prints the three commands for you to run in terminals you open yourself.
When quickstart finishes it prints what to paste into the Lead and Reviewer agents to kick off the first handoff. Override the auto-detection with --backend iterm2|tmux|manual if you need a specific one.
Running a handoff
Single phase — start a plan review, let the watcher handle the back-and-forth, and stop when the phase completes.
/handoff start my-phase
Full roadmap — run all incomplete phases end-to-end.
/handoff start --roadmap
/handoff start --roadmap api-gateway
| Command | Purpose | Who |
|---|---|---|
/handoff |
Auto-detects role + state, does the right thing | Both |
/handoff start [phase] |
Begin a new phase (plan + review cycle) | Lead |
/handoff start [phase] impl |
Begin implementation review for a phase | Lead |
/handoff status |
Orientation, status check, drift reset | Both |
Human-in-the-loop — add --confirm to pause for approval before each automatic send.
tagteam watch --mode notify --confirm
Other platforms
tmux (explicit invocation)
tagteam quickstart --backend tmux
Creates one tmux session named tagteam with three labeled panes (Lead, Watcher, Reviewer). Attach later with tmux attach -t tagteam.
Windows / manual fallback
On Windows without WSL, terminal automation isn't available. Quickstart prints the commands for you to run yourself in three terminals:
tagteam quickstart --backend manual
You can also run each step individually:
tagteam setup
tagteam init
tagteam session start --backend manual
tagteam watch --mode notify
For full automation on Windows today, use WSL with tmux.
Advanced setup (run each step yourself)
tagteam setup # copy skills, templates, docs
tagteam init # interactive agent config → tagteam.yaml
tagteam session start # create terminals and auto-launch agents
Options:
tagteam session start --no-launch— create terminals but don't start agentstagteam session start --backend <name>— force a specific backendtagteam session kill— close the current session
Manual mode: you can always run handoffs without any automation by pasting
/handoffoutput between agents yourself.
The Saloon
A graphical dashboard for monitoring and controlling handoff cycles:
tagteam serve --dir ~/projects/myproject
Configuration
Agents are defined in tagteam.yaml:
agents:
lead:
name: claude
command: claude
reviewer:
name: codex
command: codex
CLI Reference
tagteam quickstart # Setup + init + session start
tagteam session start # Auto-detect backend, launch agents
tagteam session start --backend manual # Force manual backend
tagteam session start --no-launch # Create terminals, skip agent launch
tagteam session kill
tagteam init
tagteam setup
tagteam state
tagteam state diagnose
tagteam watch --mode notify
tagteam roadmap phases
tagteam serve --dir .
tagteam upgrade
tagteam --help
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tagteam-0.3.1.tar.gz.
File metadata
- Download URL: tagteam-0.3.1.tar.gz
- Upload date:
- Size: 184.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c00ff23e9782773ca96ac44874b503c37cde2960c256992a63972e57376876e
|
|
| MD5 |
faef2a27e437105f2824477230e0de3b
|
|
| BLAKE2b-256 |
e2b5f007a8b6966b8b16750210fd577855fa496d2b38e9d258dad5c967cfb89c
|
Provenance
The following attestation bundles were made for tagteam-0.3.1.tar.gz:
Publisher:
publish.yml on jblacketter/tagteam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tagteam-0.3.1.tar.gz -
Subject digest:
6c00ff23e9782773ca96ac44874b503c37cde2960c256992a63972e57376876e - Sigstore transparency entry: 1340238486
- Sigstore integration time:
-
Permalink:
jblacketter/tagteam@d1277f68b9104f880492fa67f0863f7d91303952 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/jblacketter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d1277f68b9104f880492fa67f0863f7d91303952 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tagteam-0.3.1-py3-none-any.whl.
File metadata
- Download URL: tagteam-0.3.1-py3-none-any.whl
- Upload date:
- Size: 180.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17ffea86242a139692afad71f9e2784b455e56d6f9d250ddc99ce8a511c46366
|
|
| MD5 |
54e090d1263d0b4160c7f6da74783e2e
|
|
| BLAKE2b-256 |
0aada281b1bddf3bfba0f41b66dbf346808781027abb0e8e28bb37055d06331d
|
Provenance
The following attestation bundles were made for tagteam-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on jblacketter/tagteam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tagteam-0.3.1-py3-none-any.whl -
Subject digest:
17ffea86242a139692afad71f9e2784b455e56d6f9d250ddc99ce8a511c46366 - Sigstore transparency entry: 1340238492
- Sigstore integration time:
-
Permalink:
jblacketter/tagteam@d1277f68b9104f880492fa67f0863f7d91303952 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/jblacketter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d1277f68b9104f880492fa67f0863f7d91303952 -
Trigger Event:
push
-
Statement type: