Skip to content
←Back to Open Source

OPEN SOURCE DEEP DIVE

T3 CodeAI CodingCoding AgentClaude Code

T3 Code: The Control Plane That Keeps Coding Agents on Your Machine

An MIT-licensed control plane that unifies Claude Code, Codex, Cursor, and ACP agents across desktop, web, and mobile while keeping execution on the host.

pingdotgg/t3code80kTypeScriptMIT10 min read

T3 Code is an open-source control plane for coding agents. It does not ship a foundation model or resell inference. Instead, it drives coding-agent harnesses that are already installed and authenticated on the user's machine, then exposes them through desktop, web, and mobile clients. Code, terminals, provider processes, and project files remain on the environment that owns the workspace; remote clients issue commands, inspect progress, and answer approvals. That division is the product's central idea. T3 Code is less a new coding assistant than a durable workspace for coordinating several agents across local execution, source control, remote devices, permissions, and failure recovery.

Execution stays with the environment that owns the workspace

The architecture separates the server, client runtime, wire contracts, and provider adapters. The server owns provider processes, terminals, version control, checkpoints, durable state, and project files. Desktop, web, and mobile clients supply the interface and platform services. Even when the desktop application bundles a server, its renderer follows the same rule: it must not substitute its own filesystem, credentials, or machine state for the environment it is controlling.

A shared client runtime handles connection management and domain state across all three client types, so reconnect behavior and multi-environment state do not drift between platforms. Typed contracts define the boundary between independently versioned clients and servers, and subscriptions carry only the state a particular client needs. The practical result is that a user can start a thread at a desk, continue it in a browser, and answer an approval prompt from a phone without pretending that the agent process has moved between machines.

Environment identity is independent of the route used to reach it. Direct local-network access, Tailscale, SSH, and T3 Connect are transport choices, not separate execution models. An environment keeps its identifier through restarts and endpoint changes. Repository identity can help correlate clones, but work never silently jumps environments because two checkouts appear to point at the same upstream repository. That distinction matters for remote control software: approving a command in the wrong environment means running it against a different workspace.

Provider differences stay behind adapters

Orchestration and clients reason about declared capabilities rather than provider names. The repository contains adapters for Claude Code, Codex, Cursor, OpenCode, Grok Build, Antigravity, Kiro, Pi, Muse Code, fx, and compatible Agent Client Protocol implementations. A provider's ability to fork a conversation, roll back, steer a running turn, expose subagents, or accept a permission mode is reported by its adapter. The interface should degrade cleanly when a capability is absent instead of promising uniform behavior that the underlying protocol cannot enforce.

Sessions, model catalogs, and credentials belong to provider instances, not merely to driver kinds. Two accounts using the same driver therefore do not share mutable state, and ambient credentials that an instance did not configure are stripped. Generic protocol integrations are expected to follow the public specification rather than accumulating private workarounds for individual upstream agents. Vendor-specific behavior belongs in a dedicated adapter when a maintainer has deliberately accepted ownership of it.

The same honesty applies to permissions. T3 Code does not emulate a missing permission mode by automatically answering provider prompts. It exposes only modes the provider can actually enforce, and native approval and question identifiers pass through unchanged. If a stored mode is unavailable, the session falls back to a more supervised behavior. This makes the labels in the interface meaningful: “supervised,” “auto-accept edits,” “auto,” and “full access” describe a policy at the provider boundary, not a visual toggle disconnected from execution.

Durable intent comes before side effects

The orchestrator serializes commands and decides which events should exist without performing input or output. An event sink commits events, persisted projections, command receipts, and pending outbox effects in one database transaction. It notifies subscribers only after that transaction succeeds. An effect worker performs provider turns, checkpoint capture, diff work, and other external actions after commit, then feeds their results back as new commands.

As a consequence, acknowledging a command means the system has durably committed intent. It does not mean the provider turn, checkpoint, or pull-request synchronization has finished. This distinction keeps network requests and child processes out of database transactions, and it prevents a client from interpreting “message accepted” as “work complete.” Effects have leases, retry and cancellation behavior, and recovery rules. Work tied to a lost provider process is retired during recovery instead of being replayed blindly, because repeating an external side effect after a restart can be worse than reporting that it could not continue.

The event log retains only a bounded replay window, so projections cannot always be rebuilt from the complete history from the beginning. Persisted projections are the applied source of truth, while retained events must remain decodable across upgrades. For a system that stores long-lived threads and approvals, that constraint turns schema migration and recovery behavior into product requirements rather than internal maintenance details.

Checkpoints coordinate files with conversations

A provider turn ending and follow-up work settling are separate milestones. A run may be marked complete when the provider turn ends, while the turn-end checkpoint is still pending on the thread's effect lane. Until that checkpoint commits, readers treat it as pending and command decisions keep controls such as steering, rollback, queued turns, and restore behind the capture. This avoids both a late checkpoint making finished agent work look active and a rollback starting before the file snapshot is stable.

