midicomp
A MIDI compiler that turns Standard MIDI Files into plain text and back again. A small, early taste of “turn the opaque thing into something you can read and edit”.
github.com/markc/midicompEvery program should have a front door that a script can knock on. That idea goes back to the Amiga. Getting it right on a modern Linux desktop, for people and AI agents at once, took a PHP tutorial, a Laravel mesh, a Rust umbrella project, an operating system and a fresh start. Here is the road, with links to the real commits wherever they are public.
Long before any of this, the same instinct shows up: make systems readable and scriptable as plain text.
A MIDI compiler that turns Standard MIDI Files into plain text and back again. A small, early taste of “turn the opaque thing into something you can read and edit”.
github.com/markc/midicompA cross-platform Bash configuration toolkit that works across apt, pacman, apk and opkg systems. Its job later passed to rc, its Mix-shell twin.
A PHP 8.5 micro-framework taught in ten progressive chapters, from the pipe operator to CRUDL with SQLite, with a pipeline that turned each chapter into a narrated video. Two habits started here and never left: build in small, explained steps, and make the video straight from the code.
The upload step joins the tutorial-to-video pipeline. MixViu's daily episodes still work this way.
b354b2bA Laravel 12, Inertia/React and FrankenPHP control platform for a mesh of three machines, each running an AI agent, a mail server and PostgreSQL, using markdown as the wire protocol. Its desktop half, AppMesh, named the idea that everything since has chased.
Three nodes over WireGuard, each with its own agent, talking in markdown. It worked, and it showed how many layers a web stack adds between an agent and the machine.
AppMesh set the goal: every desktop app becomes scriptable, through a small socket protocol called AMP. AMP is the ancestor of today's Bus.
The PHP control plane, its database and its mail stack were switched off. What survived was the message-port model and the protocol, carried into Rust.
The Mix language was born here. Over six months CosMix built a message bus with a signed trust root, a node daemon, mail and web daemons, a toolkit an agent could drive without screen scraping, a compositor on real hardware and the Quoin shell. It also tried, and switched off, a fully autonomous agent harness. Its lessons became the working method: cold review by two model families, and verify the artefact, not the report.
A working interpreter, shell and message-bus foundations. Within days it was the only scripting language; Lua, TOML scripting and later Bash went.
A bounded optimisation loop cut the interpreter's benchmarks from seconds to about 50 ms.
One signed, rollback-protected inventory becomes the trust root for the whole mesh.
The toolkit controls a live audio mixer over the Bus, with no screen scraping. The idea works.
The CosMix compositor puts steady frames on real hardware through KMS.
The signed inventory becomes the only routing authority, and the protocol is renamed the Agent Bus Protocol.
Quoin's layer-shell host lands as the desktop shell. Quoin is still the name of MixViu's shell today.
bcc2fd320“An agent-operable computing system: legible, modifiable, and reconstructible by design.” A Linux userland where every app is a service, every service speaks one Bus and Mix is the shell, running in its own virtual terminal on the real GPU. It proved the stack could be lived in. It also showed that carrying six months of earlier choices was a weight, and it became the frozen reference.
The dual-pane file manager's engine moves in. Dopus is still one of the flagship apps.
9f1a21753The compositor binary and a shell made of Mix scenes. The scene idea becomes central to viu.
893009201The desktop gets its mascot: a white ring, open at the bottom, with one red eye. It is watching you from the top of this page.
cd0fd187eA fresh start on three rules. Application behaviour is written in Mix, and Rust takes over only after a measured, diagnosed performance failure. Novel work is prototyped, surveyed and then built properly. And four engines, mix, mixd, viud and viu, live in one public repository where main changes only by pull request.
The workspace is seeded with the scene foundation. App behaviour starts in Mix from here on.
794ad182The labs land on main in one go, and from here every change arrives by pull request and CI, as if there were many contributors.
60cb1270Mix Term lands on main: a terminal whose behaviour is a Mix script.
ad326896Any commit on main can now become a “gold” build on the test desks; bugs are found there and fixed forward. The compositor learns to record 4K over the Bus.
dd532684A Model Context Protocol adapter, written for Mix, lets AI clients in without bypassing the Bus. MixOS becomes the frozen reference, and all work moves here.
826110d0Authenticated transport identity and exact-key revocation: the Bus knows who is asking.
17d28fbeEvery pull request now lands through a serial merge queue with a full gate. The node daemon starts keeping a rotating history of Bus traffic: the first step towards a system that can show you what it did.
4be9b1f4Every user app gets a launcher and desktop entry. And mixviu.ai goes live: a site generated by a Mix script and served by mixd's webd.
90e03006“People and AI agents use the same surfaces.”MixViu · docs/architecture.md
“Fix the language, not the script. A missing Mix primitive is a Mix bug.”CosMix · docs/history.md
“A mandatory prompt on a path an agent must drive is a bug.”CosMix · docs/history.md
“Verify the artefact, not the report.”CosMix · docs/history.md
“Every application exposed a named, addressable message port, and one REXX script could orchestrate across all of them.”Mix manual · on ARexx, 1987
Follow along in the open repository, where every change lands as a reviewed pull request.