DEV Community

Giuseppe Castelluccio
Giuseppe Castelluccio

Posted on AI-assisted

I built a native Linux website editor in Rust, vibe-engineered

I'm one developer, and for the last two months I've been building Velluma: a desktop website editor for Linux that edits your site's own source files. You open the folder your site already lives in, click a heading on the real page, change its text or colour, and the change is written into the file it came from. No export step, no hosted copy, no account.

Here's what's under it, what broke, and how two AI agents and I built it.

Edits as commands, not text replacement

Every change is a typed command with an undo, planned against the exact bytes it read. Each write carries the digest of the file it was planned on; if the file changed since (your editor, git, an agent), the write is refused instead of overwriting anything. Undo puts the file back byte for byte, and a property test checks exactly that.

HTML and CSS get everything. React, Next and Astro files get text and element styles in this beta, through the oxc parser.

Four crates and one unsafe boundary

  • editor-core: the document model and the command engine, with a short allow list of dependencies the gate enforces.
  • editor-platform: files, licence, updater, settings, the CLI and the MCP server.
  • editor-ui: the shell, plain JavaScript in a Chromium view.
  • editor-ffi: the Qt window and the CEF browser behind a safe API. It is the only crate allowed unsafe, and every block carries a SAFETY comment.

Agents get the same engine

Velluma ships an MCP server with 121 tools (27 in the default agent profile). Claude Code, Codex or any MCP client edits through the same commands as the window, so an agent's edit shows up live, lands in History and undoes like yours. The guarded writes matter more here than anywhere: an agent working on stale bytes gets a refusal, not a silent overwrite.

How it was built

Most of the code was typed by Claude Code and Codex, working in parallel git worktrees on separate tasks. My job was direction, review and saying no. What kept that from turning into a pile of plausible code:

  • One gate script: rustfmt, clippy with unwrap, expect and panic denied, all tests, crate boundary checks, cargo-deny, cargo-machete, and about 60 journeys that drive the real window headless under Xvfb.
  • A structure ratchet: a file over 800 lines may only shrink.
  • A model never reviews its own module; every visible change goes through screenshot critique rounds before I see it.

What broke

  • A legal but absurd file, 256 KB of a+a+a+…, overflowed the parser's stack and closed the window. The fix runs parsing on a worker with a measured stack and refuses shapes that would not fit, with a message instead of a crash.
  • When the panels switched to friendly labels ("Site header" instead of header.site-header), a dozen window journeys failed: they matched visible text. They now read data attributes.
  • Window journeys flake when the machine is loaded. The gate reruns them and the flakes are tracked rather than ignored.

Where it is

It's a beta, Linux only (Debian, Ubuntu, Fedora, Arch, openSUSE, Wayland or X11), with a 7-day trial that needs no account, then a paid licence at beta prices. Windows comes after 1.0.

https://velluma.exotools.dev

I'd like to hear where it breaks on your site: a file it refuses, an edit that lands in the wrong place, a layout it can't follow.

Top comments (0)