A coding agent in a native window.
Quark reads your code, edits it, and runs commands, inside a desktop app drawn on the GPU. It's written in Rust on GPUI, the framework Zed is built on, and inspired by pi. The whole thing is one 32 MB binary.
cargo install --git https://github.com/anxkhn/quark --locked
On Linux, a few system packages come first. Install guide · Guide for coding agents
What it does
- Signs in with what you already use
- A sign-in from pi or OpenCode is picked up as is, so there's nothing new to set up. An OpenAI key, any OpenAI-compatible endpoint, or OpenRouter work too.
- Works in your project
- Seven tools:
read,write,edit,bash,grep,find,ls. Every edit lands in the thread as a colored diff. - Keeps threads as trees
- Sessions are JSONL v3 files modeled on pi's format. Go back to any message and continue from there. The old branch stays.
- Short or long context, per model
- Most models come with a short and a ~1M token window. Pick the window and the reasoning effort the model supports from one place.
- Runs without the window
--printanswers once and exits,--mode jsonstreams one event per line,--mode rpctakes commands on stdin.
A closer look
Eight files. Readable in five minutes.
A prompt goes to agent, which streams the model's reply, runs the tools it asks for, sends results back, and repeats until the model is done. Each message is appended to the thread file.
Core
agent.rsStreams replies, runs the tool loop337auth.rsSign-in, model list, context windows514session.rsThread files, branches, HTML export497tools.rsThe seven tools450cli.rsFlags, print, JSON, RPC307main.rsHeadless mode or the window53
Interface
ui.rsSidebar, thread, composer, dialogs2,269theme.rsDark and light colors146
The interface will grow as the app gets more polished. The core is meant to stay about this size.
Footprint
Install size, measured on one Linux machine.
Idle memory came out close: Quark 134 MB, Codex 141 MB, OpenCode 178 MB, measured as the whole process tree 8 seconds after launch. Quark drew its window in software on that machine, which costs more than a GPU would. How it was measured.
Try it
cargo install --git https://github.com/anxkhn/quark --locked && quark