r/opencode • • 15d ago

I built a native desktop client for OpenCode in Rust + egui, inspired by OpenChamber

Post image

Hey everyone. I've been building RustChamber, a desktop workspace for OpenCode. It's inspired by OpenChamber, but I rebuilt it from scratch as a fully native app. There's no Electron, no webview, and no JS runtime anywhere

I wanted something lighter than a browser wrapped in a window, and I wanted full control over how the chat, terminal and diffs get drawn

What's in it:

- Chat with streaming Markdown, reasoning, tool and shell cards, and permission prompts

- A real PTY terminal with tabs, colors and scrollback

- A git panel: status, stage, commit, branches, log, fetch, pull, push

- Session and per-turn diffs with file stats

- Native read-only viewers for SQLite, Parquet, ZIP, Jupyter, XLSX, DOCX and PPTX

- Lua extensions that render through the native widget layer, not an iframe

One design choice you might find interesting: the UI thread never does I/O. Screens send actions to a Tokio backend actor that owns the API client, the SSE stream and the server process. Results come back as events, and the UI only repaints when it needs to

Known limits: you need the OpenCode CLI installed (the app doesn't bundle it). Windows compiles in CI but hasn't had as much hands-on testing as macOS and Linux

Site: https://rustchamber.dev

Source: https://github.com/rustchamber/rustchamber

I'd love feedback on the egui side, especially text layout, large transcript performance, and the threading model.

87 Upvotes

40 comments sorted by

24

u/CrypticViper_ 15d ago

This is a cool project! Just letting you know they're rebuilding the native OpenCode desktop app in Rust though too so they're going to be a bunch of overlap

4

u/Savensh 15d ago

thanks for the heads-up

1

u/Savensh 15d ago

but I’m also thinking about building new features

1

u/Zeeplankton 15d ago

opencode gui is stuck in 2010

5

u/dwizzle204 15d ago

Consider pivoting to PI as the backend of you don’t want to compete with opencode and openchamber

1

u/Savensh 15d ago

interesting, thanks for the tip

3

u/Alternative_Web7202 15d ago
  1. https://github.com/bigfish1913/pi-rust
  2. https://github.com/bytesbay/pi-gpui

by the launch break there probably will be few more vibecoded…

2

u/Temporary-Issue7055 14d ago

do you accept someone to collaborate?

2

u/Unlucky-Dish5368 14d ago

Windows 11 support?

2

u/Savensh 14d ago

Not yet

2

u/ghaldec 13d ago

It would be great to have a proper flatpak (or appimage) version; I admit that a non-sandbox installation puts me off a bit...

1

u/Savensh 13d ago

I will work on this

2

u/everwinner64 13d ago

Cool project! I’ll download it without hesitation if it gets support as good as OpenChamber’s, especially since OpenChamber is heavy, with Electron, the JS runtime, and so on

1

u/Savensh 13d ago

Certainly! Please feel free to send me tips, suggestions for improvements, and bug fixes

2

u/WestTechnology7577 7d ago

I ran into an issue with i3wm, fixed it, and submitted a PR.

1

u/bllq 15d ago

Very cool! I did the same thing (but scuffed), yours a lot better than mine.

1

u/Savensh 15d ago

LoL, don't give up

1

u/bllq 15d ago

I really hate web view, it is literally everywhere nowadays, thanks for cheer up

1

u/CoffiPants 15d ago

just use t3 code

2

u/Savensh 15d ago

I see. Thanks for showing me another one I can draw inspiration from as well, but what’s interesting is that, since mine is written in Rust, I’m noticing that I’m saving on output. I’m still reviewing and testing it, but I believe Rust is helping the model save resources.

2

u/Bumbwybeebee 14d ago

I'm curious, how can this improve the performance of the actual models being run if the models are being run on the cloud? Isn't this gui still just using the opencode harness with opencode models under the hood?

1

u/Golf_Internal 15d ago

/no-mistake or /ptack ?

2

u/Temporary-Issue7055 15d ago

dammn cool stuff.

2

u/WestTechnology7577 8d ago edited 7d ago

Very nice project and exactly what I was searching for!

Do you have intentions to continue the dev or was it just an experiment?

I checked that you "wrap" the OpenCode CLI, so it will continue to get updated. I find this a cleaver decision.

1

u/GustavoMunix 15d ago

Eu achei muito foda! Performance muito superior, e eu não sei se tô viajando mas notei que gasta menos token no output, por que?

1

u/RlAzec 15d ago

looks very similar to T3Code

1

u/PerfectReflection155 15d ago

That's cool and all, except I migrated away from openchamber to pichamber some time ago due to opencode being more costly to run token wise with Pi is. I also ended up heavily modifying PiChamber myself for UI benefits and really love it now. It actually looks quite similar to what you built just subtle differences around indicators for working/subagents/difficulty level/agent avatars and things like that.

1

u/Dull-Objective-567 15d ago

I use Orca now but I still miss the OpenChamber UI. Still open it to get the daily updates lol. Just in case I use it again

1

u/millionairemaax 13d ago

Do you this add feture like Gpt Intelligence ui,

0

u/No-Comparison2996 15d ago

Why not use opencode-desktop? What’s so special about it that the official version lacks?

3

u/Lordaizen639 15d ago

Maybe because this is rewritten in rust