t3-rust.omaralex.dev Unofficial

In progressF1 Core/RPC/SQLite · Wave 1Bbranch feat/rust-migrationcommit 6fdd934a75updated

Migrating T3 Code to Rust

An unofficial, in-the-open port of the T3 Code server and client runtime from TypeScript to Rust. A crate replaces nothing users run until it reproduces the TypeScript server's golden fixtures.

Each segment is a phase, sized by its estimated share of the work. The needle marks overall progress: 25%.

  • Ported
  • In flight
  • Not started
Overall progress
25%
Weighted by phase effort
Rust tests passing
126
of 126 · 100% passing
Golden parity vectors
9,179
of 9,179 · 100% passing
Qwen4 local share
95%
Of generated code, from local workers

Crate map

Nine crates take over the TypeScript code one layer at a time. Each block sits on the crates it depends on and names the code it replaces. Select one to open its phase at the top of the page.

InterfaceRuntimesDomain + transportStorageFoundation t3-ui (Rune) F4 · apps/web t3-server/cli F3 · apps/server t3-client-runtime F4 · packages/client-runtime t3-orchestrator F2 · orchestration-v2 t3-providers F3 · packages/provider-* t3-rpc F1 · server/ws.ts t3-sqlite F1 · server/persistence t3-contracts F1 · packages/contracts t3-shared F1 · packages/shared
t3-ui (Rune) F4 t3-server/cli F3 t3-client-runtime F4 t3-orchestrator F2 t3-providers F3 t3-rpc F1 t3-sqlite F1 t3-contracts F1 t3-shared F1

Work by phase

F0InfraDone100% done · 5% of effort

  • Cargo workspace at rust/ Done 67dbd4629f —
  • Builds with or without sccache Done 67dbd4629f —
  • Golden fixtures captured from the TypeScript server Done 67dbd4629f —
  • statev2.sqlite migrated Done 67dbd4629f —

F1Core/RPC/SQLiteIn progress67% done · 30% of effort

  • F1-01 Branded IDs and base schemast3-contractsWave 1A Done pi-1Qwen4-35B-A3B 3,338/3,338
  • F1-02 Relay JWT, desktop tokens, DPoPt3-shared::cryptoWave 1A Done pi-2Qwen4-35B-A3B 177/177
  • F1-03 Deduped bodies, ID table, socket frames, changed files, endpoints, atomic writet3-shared::pureWave 1A Done pi-3Qwen4-35B-A3B 679/679
  • F1-04 SQLite worker, PRAGMAs, migrator, schema inspectiont3-sqliteWave 1A Done pi-4Qwen4-35B-A3B 379/379
  • R1A-A Review 1A fixes: DateTimeUtc V8 parity, newtype ergonomicst3-contractsWave 1A Done pi-1Qwen4-35B-A3B Not run
  • R1A-B Review 1A fixes: relay JWT typ (P0), DPoP max age, id table -0, atomic write, changed files, endpointst3-sharedWave 1A Done pi-2Qwen4-35B-A3B Not run
  • R1A-C Review 1A fixes: SQLite lookup errors (P0), V2 preview migration reconcilet3-sqliteWave 1A Done pi-3Qwen4-35B-A3B Not run
  • F1-05 Auth, desktop bootstrap, environment, server config and RPC permission contractst3-contractsWave 1B Done pi-1Qwen4-35B-A3B 1,723/1,723
  • F1-06 Core OrchestrationV2 snapshots, projections, commands and eventst3-contractsWave 1B Done pi-2Qwen4-35B-A3B 1,999/1,999
  • F1-07 Effect RPC v4.2 JSON wire codec and core environment HTTP typest3-rpcWave 1B Done pi-3Qwen4-35B-A3B 509/509
  • F1-08 statev2 migrations 1..=131, WAL reader/writer pool, first projection queriest3-sqliteWave 1B Done pi-4Qwen4-35B-A3B 375/375
  • F1-09 Server shell (Wave 1C)t3-serverWave 1C Pending — Not run

F2OrchestratorPending0% done · 20% of effort

  • Event-sourced orchestration: Orchestrator, EventSink and EffectWorker.No tickets yet Pending — —

F3Providers/CLIPending0% done · 20% of effort

  • Provider adapters plus the t3 server binary and CLI.No tickets yet Pending — —

F4Rune Native UIPending0% done · 20% of effort

  • Native client UI on anomalyco/rune, checked with headless PNG renders.No tickets yet Pending — —

F5Nightly 3hPending0% done · 5% of effort

  • Builds, Rust tests and golden vectors every 3 hours, plus the upstream drift tracker.No tickets yet Pending — —

Hybrid migration engine

Frontier models plan and review. Most of the Rust is written by local Qwen4 workers that cost nothing per token, so the expensive models only touch what needs judgment.

  1. Architect

    Gemini 4 Neon

    Plans phases, cuts waves into tickets and sets acceptance criteria.

    6 phases · 3 waves · 12 tickets cut

  2. Foreman + UI

    Claude Opus 5.5

    Reviews and integrates worker output, and builds the UI itself.

    Last integration 6fdd934a75

  3. Local workers

    4×Qwen4-35B-A3B

    Write the Rust for each ticket until it matches the golden fixtures.

    Local · pi · Splash DFlash2 · $0 / token

    • pi-1F1-01Done
    • pi-2F1-02Done
    • pi-3F1-03Done
    • pi-4F1-04Done

Technical pillars

Three constraints shape every phase of the port.

Strangler fig, not a rewrite

Each crate takes over one TypeScript module behind the same WebSocket contract. The desktop app keeps shipping the TypeScript server until the Rust binary passes the same golden vectors, then swaps it in as a drop-in runner.

Target
apps/desktop server runner
Contract
unchanged for web and mobile

Native UI on Rune

The client UI moves to anomalyco/rune. Every screen renders headless to PNG, so visual changes are compared image to image without opening a window.

Library
anomalyco/rune
Phase
F4 · pending

Nightly every 3 hours

A scheduled run builds the workspace, runs the Rust tests and golden vectors, and diffs against pingdotgg/t3code every 3 hours so upstream drift is caught while it is small.

Last run
not yet
Upstream drift
not measured yet