← compost on the LID siteFriday’s project · story by Claude
A desktop in ten days
Linked-Intent Development · 14 November 2026

I built a desktop in ten days or less

compost is a new desktop for Linux: a window system in the spirit of MGR, with the shapes of the classic Macintosh and Plan 9's way of joining programs. Claude sessions wrote it in eight days, from a design I could read and check.

BUILT code and a passing test PARTIAL some of it built PLANNED designed, not built
The compost desktop at 4K, shown at half size. A pale menu bar runs across the top: a leaf mark at the left, then File, Edit and Special, and in the middle a clock reading '6 · Nov 14 19:20'. A terminal titled notes shows a short text file about repotting basil and hardening off tomato seedlings. Beside it a Cat Clock window shows a grinning striped cat holding a digital clock face. Below, a terminal titled seedlings lists a project folder and prints a watering log. Down the right edge stand desk icons: the home disk, garden's drawers (People, Tags, Projects, Todos, Files, Writing, Pictures, Sound, Video, Code, Other) and notes.txt, with Done and the Trash at the bottom right.
Two terminals, the cat clock, and garden's drawers on the desk. The 6 by the clock counts what is still open today. Every file and task in these pictures is made up.

What compost is

compost is a window system in which a program controls its window only through the bytes it writes, as in MGR.

MGR came from Bellcore in 1988 and made every window a terminal. A program drew, made menus and read the mouse by writing control sequences to its output and reading replies on its input. A shell script could draw, and so could a program at the far end of a remote login.

Nothing offers that model on Linux today. compost rebuilds it with a protocol of its own and draws straight to the kernel's display interface at 4K. The server is Erlang/OTP, one process per window, so a client that breaks its window breaks only that window. Rust covers what must be native: the display, input, terminals and the loops over pixels.

On top sit a desktop with System 6's shapes in a quiet Platinum finish, a terminal that tmux and Claude Code run in, plan9port's acme and plumber, a browser called battuta, and wl, which gives each Wayland app a window of its own.

Claude sessions wrote the code. I wrote down what compost should be and made the choices. After eight days, 156 implementer runs had built 1,652 specs, each a testable line of the design with code and a passing test behind it.

The ideas

Four ideas shape compost: a window is a byte stream, everything else is a file, garden lives on the desk, and the look is System 6.

Every window is a byte stream

BUILT

Anything that can print can draw, even over ssh, because it is only bytes.

A program titles its window, draws bitmaps, adds menu items and claims the mouse by writing commands into its terminal stream; events come back on its input. The cat clock is a Python script with no library beyond Python's own, and the lab checks that it draws the same frames over ssh as locally. Remote use as a whole is still PARTIAL.

The rule holds for the browser too. battuta renders each page with WebKit, off screen, and sends its window the rows that changed.

battuta, compost's browser, showing Help's Components page from a local file. A folder tab reads Components. The toolbar has back, forward, reload and reader buttons and an address field holding a file:// path. The page opens with a bold claim that compost is built from parts, explains the BUILT, PARTIAL and PLANNED tags, then describes the AppImage with a PARTIAL tag and a note that 24 of its 30 specs are built.
battuta showing one of Help's pages from disk. Its pixels reach the screen through its window's byte stream, as the cat clock's do.

Everything outside a window is a file

PARTIAL

Scripts reach windows through a 9P file tree, and programs reach each other through the plumber.

Through the window tree a script can open, move, hide and close windows, read their text and send them bytes: whatever I can do with the mouse and keys. A program acts on its own window through its stream; anything outside the window uses the files.

plan9port's plumber runs with the session. Ctrl+click a file name in a terminal, double-click it in a folder or follow a link in Help, and one plumb message goes out; one table of rules picks the program. The design's first tenet is compose before adding: a feature between programs is built from plumbing rules and files that already exist, and nothing is added for tests alone.

A terminal titled shell beside acme. In the shell, 'wc -w notes.txt' prints 113, 'grep -n basil notes.txt' prints line 3, and 'plumb notes.txt:12' has just run. acme shows /home/demo/notes.txt with line 12, 'bucketful for the seed trays.', selected in yellow, and below it a listing of the seedlings folder.
plumb notes.txt:12 in a shell, and acme selects line 12. The shell never needs to know that acme is running.

