YouMind
Sign in

T3 Code: Build AI Agent Teams with All Frontier Models (Full Course)

@0xCodez
ENGLISHNov 22, 2026
193K
675
67
49
1.5K

TL;DR

A comprehensive guide on using T3 Code to orchestrate multiple AI coding agents (Claude, Codex, Gemini, Grok) into a collaborative team, covering installation, configuration, role-based prompting, and delegation workflows.

Most people running AI agents have the same desktop. Claude Code in one terminal. Codex in another. A Gemini tab behind them. Grok on the phone. And one human in the middle, copy-pasting context between windows.

That is not a team. That is four tabs and a very tired router.

Between November 9 and 18, three frontier models shipped. @theo , who builds T3 Code, didn't pick a winner. He hired all of them:

https://x.com/theo/status/2123273253850628260

This guide is that post, turned into a full build.

Plus one addition Theo's post doesn't have: Grok Bot as the dispatcher that never sleeps, feeding work into the team while you are offline.

More AI alpha on my Substack:

https://substack.com/@0xmovez

Bookmark this. Steps 03 and 04 you will reopen every new project.

Codez - inline image

T3 Code is not a model. It is the control plane.

A small server on your machine runs each vendor's own agent (Claude Code, Codex, Antigravity, Grok Build and more) and gives all of them shared threads, Git worktrees, permissions, a phone app, an MCP server, and a way to hand work to each other.

The 6 steps:

  1. Install - T3 Code plus five agents in one sitting
  2. Configure - defaults, fallbacks, worktrees, permissions
  3. Hire - the team charter and role prompts
  4. Delegate - let the lead run a real feature
  5. Playtest & ship - cross-family review, PR from your phone
  6. Go 24/7 - Grok Bot, schedules and webhooks

The team, before any command

Decide the jobs first. Roles below come from Theo's post, from developers who publish their setups, and from what each vendor says its model is for.

Codez - inline image
  • Fable 5.2 ( Lead ) - spec, split, the hardest slice. Anthropic's model for demanding work.
  • Opus 5.5 ( Builders ) - parallel slices in worktrees. Half Fable's price.
  • Grok Bot ( Dispatcher ) - always on, in the cloud. Watches inbox, X, Slack. Files tasks into T3.
  • Gemini 4 Neon ( Copywriter ) - docs, changelog, UI copy. Cheapest of the five.
  • GPT-6.2 Astra ( Playtester ) - Breaks the build. different family, different blind spots.

01. Install - T3 Code plus five agents in one sitting

T3 Code runs where your code and your agent logins live.

Your phone and browser are just windows into that machine. Plan 20 minutes for this whole step.

  • 1.1 Install T3 Code:
python
1brew install --cask t3-code
2# Windows
3winget install T3Tools.T3Code
4# macOS / Linux, command line (installs `t3`, then run `t3`)
5curl -fsSL https://t3.codes/install.sh | sh
6# Windows PowerShell, command line
7irm https://t3.codes/install.ps1 | iex
8# Try it once without installing
9npx t3@latest
  • 1.2 Sign in to the three harnesses that carry four models:
Codez - inline image

Three details that save an hour later:

  • Two Claude accounts? Give the second its own folder with CLAUDE_CONFIG_DIR=~/.claude_personal claude auth login, then add a second Claude instance in Settings → Providers. Separate accounts stay fully isolated.
  • Codex via ChatGPT plan works, but the Fast speeds need an existing Codex CLI login instead.
  • Antigravity can sign in with a Gemini API key instead of a personal Google account. Google decides which models appear there.
  • 1.3 Check the price of every seat, from the source:
Codez - inline image
Codez - inline image
  • 1.4 Smoke-test every seat before they meet:

A developer who documented a two-agent T3 setup on dev.to had one rule: verify each checkpoint on its own, and run a reply test before any file edits.

Open one thread per model and send:

python
1Reply with exactly: "ok from <your model name>".
2Do not read, run or edit anything.

Four threads in the sidebar, four provider icons, four "ok" replies.

The model picker in the composer shows the model by name, like the "Opus 5.5 Medium" chip below.

Codez - inline image

02. Configure - defaults, fallbacks, worktrees, permissions

This is the step that turns a chat app into a team.

Harry Smaje runs a dozen-plus threads a day from one MacBook and published every setting he uses. Here is that playbook adapted to our five.

  • 2.1 Settings → Threads:
Codez - inline image
  • 2.2 Worktrees: one writer per folder

Flavio Copes' rule from his T3 deep dive: one writer on the main checkout, worktrees for truly independent parallel tasks.

