TinyMonOS: An Operating System Entirely Written by AI Built by a Compiler Entirely Written by AI
Abstract
We report on TinyMonOS, an x86 operating system in which every line of code, from the boot sector to the compiler that builds it, was written by Claude working as a coding agent. TinyMonOS boots in QEMU through its own two-stage boot loader into a 32-bit kernel with a disk driver, a file system, a shell, a scripting language, and a compiler. Its build uses no third-party compiler, assembler or linker: the agent wrote its own, and bootstrapped them until the second and third self-compiled generations were byte-identical. The human operator set the goals and wrote no code. What made this possible is the oracles. The agent combined expected-output, differential and fixed-point oracles and ran them 125 times; 45 of the 113 defects in the system raised no error at all, and only a test booting the whole machine caught the subtlest ones. We distill guidelines for designing oracles for coding agents. The code is at https://github.com/monperrus/TinyMonOS and the full transcripts are browsable at https://monperrus.github.io/boot-to-claude-website.
Create a lesson
Related papers
Interrupt-Aware Static Detection of Deadlocks in Rust Operating Systems
Shared title terminologycs.SEYuzhi Li, Hongliang Tian, Chengjun Chen et al.
Verifiable Software Development & Operations
Shared title terminologycs.SETakaaki Higashi, Kai Otsuki
Horizontal Models, Vertical Systems: A Position on Where Domain Knowledge Belongs in Enterprise Agents
Shared title terminologycs.SELuciano Lucindo Chaves
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
A Causal Loop Diagram supporting tool to bridge System Thinking and Software Engineering
Shared title terminologycs.SEThiago Felippe Neitzke Lahass, Júlia de Souza Borges, Amanda B. Apolinário et al.
Tailoring EU AI Act Requirements from a System's Documentation: Evaluating TERE4AI on Two Open Source Systems
Shared title terminologycs.SEJosé Siqueira de Cerqueira, Kai-Kristian Kemell, João Rossi et al.