arXiv · 2611.38658
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Martin Monperrus. 2026-11-28. TinyMonOS: An Operating System Entirely Written by AI Built by a Compiler Entirely Written by AI. https://arxiv.science/abs/2611.38658
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.