[Feature]: Rewrite T3Code in Rust (Tauri)
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I am describing a concrete problem or use case, not just a vague idea.
Area
Build, CI, or release tooling
Problem or use case
The current build is zipped 200.3 MB and unzipped 700 MB. Electron apps are famous for beining unreliable and constantly breaking and ship which each app a full chromium browser.
Proposed solution
Why not rewriting it in Tauri (Rust + Typescript)? Getting the best from both worlds Rust and Typescript. The bundle size would shrink to roughly 50MB unzipped. And apperently seen with Bun, its now doable :)
Why this matters
This matters because the codebase will just grow from this place. Same as with Bun the project will run into issues along the way. The entropy should be kept small from the begnning.
Smallest useful scope
We could create a new minimal coding plane seperatelly and see how far we get. If first trials would be promising we could migrate one feature after the other.
Alternatives considered
No response
Risks or tradeoffs
No response
Examples or references
No response
Contribution
- [x] I would be open to helping implement this.
@willhama Tauri webview implementation sucks currently for performant UI across platforms. They are working on the CEF support, doubt it will be revisited till that has landed. It was originally looked at by Theo, he stated a bunch of issues trying to get Tauri performing up to his expectations. He tried to make a macOS native version also if you are curious.
no thanks
I'd like to add a user perspective on memory efficiency and another implementation option: Go/Wails, alongside Rust/Tauri.
The goal is to make T3 Code easier to use on machines with limited RAM, so more people can run it comfortably alongside agent CLIs, MCP servers, browsers, and development servers. Lower desktop overhead and more predictable resource release could leave more memory for the actual coding workload.
For context, a single physical-footprint snapshot on a 16 GB Mac showed approximately 1.1 GB across T3 Code Nightly's main/helper/backend processes and one Codex CLI process. That total includes the provider process; comparative measurements should separate desktop, T3 server, and provider memory. Other applications were running at the time.
I understand that the maintainers previously declined a Tauri rewrite, and that cross-platform UI performance and Chromium/CDP browser capabilities are important constraints. Could future memory-efficiency work consider:
- A small Rust/Tauri or Go/Wails desktop prototype that initially reuses the existing web UI and T3 backend.
- Explicit resource lifecycle management for inactive preview tabs, completed sessions, MCP processes, and provider child processes.
- Whole-process memory benchmarks for idle use, long conversations, concurrent agents, and opening/closing preview tabs, including whether memory is released after work finishes.
- Moving selected memory-intensive components to Rust or Go if profiling demonstrates a useful improvement.
A language change alone does not establish a memory improvement, and retaining Chromium for browser automation would still carry its runtime cost. The proposed outcome is a measured reduction in idle/active memory overhead and predictable cleanup, making T3 Code more accessible on 8–16 GB machines. I hope Rust and Go can remain options for evaluating that goal, even if a complete rewrite is outside the current roadmap.