Here is what that looks like in practice: each thread is pinned to its own branch in the sidebar.

Codez - inline image
  • 2.3 a permission mode per role

T3 Code has four modes. Pick one per role, not per mood:

Codez - inline image

Tailkits' guide notes new threads default to Full access. Lower it before you point agents at anything valuable.

On Antigravity, Auto appears only if your sign-in provides it; otherwise the thread runs Supervised. Grok Build offers no Auto-accept edits.

  • 2.4 Put your MCP servers on a diet

Every parallel agent loads its own copy of every MCP server.

Smaje ran 19 Claude sessions on an M4 Pro with 24 GB and hit 371 MCP processes and 11 GB of swap. This is what one session's MCP stack weighed:

Codez - inline image

03. Hire - the team charter and role prompts

A child agent starts with your prompt and nothing else. It does not see the parent's history.

GILD found this out running research agents in T3 Code and wrote the rule down: write the child's prompt as a complete brief.

So the team gets two things: a charter file every agent reads, and a brief format every handoff uses.

  • 3.1 The charter: TEAM.md in your repo root

Claude Code, Codex, Antigravity and Grok Build all read project instruction files (Grok Build lists AGENTS.md support on x.ai/cli).

Put the team rules in one file and reference it from each:

python
1# TEAM.md · read this before any task
2
3## Roles
4- Lead (Fable 5.2): writes SPEC.md, splits work, takes the hardest slice.
5- Builders (Opus 5.5): one slice each, one worktree each.
6- Playtester (GPT-6.2 Astra): read-only. Reports bugs, never fixes them.
7- Copywriter (Gemini 4 Neon): docs/, README.md, CHANGELOG.md, src/i18n/ only.
8- Dispatcher (Grok Bot): files tasks. Never merges, never deploys.
9
10## Rules
11- Every handoff uses the BRIEF format below.
12- A task is done only when its DONE WHEN check passes.
13- Max 3 review rounds. Max 4 agent-to-agent handoffs without a human.
14- Never touch .env*, migrations, or CI config without asking the human.
15
16## BRIEF format
17BRIEF FOR / ROLE / GOAL / CONTEXT / DONE WHEN / DO NOT / RETURN
  • 3.2 The brief: seven fields, every time
python
1BRIEF FOR: @<model>
2ROLE: <lead | builder | playtester | copywriter>
3GOAL: <the outcome in one sentence>
4CONTEXT: <files, decisions made, link to SPEC.md>
5DONE WHEN: <a test passes, a command returns 0, a checklist is true>
6DO NOT: <files to leave alone, commands never to run>
7RETURN: <exactly what to report back>
  • 3.3 The four role prompts
python
1You are the tech lead. Read TEAM.md first. Do not write feature code yet.
2
3Task: <feature>
4Acceptance test: <how I will know it works>
5
61. Read the codebase. Write SPEC.md: goal, files touched, risks, test plan.
72. Stop and wait for my approval of SPEC.md.
83. Split the work into slices that touch different files.
94. For each slice, use delegate_task to start a builder on @opus in its own
10 worktree, with a full BRIEF.
115. Take the hardest slice yourself.
126. When builders finish, delegate a read-only review to @astra with the diff.
137. Fix what it finds. Stop after 3 review rounds and report.
148. Delegate README, CHANGELOG and UI copy to @neon last.
15
16Report: slices, owners, test results, open risks.

Why High and not max? Theo, on getting a lot done with Fable without hitting limits:

https://x.com/theo/status/2072481845363822914

  • Builder · Opus 5.5:
python
1BRIEF FOR: @opus
2ROLE: builder
3GOAL: Add rate limiting to POST /api/upload: 60 requests/min per API key.
4CONTEXT: SPEC.md section 2. Use the Redis client in lib/redis.ts.
5DONE WHEN: `npm test -- upload` passes and a new test covers the 429 path.
6DO NOT: touch /ui, change package.json, run migrations.
7RETURN: files changed, test output, anything you were unsure about.
  • Playtester · GPT-6.2 Astra
python
1BRIEF FOR: @astra
2ROLE: playtester (read-only)
3GOAL: Break this change. Find bugs a real user would hit.
4CONTEXT: Task: <task>. Combined diff from the builders. SPEC.md.
5DONE WHEN: you tried: empty input, huge input, two tabs at once, slow network,
6 unicode (e.g. "Piña"), expired auth, missing permissions.
7DO NOT: edit or fix anything. Report only.
8RETURN: numbered list. Each: repro steps, expected, actual, severity 1-3.
  • Copywriter · Gemini 4 Neon
