r/ClaudeCoding • u/Patronic89 • 5d ago
Modern Rust OS with own drivers and kernel fully written by Claude(Opus 5.5/Fable 5.2)
I'm Georg, a hobbyist. I know how a PC fits together from the firmware up to the desktop, but I can't write code in any language. Over the last 37 days, Claude agents wrote an operating system for me. It's called BitsOS. I did the architecture, the design and the hardware testing. Claude wrote every line.
**What it is**
- Its own kernel in Rust, with no Linux underneath. To programs it speaks Linux (278 of 386 system calls), so normal Linux programs run on it unchanged.
- It runs on two real machines: a mini PC (Ryzen 7 8845HS, Radeon 780M) and my gaming PC (Core Ultra 7 265K, RX 9070 XT).
- On the mini PC today: its own desktop, Brave, LibreOffice, and Steam with Proton running Windows games. Cities: Skylines II, Farthest Frontier, Dungeon Keeper 2 and KKND2 all run.
- Its own drivers for AMD graphics, NVMe, USB, Intel and Realtek Ethernet, and HD Audio. Only the Wi-Fi driver is ported from Linux.
- Signed updates over the network, with a way back to the previous version.
**How the work is organized** (I think this is the useful part)
I don't work in one long chat. I talk to one Claude Code session that acts as a "desk": it plans, splits the work into waves, merges, and builds the releases. A wave has 3 to 5 items, and each item goes through the same steps:
- A scout (Sonnet) reads the Linux source and our code and writes a map.
- A builder (Opus) builds it in its own git worktree.
- Three checkers (Sonnet) look for bugs independently. Each has its own angle: comparison with Linux, safety, and tests.
- A fixer (Opus) verifies every finding and fixes the real ones.
Then there's one full test run: about 9,000 tests in VMs and on the host, with zero warnings and no skipped tests. After that comes a signed release.
What made the biggest difference:
- **The agents test on the real hardware themselves.** BitsOS has its own MCP server, so Claude can start programs, read logs, take screenshots and measure on the real machine. I only test what needs eyes, ears and hands.
- **Copy Linux, don't invent.** The newest Linux is the reference for every driver. For the RX 9070 XT, I recorded what Linux's amdgpu driver does to the card while it boots: 492,096 register accesses. The agents built our driver step by step against that recording, on a simulated card that answers like the real one. The first time it touched the real card, every step passed. As of version 177, the card goes through all 21 startup stages: security processor, power firmware, command processor, MES, and all the rings. There's no picture on that card yet. That's the next few waves.
- **Hard limits live in code, not in prompts.** Things the driver must never do, like flashing the BIOS chip or changing power limits, are refused by the code itself.
- **Decisions get written down.** Every architecture decision goes into a DECISIONS.md with its reason, so new agents don't argue it all over again.
**Numbers** (14 Oct to 20 Nov)
- About 3,100 commits and about 960k lines of Rust, tests included
- About 150,000 model requests and 92M output tokens
- That would be about $14,200 at API prices. I paid under €400 in subscriptions.
**Honest limits**
- It only runs on these two machines. Other hardware will very likely not boot.
- No human has read all of the code. It's backed by tests, independent AI checkers and real hardware, not by human review. I know that's the obvious criticism. A full cleanup is planned for when the gaming PC runs completely.
- It's a hobby project. Please don't use it for anything important.
A year ago I was copying code snippets out of ChatGPT. With the models from even a year ago, this wouldn't have been possible.
Code: https://github.com/georgwinter89-cloud/BitsOS
I'm happy to answer questions about the workflow.
1
u/ChuckNorrisArgento 3d ago
kudos! did you manage to benchmark your os vs lunux? whats next?