Workspace snapshots use hidden version-control references, so they do not add commits to the user's branch. Rolling back must restore the workspace and the provider's conversation together. If the provider cannot roll back its conversation, T3 Code rejects the operation before touching files. A files-only rollback would leave the agent reasoning about a history the user believes was undone.

Source control is part of the execution model rather than a detached viewer. A thread can run in the project's main checkout or receive an isolated worktree and branch, allowing several agents to work in parallel without sharing a mutable checkout. From the same thread a user can inspect turn diffs, commit, push, and create a pull request. Custom worktree layout commands must be approved by a person who holds terminal authority, and an approval is invalidated when the command text changes. Agents below full access cannot use project setup or layout scripts to bypass that review.

Remote access is an authorization problem before it is a networking problem

Every connection joins a client to one environment over authenticated remote procedure calls and WebSockets. The environment issues its own sessions and enforces their permissions. A relay token is not an environment login, and a connection route is only an untrusted hint until the expected environment has proved that it answers there. Pairing can delegate a set of scopes, but later exchanges may only narrow the grant. Client labels and device metadata are descriptive, not authorization inputs.

Browser cookies, bearer tokens, and proof-key-bound tokens share a scoped-session model. WebSockets receive short-lived tickets so durable credentials do not appear in socket URLs. A successful handshake grants no blanket authority: each RPC declares and checks its own required scope. Guest links are not sessions and can read only one shared thread projection. Outside MCP clients form a separate audience with read-only or runtime-mode ceilings and cannot reuse an ordinary session to reach terminal or filesystem routes.

The hosted web app stores its connection catalog in the browser and connects directly to each environment without proxying traffic through the hosted origin. Its pairing URL keeps the backend target in the query string and the pairing secret in the URL fragment, then removes the secret from browser history. Desktop previews of remote loopback services use a fixed proxy that sends only loopback traffic through the environment's tunnel. Failure produces an error; it never falls back to the reviewer's own localhost.

Linked environments follow the same containment rule. One environment's agent can sign in to another as an ordinary external client, but forwarded runtime modes may only narrow against the link's approved access. Below full access, linked work can mutate only threads with the same origin and cannot touch projects, settings, scheduled tasks, or create further links. The result is a remote system that treats identity, route trust, scope, process ownership, and credential lifetime as separate concerns instead of hiding them behind a tunnel.

Projects are not filesystem sandboxes

T3 Code names the environment, not the project, as its filesystem security boundary. A session with read permission can read files available to the server's operating-system user. Relative paths and writes remain constrained by the workspace filesystem implementation, but a project directory does not isolate secrets or files at the operating-system level. Teams need to state that boundary explicitly; organizing work by project in the interface does not make two projects mutually unreadable.

Signed asset URLs are bearer credentials for one canonical file and are rechecked by device or file identity when served. An HTML page opened from a workspace may load styles, scripts, images, media, and pages from its own folder and descendants, but it cannot reach hidden files or follow a link outside that scope. Read permission is checked when the URL is minted, not on every later request, so an issued URL remains valid until expiry even if the session is revoked. Safe deployment therefore depends on short lifetimes and narrow asset scope as well as the initial authorization check.

Long-running work still depends on a live host

The experimental workflow system runs durable TypeScript pipelines that chain agent steps, code steps, schedules, webhooks, and human approvals. Completed steps are checkpointed, allowing a workflow to resume after a server restart. Durability does not turn the host into an always-on cloud service: workflows advance only while the server is online, and sleeping or shutting down the machine pauses the agents.

Building the project from source currently requires Node.js 26.13.1 and pnpm 12.14.0. At runtime, the user needs at least one supported programming agent installed and authenticated on the host. Git is optional, but isolated worktrees, turn diffs, and one-click pull requests depend on a repository and the relevant host credentials. The project deliberately focuses on existing frontier coding agents; compatible local endpoints are useful for light text generation, not as the main execution model.

These constraints define the audience. T3 Code is a good fit for developers and teams who already switch among several coding agents, want one durable thread and approval surface, need to continue desk work from a phone, or run agents on a workstation or private server. It is not a service that hosts model access for the user, continues work after the environment goes offline, or turns each project into a hardened sandbox.

Open code with a separate brand boundary

The source is available under the MIT license, while the project name, wordmark, logos, application icons, and trade dress remain separate trademark assets. Public forks are expected to replace the branding and state clearly that they are unofficial. The code can be changed and redistributed, but the project does not grant permission to imply official origin or endorsement.

The most useful engineering lesson in T3 Code is that the interface is only the visible layer. The harder work is deciding who owns execution, how provider capabilities are discovered, which state must be committed before side effects run, how files and conversations roll back together, and what evidence a remote request must present before it can act. For teams building an agent development platform, the repository is both a runnable product and a concrete map of those boundaries.

As an Amazon Associate, we earn from qualifying purchases.