The operating system I dreamed of as a kid
Some people restore cars. I build an operating system with AI. Purely as a hobby, and to test one thing: people say AI can't code. I think that, with a person at the wheel, it can make quality software. I can't think of a harder test. This is where I tell you how it's going.
01 · story
From a toy BASIC to a Rust kernel
-
VTech PC Prestige
A toy “computer” with a kind of BASIC. That is where I started tinkering with code.
-
My first 386
I kept learning, but an operating system of my own was another league. It was too big for me.
-
Today · adkos
With AI, I finally am. No rush. And on the way I find out how far it can go.
02 · how I work
I don't type every line. I direct.
I think the programmer's job is changing. It looks more and more like a CEO's: you don't write every line, but you know what has to come out, who makes it and who checks it.
- 01
Models write
Almost all of the code, the tests and the documentation. In small changes, with one goal each.
- 02
Other agents review
No change lands without a review. The ones that touch the sensitive parts also get a review that tries to break them.
- 03
Tools check
Tests, boots in QEMU, fuzzing, Miri and Kani catch what a review misses. Many mistakes. Not all.
- 04
I decide
Where it goes, what lands and what doesn't. And on specific details, I read the code by hand or correct the model.
03 · how it's built
Secure by design, not by patches
- 01
Each program gets only what you give it
To touch a file, the network or a device, a program needs a specific permission, a handle, that someone passes to it. It can be passed on with fewer rights or an expiry date.
- 02
No root
There is no user who can do everything. Each process sees only what it was given, and administration is a temporary permission that gets logged.
- 03
Rust, with the risky parts fenced in
Unsafe code lives in a few reviewed places, and every block explains why it is safe.
- 04
Checked where it matters
What keeps programs apart (permissions, shared queues, data parsers) is tested with Kani, fuzzing, Miri and mutation testing.
- 05
Solid first
Every shortcut or fixed limit is written down as debt. Whatever can break security or lose data is fixed before anything new goes in, and the rest is planned for a stage of the roadmap.
- 06
Ready for quantum computers
Classical public-key cryptography counts as broken: it only appears paired with a post-quantum algorithm, so breaking it gains nothing. Symmetric keys are 256 bits.
04 · architecture
A small kernel, with everything else outside.
05 · status
How it's going
5/8
- Its own UEFI loader with hybrid Ed25519 + ML-DSA-65 signatures, SLH-DSA in the root of trust and measured boot
- Preemptive SMP scheduler, the kernel at a random place in memory and processes at randomised addresses
- Drivers outside the kernel, isolated by the IOMMU (Intel VT-d or AMD-Vi) and restarted by a supervisor if they fail: display, keyboard, virtio, NVMe, AHCI and xHCI
- Its own file system, adkfs, with a journal, and its own network: TCP/IP, DHCP and DNS
- An encrypted disk, sealed block by block, that opens with the TPM and a password, never the TPM alone, and encrypted users
- Boot it on a real computer (QEMU only, for now)
- Every service speaking the same message format, the IDL (most already do: files, users, disks, network, screen and input)
- Close the recorded critical debt, move all driver traffic to shared queues and build adkfs on the system's page cache
06 · questions
What you might be wondering
Why are you doing this?
Two reasons. Ever since the PC Prestige and the 386, I wanted to make my own system. And I want to find out whether AI, well directed, makes real software.
Another operating system? Why, when Windows, macOS and Linux exist?
No reason at all, and that's the fun of it. Nobody restores a classic car to get to work faster. I do it for the joy of it. Windows, macOS and Linux can sleep easy.
Isn't that really hard?
Very. That's why I picked it. In an operating system, a memory or isolation bug doesn't stay hidden for long. If you want to know what AI can do, don't ask it for a shopping list.
Will I be able to use it one day?
Today it boots in an emulator. There is no date and no promises, but you'll see every step here.
What does adkos include?
It is a base to build on: the kernel, stable interfaces for every type of device and service, and the drivers for open standards needed to boot on a PC or a virtual machine. Apps, services, a desktop and other drivers go on top as isolated capsules, and a signed profile decides which ones run and what each one can reach.
Does AI write it? So what do you do?
What a CEO does, minus the tie and the bonus. AI writes almost all of it: the code, the tests and the documentation. I decide where it goes, split the work between models and agents, some write and others review, and on specific details I read the code by hand or correct the model. Every change goes through a review and all the tests before it lands, but I have not read every line by hand. Nor do I hide it.
But AI can't code…
So they say. The code is on GitHub, so you can check for yourself. And if you find where it falls short, tell me, really: seeing where it falls short is part of the experiment too. That said, nobody outside has audited it yet, so don't use it to protect anything that matters.
Do you make money from this?
No. It is a personal project, with nothing to sell. The only thing I accept is donations through GitHub Sponsors, and whoever supports it shows up in the thanks.
How far do you want to take it?
Until I have built what I have in my head.
Can I follow it or lend a hand?
The code is on GitHub, and I post every step here. If you spot a bug or something done badly, tell me. And if you want to support it, you can on GitHub Sponsors.
07 · support
No ads, nothing to sell. Just fuel.
adkos is a hobby and it stays that way. The only thing I accept is monthly donations through GitHub Sponsors. You don't buy anything: it's your way of saying “keep going”. And in return, I thank you where it shows.
- $3 /month
Thanks
My thanks and your name on this website.
- $10 /month
In the system
The above, and your name inside adkos too, in its thanks.
- $25 /month
Extra contributor
All of the above, with a special mention on the website and in the system.
Thanks to
Your name goes here. For now, the spot is free.
08 · source
Take a look
Everything is on GitHub: the code, the design and the list of what is still missing. If you find where the AI falls short, even better: that's what it's for.
$ git clone github.com/adkosdev/adkos