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.
翻译:暂无翻译