python
1BRIEF FOR: @neon
2ROLE: copywriter
3GOAL: Update README.md, CHANGELOG.md and UI strings for this feature.
4CONTEXT: SPEC.md, the final diff. Tone: short sentences, no jargon, no hype.
5DONE WHEN: every new user-facing string has copy, and the changelog entry
6 says what changed and why a user should care, in 3 lines or less.
7DO NOT: touch anything outside docs/, README.md, CHANGELOG.md, src/i18n/.
8RETURN: edited files and the changelog entry.

04. Delegate - let the lead run a real feature

In T3 Code, one agent can start other agents on any provider or model. That tool is delegate_task, shipped with T3 Code's own MCP server:

https://x.com/theo/status/2106123856759120317

https://x.com/theo/status/2106104507260436925

Codez - inline image
  • 4.1 Start the lead:

Cmd/Ctrl+K → new thread → Claude → Fable 5.2, effort High, mode Supervised.

Paste Prompt 01 with your task. Theo's own quick-start for a new project is exactly this flow:

https://x.com/theo/status/2114500712168292431

  • 4.2 Name the right model with @:

Type @ plus part of a model name in the composer, like @opus, @astra, @neon. It tells the agent which model to use when delegating, without changing the thread's own model. Join words for a specific provider: @opus:opencode.

  • 4.3 Pin the finish line with /goal:

On Claude, Codex and OpenCode 2.2.5+, /goal keeps the agent working across turns until it judges the goal met. The thread shows Goal and its progress.

  • 4.4 Watch the team work

Open Agents. Every child shows up as its own thread you can open beside the lead. Stop the lead and its children stop too.

A child's approvals come to you through the lead. When a turn finishes, it lands like this:

Codez - inline image
  • 4.5 Ask without interrupting: side chats

Start a message with /btw or /side. It opens a side chat that starts with everything the thread knows, while the thread keeps working.

python
1/btw why did you split the upload work into two slices instead of one?
2/btw which file is the riskiest change so far, and why?

05. Playtest & ship - cross-family review, PR from your phone

A reviewer from the same model family shares the builder's blind spots.

That is the whole reason Astra is on this team. The best public numbers come from GILD, who run Opus and Astra on each other's work inside T3 Code:

Codez - inline image

Two rules from the people running this:

  • Cap review loops at 3 rounds. After that, it is a human call (GILD).
  • Read-only is a promise, not a lock. Smaje tells reviewers to read, not edit, "because nothing enforces it." Say it in the prompt and keep the reviewer on Supervised.
  • 5.1 Ship from the right panel

Every thread has its branch, a diff against main, and one button for commit, push and PR:

python
1npx t3 connect # pair the phone app with your machine

https://x.com/theo/status/2082613200441524514

Theo's bar for when to let agents merge, after the Fable 5.1 and Astra generation:

https://x.com/theo/status/2095691652442837310

06. Go 24/7 - Grok Bot, schedules and webhooks

Everything so far starts when you sit down. Step 06 makes the team start without you.

Grok Bot is xAI's standing agent. It runs on its own cloud computer, signs into your existing tools and websites, works continuously, and messages back when it needs approval.

It shipped as a beta on August 11 and as Grok Bot 1.0 on November 11, with shared Team Bots in Slack and Teams.

https://x.com/bot/status/2120582957782200586

Inside this team it is not a coder. It is the dispatcher: it watches the places work comes from, and files clean tasks into T3 Code.

  • 6.1 Connect Grok Bot to T3 Code over MCP

T3 Code runs an MCP server for "outside agents". Per the docs, any agent that supports remote MCP servers over HTTP with OAuth can connect, and hosted agents must use the T3 Connect address.

  1. In T3 Code: Settings → Environments → environment menu → Copy MCP URL (with T3 Connect turned on, so a cloud bot can reach it)
  2. In Grok Bot: add a remote MCP server with that URL and choose OAuth
  3. Approve the sign-in on T3's page and choose Supervised, not Full access
One-click save

Use YouMind for AI deep reading of viral articles

Save the source, ask focused questions, summarize the argument, and turn a viral article into reusable notes in one AI workspace.

Explore YouMind
For creators

Turn your Markdown into a clean 𝕏 article

When you publish your own long-form writing, images, tables, and code blocks make 𝕏 formatting painful. YouMind turns a full Markdown draft into a clean, ready-to-post 𝕏 article.

Try Markdown to 𝕏

More patterns to decode

Recent viral articles

Explore more viral articles