What Is T3 Code? Architecture & Core Capabilities

A clear look at how T3 Code connects Claude Code, Codex, Cursor, Git worktrees, and mobile companion apps through one local Effect + WebSocket server.

T3 Code (pingdotgg/t3code) is an open-source agent harness control surface built by Ping Labs / T3 Tools and licensed under the MIT License.

It does not train models or resell API tokens. Instead, it connects to the coding agents you already have installed and authenticated on your machine—Claude Code, Codex, Cursor, Grok Build, OpenCode, and Google Antigravity—and lets you run them from a unified interface across desktop, web, and mobile.

1. What Problems Does It Solve?

Once you use coding agents seriously, the terminal workflow starts breaking down in predictable ways:

  • Tab Fatigue: Running Claude Code in one pane and Codex in another makes it easy to lose track of which run finished and which one is stalled on a permission prompt.
  • Directory Collisions: Letting two agents edit the same repo directory at the same time leads to clobbered uncommitted changes unless you manually manage git worktree checkouts.
  • No Clean Handoffs: Sometimes you want Claude to think through an architecture plan and Codex to grind through the implementation. In plain terminal sessions, switching mid-stream means copying context into a fresh session.
  • Desk Lock-In: A long refactor might pause halfway through for tool approval the moment you step away from your keyboard.

Instead of inventing yet another agent loop, T3 Code puts a shared, multi-surface control layer on top of the CLIs you already trust.

2. Architecture: One Backend, Three Surfaces

T3 Code is a TypeScript monorepo. A single backend server (apps/server, defaulting to port 3773) manages agent processes, local SQLite state, Git worktrees, and WebSocket streaming. Three clients connect to that server:

code
┌─────────────────────────────────────────────────────────────┐
│                      Client Surfaces                        │
│   Electron Desktop (apps/desktop)  ·  Web UI (apps/web)     │
│   iOS & Android (apps/mobile via LAN, Tailscale, or         │
│                  T3 Connect)                                │
└──────────────────────────────┬──────────────────────────────┘
                               │ WebSocket / Effect RPC (port 3773)
                               ▼
┌─────────────────────────────────────────────────────────────┐
│                 T3 Code Backend (apps/server)               │
│  ├─ Multi-agent process drivers & thread orchestration      │
│  ├─ Local SQLite storage for sessions & pairing grants      │
│  ├─ Git worktree isolation, diff viewer & PR actions        │
│  └─ Built-in t3-code MCP server & /mcp endpoint             │
└──────────────────────────────┬──────────────────────────────┘
                               │ Drives locally signed-in CLIs
                               ▼
┌─────────────────────────────────────────────────────────────┐
│                  Authenticated Coding Agents                │
│  Claude Code · Codex · Cursor · OpenCode · Grok · Antigravity│
└─────────────────────────────────────────────────────────────┘

Because execution stays on your workstation or dev server, your phone only acts as a lightweight remote controller—not a build environment.

3. Core Capabilities

3.1 Six Major Agents Under One Roof

As long as you authenticate the CLI locally, T3 Code can drive it:

  • Claude Code: claude auth login
  • Codex: codex login
  • Cursor: agent login
  • Grok Build: grok login
  • OpenCode: opencode auth login
  • Google Antigravity: Enable in settings and sign in with Google

Billing stays directly with your existing subscriptions or API keys.

3.2 Mid-Thread Switching & Agent Handoffs

Conversations are organized into persistent threads. You can switch models mid-thread or start with one agent for planning and hand off the same thread to another agent for implementation.

3.3 Built-In Git Worktrees & One-Click PRs

Spin up each thread in its own Git worktree so parallel tasks never touch each other's working tree. When an agent finishes, inspect the diff inside T3 Code, commit, push, and open a pull request directly.

3.4 Desktop, Web & Mobile Apps

  • Desktop (apps/desktop): Electron app for macOS, Windows, and Linux with the server runner bundled in.
  • Web (apps/web): Launched automatically when running t3 from the terminal, ideal for browser-first or headless workflows.
  • Mobile (apps/mobile): Native Expo / React Native apps on App Store and Google Play for monitoring output, replying, and approving tool calls away from your desk.

3.5 Remote Access: LAN, Tailscale & T3 Connect

Leave your host machine running (t3 service install) and reconnect from elsewhere:

  • Local Network: Pair directly over the same Wi-Fi.
  • Tailscale: Point your client at your Tailscale node address.
  • T3 Connect: Enable T3 Connect in Settings → Sharing & access (or via t3 up) and sign in with the same account on your mobile or secondary device—no router port forwarding needed.

3.6 MCP Support

T3 Code provisions an internal t3-code MCP server for connected agents and exposes an /mcp endpoint so external MCP clients can interact with your threads and environments.

4. Quick Commands

Try T3 Code in seconds without installing globally (requires Node.js):

bash
npx t3@latest

Or install the CLI / desktop app directly:

bash
# macOS / Linux CLI
curl -fsSL https://t3.codes/install.sh | sh

# Windows PowerShell CLI
irm https://t3.codes/install.ps1 | iex

# macOS Desktop App
brew install --cask t3-code

# Windows Desktop App
winget install T3Tools.T3Code

Keep the server running in the background so your phone can connect anytime:

bash
t3 service install

5. Honest Caveats Before You Start

  • Prerequisite: You must install and authenticate at least one supported agent CLI on your machine first.
  • Fast-Moving Software: pingdotgg/t3code ships updates rapidly and is still early-stage software. Keep up to date with t3 update or your package manager, and run t3 doctor if local state ever needs cleanup.

Control AI Coding Agents with T3 Code

Install the desktop app or run npx t3@latest to orchestrate your local Claude Code, Codex, and Cursor sessions with isolated worktrees.