adkos GitHub
  • Rust
  • Microkernel
  • x86_64
  • Personal project

The operating system I dreamed of as a kid

I started programming very young and always wanted to make my own operating system. I never could: it was too big for me. With AI, I finally am, and this is where I tell you how it's going.

GitHub FOUNDATIONS.md →

01 · story

From a toy BASIC to a Rust kernel

  1. VTech PC Prestige

    A toy “computer” with a kind of BASIC. That is where I started tinkering with code.

  2. My first 386

    I kept learning, but an operating system of my own was another league. It was too big for me.

  3. Today · adkos

    With AI I can build what I have in my head. No rush, and no goal beyond that.

02 · how it's built

Secure by design, not by patches

  1. 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.

  2. 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.

  3. 03

    Rust, with the risky parts fenced in

    Unsafe code lives in a few reviewed places, and every block explains why it is safe.

  4. 04

    Checked where it matters

    What keeps programs apart (permissions, shared queues, data parsers) is tested with Kani, fuzzing, Miri and mutation testing.

  5. 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.

  6. 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.

03 · architecture

A small kernel, with everything else outside.

04 · 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

05 · questions

What you might be wondering

adkos — help

Why are you doing this?

Ever since the PC Prestige and the 386, I wanted to make my own system. Now I can.

Why, when Windows, macOS and Linux already exist?

I don't want to replace them. It's like restoring a car: I do it for the joy of it.

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?

AI writes almost all of it: the code, the tests and the documentation. I decide where it goes. Every change goes through a review and all the tests before it lands, but I have not read every line by hand.

Do you make money from this?

No. It is a personal project, with nothing to sell.

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 want to support it, you can on GitHub Sponsors.

06 · source

Take a look

Everything is on GitHub: the code, the design and the list of what is still missing.

$ git clone github.com/adkosdev/adkos