TinyMonOS: An Operating System Entirely Written by AI Built by a Compiler Entirely Written by AI
Source
arxiv.org
Author
Martin Monperrus
Date
Why it matters
Shows what an autonomous Agent modeA mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.Full definition → can build end to end, and why it worked: expected-output, differential and fixed-point oracles. 45 of 113 defects raised no error, so whole-system tests mattered.
Key takeaways · AI-distilled
TinyMonOS boots in QEMU through its own two-stage boot loader into a 32-bit kernel that includes a disk driver, a FileA named unit of stored data that keeps its contents while no program is using it.Full definition → system, a Terminal and shellA text interface for navigating files and running programs.Full definition →, a scripting language and a compiler, all written by the Claude AgentA system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.Full definition →.
The build uses no third-party compiler, assembler or linker. The agent wrote its own toolchain and bootstrapped it until the second and third self-compiled generations were byte-identical, a fixed point that serves as a correctness check.
Per the abstract, the human operator set goals and wrote no code. The agent ran expected-output, differential and fixed-point oracles 125 times, and only a test that booted the whole machine caught the subtlest defects.
Monperrus credits the oracles with making the project possible, and the paper turns that experience into guidelines for designing oracles for coding agents. The code and full agent transcripts are published.
Terms in this piece · Glossary
Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
Agent — A system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.
File — A named unit of stored data that keeps its contents while no program is using it.
Terminal and shell — A text interface for navigating files and running programs.