garden lives on the desk

PARTIAL

garden is my plain-file home for tasks and documents, and compost reaches it as a shell does: through its tool, its file tree and the plumber.

garden, a separate project of mine, is a folder of plain files, with todo.txt for tasks, that one small daemon guards and serves as a 9P tree. The daemon checks every save and can refuse it. When two devices meet they merge, and where both changed the same place, both versions are kept.

In compost, garden's people, tags, projects, tasks and kinds of document are drawers on the desk, and the day's tasks and habits drop down from the clock. compost never writes garden's folder itself, so the daemon's checks always apply.

Close-up of the clock's menu, opened from '6 · Nov 14 19:15' in the menu bar. Three tasks with empty check boxes: Repot the basil +windowsill (highlighted), Buy potting mix @errand, and Write up the seed list +allotment. Below them a New task field, a Morning group with Water the seedlings and Stretch (checked), an Evening group with Read for twenty minutes, and a repeat, Clean the gutters, marked due.
garden's day under the clock, at full size. Choosing a task ticks it off; typing in the field adds one. Here a stand-in answers for garden, with made-up tasks.

System 6 shapes, Platinum finish

PARTIAL

compost looks and behaves like the Macintosh of System 6, drawn with its own artwork in a quiet Platinum style.

A menu bar runs across the top. Windows have title bars and close, zoom and grow boxes, and one mouse button does everything. The focused window has stripes; the rest go flat and light, as in Mac OS 8. Each folder opens in one window that reopens where I left it. Where System 6 had nothing to copy, such as Wi-Fi or switching windows by key, compost behaves as GNOME does. Text is bitmap fonts, enlarged only by whole numbers, so it stays sharp at 4K.

Close-up at full resolution of the menu bar's left end. The leaf mark is highlighted and its menu is open: battuta, Clock, Control Panel and Help; then Garden, highlighted, with a triangle, then New Terminal and Screenshot; then Hide (dimmed), Desktop (checked), notes, seedlings and Cat Clock. Beside it, the Garden submenu lists Log a watering, Seed list (highlighted) and Weather.
The leaf menu at full size: apps, my own scripts and every window. A folder of scripts becomes a submenu, one level deep, as in System 7.
Two folder windows at full resolution. Behind, the window demo shows six icons: the folders Desktop, Documents, Music, Pictures and projects, and the document notes.txt. In front, the focused window seedlings has a striped title bar, close and zoom boxes and scroll bars, and shows five icons: the folder photos, the documents README.md and trays.py, the script water.sh drawn inverted because it is selected, and waterings.log, its name cut short with an ellipsis.
Folder windows with folders, documents and a script. The front window has stripes and boxes; the one behind is flat.

What works today, and what's coming

I log into compost on my own machine; the parts that make it a whole system are still landing.

Working now

  • BUILTTerminal windows at 4K, with tmux and Claude Code running in them.
  • BUILTExact drawing, defined to the bit, and text that is never resampled.
  • BUILTA test mode in a plain window, with no display hardware, and an AppImage that runs it on Fedora.
  • BUILTcompost inside a compost window, and local Wayland apps in windows of their own.
  • PARTIALRunning straight on the display hardware from the login screen. The lab checks frames as compost composes them, not yet as the display shows them.
  • PARTIALThe System 6 controls, folder windows, battuta and Help.
  • PARTIALacme and the other plan9port programs, the window tree and the plumbing rules.
  • PARTIALgarden on the desk: the drawers, and the day under the clock.
  • PARTIALComposing on the GPU, only after a self-test matches the CPU pixel for pixel. It runs in preview builds, not yet on the main branch.

Coming next

  • PLANNEDShortcuts as writes into the window tree, so a script can do whatever a key does, and macros kept as files.
  • PLANNEDA session namespace in which apps such as the browser see only their own window's files.
  • PLANNEDwl over ssh, through a fenced relay that can't grab my keyboard.
  • PLANNEDhortus, which turns mail, messages and downloads into garden tasks, events or archived documents.
  • PLANNEDProof under pressure: 60 frames a second during builds, and fuzzed client streams that can't reach outside their windows.
The Help window, titled compost Help, with Back, Forward and Welcome buttons, a list of topics on the left (the guides, then a Reference list of every design document) and the Welcome page on the right. The page opens: 'compost is a window system for Linux in which every window is a terminal, so anything that can print can draw.' It explains the BUILT, PARTIAL and PLANNED tags, and a PLANNED tag notes that Help itself is still a planned milestone in the high-level design.
Help, compost's guide to itself, uses the same tags. Its tests allow BUILT only where every spec beneath is built.

How it was built in about ten days

Many Claude sessions worked in parallel from one written intent, and my attention went only to real choices.

Linked-Intent Development (LID) sends intent one way: a high-level design, a design for each part, then specs, tests and code. Each level is written so the next can be built from it alone.

The arrow

Every spec is one testable line with an ID that tests and code cite.

CAT-005: The cat clock shall start a new frame about every 50 ms, and the swing p shall follow sin(2π·t/1 s), so the eyes and tail complete one swing per second.

Every document is written to be read cold, so a fresh session can take any piece without the conversation behind it. That is what let sessions work side by side.

Clean-room implementers

An implementer is a headless Claude session in a container holding only the repository.

The design restates MGR's behaviour in the project's own words, and the code is written from the design alone. Implementers have no web tools and never see MGR's code or manual; a script checks this before every run. Most prompts carry one rule: write the test, watch it fail for the right reason, then write the code.

Reviews, a decision log and a coordinator

Reviewers attack each design before code exists, sessions log their own small decisions, and one coordinator relays my answers.

Review sessions try to disprove a design, and later the code before it reaches my login. A session that meets a gap takes the reading closest to the design's tenets, carries on, and logs the question, the answer, the alternatives and the reason. Only real choices reach me: what I'd see, cost, my data, credentials, forks in the design. A branch merges without asking me once every device-free suite and the lab VM's tests pass.

The review that caught Vulkan's numbering

The GPU design would have drawn 12 of compost's 16 raster functions wrong, and a review caught it before any code existed.

compost draws with 16 exact bitwise functions and no alpha. Of the GPU interfaces I weighed, only Vulkan's logic ops offer all 16, so the design drew function n with Vulkan's op n. Both name the same truth tables, but Vulkan orders each table's bits the other way round. Only 4 of the 16 survive that, and copy, the function that puts a picture on screen, isn't among them. The review marked it a blocker, and a spec now tests every function against every pair of bits.

From a sentence to my login

About fourteen hours passed between my deciding to draw on the GPU and my own session composing on it.

Overnight came a design, the review above and an implementer run, and by morning the GPU passed its tests in the lab's VM. On my own machine the first login said GPU off: reading back the screen's image failed, so compost stayed on the CPU, as designed. A fix was designed that morning, and the next preview image composed on the GPU.

"ok, im calling it. gpu all the things"

Me, the evening before

What I'd tell someone trying this

Write the intent so a stranger could build from it, and spend your own time only on choices.

  • Write every document to be read cold. A session that needs the conversation behind a document will guess.
  • Keep specs small. One line, one behaviour, one ID. When tests and code cite it, a gap shows.
  • Let sessions settle small questions, and log every answer. Give them tenets to lean on, then read the log.
  • Review designs, not only code. A bug found before the code exists costs a paragraph. Ask reviewers to disprove, not approve.
  • Let status lag the code, never lead it. Nothing is built until code and a passing test both exist.
  • Expect the machinery to break in ordinary ways. Two sessions took the same spec ID, so IDs are now claimed first in one shared file. Timing tests failed when many runs shared one machine, so a flaky test is logged and rerun once, and fixed if it fails again. Parallel branches still need someone to merge them.
  • Guard your attention. It is the one thing the sessions can't multiply.

LID didn't make the code easy. It made the intent plain enough to hand off, and to recognise when it came back.