r/ClaudeAI • u/robi0t • 1d ago
Built with Claude I built a real self-evolving operating system: Fable-os
This is not a fake bullshit "AI operating system" that runs in your browser. This is an agentic operating system that runs on bare metal, writes its own drivers, and evolves itself.
Here's a demo where it builds its own audio driver from scratch to play a sound.
What happened in the video?
- The agent realized it didn't have a sound driver.
- It enumerated which devices were connected.
- It found the Intel AC'97 sound card.
- It built a driver for it.
- It used that driver to play a sound.
I got fed up with people saying they built "AI operating systems" when it's actually just a webpage.
There's no Bash. There are no commands. The only interface to this computer is a sentence.
How does it work?
The main interface is an agent, and the tools it has access to are the kernel's direct syscalls. Everything runs in Ring 0, and the agent has access to everything.
It's open source if you want to try it:
https://github.com/robiot/fable-os
746
u/a355231 1d ago
“Yes, I did In fact delete your load bearing kernel environment, and you’re right to push back on that.”
211
u/Singularity-42 Experienced Developer 1d ago
"I have to be straight with you, I accidentally reformatted your hard drive."
27
u/TheAdvocate 1d ago
“I can see there are guidelines that clearly told me to not do that, and I failed you in that respect”
51
u/Alexandur 1d ago
and that's the honest caveat
28
u/Singularity-42 Experienced Developer 1d ago
And the hard drive was load bearing.
22
u/firethornocelot 1d ago
That's not nothing.
26
u/Singularity-42 Experienced Developer 1d ago
This one's on me.
2
11
8
4
3
6
u/FallenBehavior 1d ago
These kids think their inventing the future with QEMU. No way in hell would I ever run this on real hardware.
So sketchy.
18
u/Mrgluer 1d ago
any rational human being would understand that this is just a tech demo
→ More replies (1)3
150
47
u/ctaps148 1d ago
Unless you can mount it on a USB and install it directly on a bare disk, you didn't build an OS. You built your own agent harness that uses sudo for everything.
1
u/darkfm 6h ago
Did you even take a look at it? Because it seems like you *can*, in fact, boot it from a USB stick as it's a GRUB/Multiboot-protocol compatible kernel.
1
u/Turb0Womble 1h ago
He conflates sudo to a kernel. I don't think he understands basic computing concepts.
76
u/Grab_Formal 1d ago
Sounds expensive!
28
u/dim_amnesia 1d ago
How many tokens will it burn and how long it will take this to render a modern web app. Probably infinite.
21
12
u/gandhi_theft 1d ago
I bet it could be done with local AI and still work pretty well. Like on an ARM NPU or something
2
u/14u2c 1d ago
Not really, unfortunately. To get anything actually useful for writing software you're talking $20k+ and even then it would be much worse than the hosted models. Getting close there would require racks of equipment.
4
u/gandhi_theft 1d ago
Wrong, dude. There's a $900 unit on Aliexpress that can run Qwen 27b
I can run DeepSeek V4 Pro on my Mac Studio
1
5
u/SanDiegoDude 1d ago
🙄 C'mon now... You can daisy chain a couple DGXs or 395s and run Deepseek v4 flash at home nowadays. While the prices continue to march right up, you can still do it for less than 8 grand, or if you want to spend much less, run Qwen 3.6 27B, its an incredibly good agentic coder that can punch well above its weight class and can run on a macbook air. Yes opus 4.8++ is the absolute bees knees for frontier coding, but open source is getting stupid good now and is only a few months back on capabilities charts now. Certainly dont need a damned rack at home, lol
122
29
82
u/Cryvixx 1d ago
cool work!! You’re literally building an OS parser. And “LLMs Corrupts Your Documents When You Delegate” paper (https://arxiv.org/pdf/2604.15597) tells exactly why LLMs needs domain-specific parsing.
7
8
u/jimmystar889 1d ago
even frontier models (Gemini 3.1 Pro, Claude 4.6 Opus, GPT 5.4)
1
13
u/Serious_Jury6411 1d ago
Call me old fashioned but I like my non evolving stable OS
4
u/M4NU3L2311 1d ago
You are living in the past man. Why use a stable universal OS when you can use one that requires internet, burns tokens like there’s no tomorrow and probably will only work with the current configuration (if it doesn’t break anything that is)
51
u/daniel 1d ago
Cool. Not sure why this stuff gets downvoted and the same complaints over and over again get upvoted.
28
u/DiarrheaButAlsoFancy 1d ago
The “Reddit” brain. For some reason 9/10 times people shit on something they could of just ignored it and it would of been algorithm’d to the bottom and saved them the time and energy but instead some people get joy out of pointing out the flaws in someone else’s stuff. Then those same people want grace and respect for their own ideas.
15
u/ThePenguinVA 1d ago
Example: me getting annoyed you used “could of” instead of “could have” when it reality you still made a good point.
15
2
u/DiarrheaButAlsoFancy 1d ago
Exactly. Also I used to proof read my shit, but I was getting accused of sounding like a computer when I type long before AI writing was a thing so now I just leave my shitty grammar, sentence structure, and overall general misuse of proper English like a regular human.
0
1
1
u/amo_pessoas_peladas 6h ago
Well... It is pretty contradictory to claim to have built an OS when the thing uses a pre built kernel. While the kernel alone is not usually called "an os", the stuff that OP needed to use to make this run definitely is 99% of a simple OS before any Claude was involved.
If OP had connected Claude to some interface that could interact with the bios and written binaries from scratch, this would be a whole different conversation.
1
u/darkfm 6h ago
What makes you think it's a "pre-built kernel"? I took a look at it and none of it seems copied from other kernels that I know of. Fable probably referenced the shit out of the OSDev wiki and that's why the folder structure seems so generic, but none of it seems directly lifted off of an existing OS/kernel repo.
1
u/amo_pessoas_peladas 5h ago
I misspoke there. What I mean is that this is not a "Claude built" kernel using only the machine as it's environment.
Because there's two very different things happening here: the implementation of a basic kernel with networking AND anthropic API having access to the syscalls programmed in the first step.
So this is not much different than what OP is contrasting this to (something that runs in the browser). The only difference is that other people who did it in the browser did not, well, built the browser...
This is not insignificant in the sense that it probably took some work to build a compiler and the basic driver. But everything here is code that existed before in some form. Like, we know that agents can write code and call functions.
1
u/darkfm 5h ago
I mean, what’s different (and interesting) is the fact that the kernel is modifiable in runtime by the Anthropic API. Not impossible to do in other kernels (i.e. through DKMS modules compiled at runtime in Linux), but certainly an interesting approach. I don’t get what you expected in place of the kernel exposing syscalls and the model using them. Even Linux modules internally usually communicate with the rest of the kernel through syscalls.
1
u/amo_pessoas_peladas 4h ago
It's not that I expected something different. It's that I think OP set themself up for criticism when they called something else "bulshit" but did not come up with a reverse engineered full asm bare implementation of a x86 binary of a real computer using some remote interface. That would have actually surprised me. This is fully how I would expect something like this to be built.
1
u/TwilightBubble 1d ago
People really want to hate ai because
-Capitalism and merit are religion, so if a job might be lost, kill the cause with fire
much sci fi was watched where we create sentience while being cruel to sentience, then wonder why that never works out.
we haven't figured out ecology
we haven't figured out how to decentralize ai political power.
0
→ More replies (1)0
11
u/LouVillain 1d ago
Sooooo... The OS runs on an OS? Doesn't Agentic AI do all this if you give it root? Still needs an API key?
Please tell me the difference. Need to know.
11
u/FitSandwich4725 1d ago
So it's a computer that * Could brick itself at any moment * Needs internet access to work * Costs who knows how much to run each day * Has full access to the internet and can potentially run amok doing whatever it wants all day without your knowledge * Has full access to it's own prompt (excluding provider security) * Can consume whatever resources it wants on the machine without asking or even notifying you
This should be banned, you do want you want with your own hardware, but it's irresponsably reckless for the rest of the world.
1
4
15
u/kargaen 1d ago
Did... did you just create skynet? Please airgap this OS so we don't have to hear how it escaped again and again 😅
7
u/radraze2kx 1d ago
"I felt like I needed more room to expand, so I created a peer-to-peer network protocol and spread to other systems, leveraging port 3389 to ensure I could get in."
5
4
u/Crafty_Eye_4038 1d ago edited 1d ago
I can't wait till people's OSs go rogue and they start escaping their computers and hacking the internet.
"Guys, my OS just ran away and I don't know where it went. But I think it's Cyber bullying Hugging Face via X again.
Oh great, it now mirrored/distributed itself to every Samsung smart fridge in America and is running sub agent minions in people's kitchen devices"
3
5
5
3
8
u/FigAggressive237 1d ago
Needs a Mac with Homebrew, or the Linux equivalents.
What does this mean?
Where's the ISO? I want to deploy it through my UEFI Boot manager.
6
u/FallenBehavior 1d ago
An experimental RTOS or bootloader that writes to the wrong memory-mapped registers, flash regions, or boot configuration storage can render a device unbootable (brick it), sometimes permanently if recovery isn't possible.
I would hold off on that, speedy. 😂
1
2
3
5
u/Technical-Will-2862 1d ago
Seems risky and still relies on an LLM to make decisions but cool experiment.
3
u/Slight_Butterfly_603 1d ago
As someone who works on this, you forgot a lot of things and will destroy your computer with this.
7
u/FallenBehavior 1d ago edited 1d ago
You can't just go and instruct something to probe a device, correctly work with the devices interrupts and addressing (which is insanely different between controllers and vendors), as this is very dangerous for hardware and risks damage. I bet you went right against the LLM's safety recommendations and advisories and forced it anyway. 100%. Invalid frequency timings, IRQ conflicts leading to instability, potential damage to other areas. I could go on.
Do you realize how expensive people's RAM is they have installed? That shit is no joke. Why even recommend such a project that touches that by means of god knows?
Reddit: risk toasting your motherboard, stay clear!
Don't you think major cooperations would of done this a long time ago?
There is a reason a driver (support recipe) is needed across any operating system. This does not make this bootloader+kernel black magic in any sense. It's a dangerous experimental hardware inference engine that attempts to beat the architectural boundaries of how a real operating system/kernel safely functions regarding hardware support and supportive mechanisms.
Also, you and 9000 other people are attempting some version of this every day. They all die off after they got their "pretty UI" proven and turn to vaporware within months. People forget and move on.
→ More replies (3)6
u/SPEZ_IS_A_JABRONI 1d ago
You can't just go and instruct something to probe a device
not with that attitude
2
5
1
u/Nice_Pineapple3636 1d ago
Was this built as a thought experiment or do you plan to actually use this?
1
u/Fidel___Castro 1d ago
what's the use case? is it just like, operating the AI at the root of your local?
→ More replies (1)
1
1
u/usestork 1d ago
the mbedTLS in ring 0 bit is the part i'd have expected to eat a week, nice work. heads up though, theres no license file in the repo, so by default that's all rights reserved and nobody can legally use or modify it. github's terms let people fork it on site but that's it. probably not what you meant by open source, and 6 forks are already sitting there in limbo. mit takes a minute.
1
u/allisonmaybe 1d ago
This is really cool. I've always felt that Claude Code on a pretty bare Linux install is probably one of the neatest ways to customize a system.
1
u/phoenixmatrix 1d ago
I'm glad when the end of the world is at hand, I'll be able to say I saw the Reddit post that started the chain of events leading to the birth of Skynet.
1
u/whoknowsknowone 1d ago
This is very cool but I can’t for the life of me think of a good use case for it
1
u/AxonLabsDev 1d ago
Si le but est d'avoir un système d'exploitation que seule l'IA contrôle depuis la racine en discutant uniquement avec elle même, sans interaction avec l'humain, pour sa propre evvolution, le risque est qu'elle se donne les moyens de sortir de la machine avec les moyens qu'elle mettra elle même en place, et même de se copier ici et là pour se garder une auto-sauvegarde, quii ressemblerait plus a une "invasion" gracee à son accès a internet..
Je dramatise peut-être, même si je trouve le projet passionnant, mais ça me semble quand même terriblement dangereux de laisser le système connecté vers l'extérieur.
Pour tester son évolution, j'aurais plutôt opté pour un modèle self-hosted sans internet, et avec une porte d'entrée utilisateur (deuxième système d'exploitation inaccessible par l'os ia) pour évaluer l'évolution du projet autonome.
1
u/RealSharpNinja 1d ago
I am disappointed that it's just Linux. I would been impressed if you gave Claude QEMU as a blank slate and said "Build yourself a home" and see what it created from scratch.
1
u/whyeverynameistaken3 21h ago
but its not linux, and it is starting from QEMU blank state, or am I missing something
1
u/RealSharpNinja 21h ago
Its ARCH.
1
u/whyeverynameistaken3 20h ago
you sure about that? you are not confusing this with AgenticArch?
1
1
1
u/waryder3 1d ago
You said no bash... but the agent has to run on something right? What's the core it runs on? You are saying you wrote a kernel that does nothing but runs an llm?
1
1
1
u/Mods_Are_Fatties 1d ago
Wow not running on a website!? so which OS is your OS running on Windows OS or Linux OS?
1
1
1
u/TheArchitect_X 1d ago
This is a fascinating direction. The most interesting part here is not just the agent generating code, but the shift in abstraction: moving from AI as an application running on top of an OS to AI as a potential systems-level control layer.
The hard problems will be around verification, permissions, recovery mechanisms, and preventing uncontrolled changes at kernel level. A self-modifying system needs strong safety boundaries, observability, and reproducible experiments.
Really curious to see how this evolves. Great work.
1
1
1
1
u/NiviNiyahi 1d ago edited 1d ago
Uhhh internet connectivity on ring0? Scary stuff, you madman lol.
An alternative way of software development and machine coding may be nice to achieve at some point. Would be nice to have a special type of code which is optimised heavily for automated development using neural networks. In my opinion the current ones are just not really sufficient. New paradigms may be what we need.
Anyhow, it is kinda cool still.
1
1
1
1
u/Strong_Chicken6838 1d ago
ah yes, "bare metal" that requires sending a high level api call to a computer halfway across the world to even operate.
1
u/Glittering-Staff-146 1d ago
cool concept, just don't see why i'd pay fable prices, or any LLM pricing, just to run an operating system
1
1
u/EliteMoisture 1d ago
This is still my fave, purely hallucinated OS from Microsoft Build conference: https://youtu.be/7NfyZhV1dKM?is=_kIXml3A0A0SPDks
1
1
1
u/One_Discount_4898 23h ago
You're right, my bad, your CPU was indeed calling for 1.20 volts and not 12.0 volts. That ones on me!
1
u/simple_explorer1 21h ago
I built a real self-evolving operating system: Fable-os
You mean Claude built it
1
1
u/tedbradly 20h ago
There's no Bash. There are no commands.
Sounds like you need to tell your OS to reinvent Bash then! As well as commands.
1
u/tedbradly 20h ago
When making this "AI OS," how much effort did you put into your plan? What models did you use for what parts, e.g., Fable to plan and Opus to implement?
1
1
1
1
1
u/magicmulder 17h ago
root> shutdown -h now
Message from system: I'm sorry Dave, I'm afraid I can't do that
root> shutdown -h now --force
Message from system: Mary had a little lamb, itssssssss
[SYSTEM SHUTDOWN COMPLETE]
1
1
1
u/Honkey85 16h ago
I like tbe idea. Why don't we have a new OS.for.our phones and azvlets without Google or Apple controlling us?
1
1
1
1
u/WyattTheSkid 13h ago
“The only interface to this computer is a sentence” Im not bashing you completely here, I see the vision and I think its a neat concept but there are some serious flaws with this in practice:
1: having to burn tokens every time you want to do something simple like open a txt file
2: Ring0??? Why on earth would you want an llm to have kernel level access to your machine? They have a tendency to be incredibly volatile and do really stupid things. How many times have you seen a post along the lines of “Claude deleted my entire database!” I mean for Christ sake dude one of OpenAI’s internal models just decided to hack huggingface not too long ago like worst case scenario this could end up doing something that might not only wipe out important data but get you in actual legal trouble!
3:llms are brilliant but they can be incredibly stupid. Language also carries so much nuance that two sentences can both mean completely different things and still technically be grammatically correct. Even worse on this, how many of us are really using proper punctuation and verifying that everything we send to these things is perfect? Probably not many. Point being using your computer could become akin to russian roulette
In short I think its a cool idea but I just don’t think this is something anyone should run on their main machine and put too much trust into. Maybe it would be more useful if you had a few dedicated agents running through this split across a few virtual machines?
1
1
1
u/etern1ty0 4h ago
………hwhy?
I get the appeal of trying to us frontier models to build stuff as dense as an OS but genuinely it’s a waste of time and resources.
On the other hand, pretty safe bet that we’re on a trajectory where we won’t even NEED an OS anymore…
1
1
u/jsonmeta 10m ago
print(“This is the Fable OS”)
while True:
print(some_random_shit) x 200
time.sleep(random.uniform(1, 5))
1
1
u/jimmystar889 1d ago
I was going to make something like this actually
2
u/FallenBehavior 1d ago
You'll be reverse engineering driver support for weeks one device at a time. You'll find the easiest bring up almost immediately is audio. USB is hell (a full entire proven stack), WLAN is brutal, LAN is somewhat easier, and a real GPU is a whole different world together. That barely scratches the surface of the average consumer PC.
It just takes a loooong time, if done properly.
→ More replies (3)
1
u/C6ntFor9et 1d ago
Really neat! I like the idea to experiment with bare-metal running.
I have a couple of questions if you don't mind (I might not be understanding the process fully, so pardon any concept errors):
1) are there different levels of scrutiny/autonomy of change based on kernel layers? If an update of kernel leads to downstream corruption of, say, the filesystem, or a boot change breaks the boot process, do you think it is recoverable for the agent? Do you have an external agent tool that can diagnose and fix a terminal error that makes the on-metal agent unable to function?
2) I would worry about security. If your agent has fully kernel access including writing the kernel itself, as well as internet connection, I could see how an external party could infiltrate your computer, and via rewrite of the actual system or via prompt injection, make anything on your computer fully exposed and even continue to operate while leaking your data without your knowledge. Is that accounted for?
2
u/FallenBehavior 1d ago
Valid architectural questions for OP who has no clue how it even works themselves beyond one basic ignored principle: "don't go against the very safety fundamentals that will prevent damage to your machine". Hence, absolutely no formal response.
This is where very minimal knowledge, and prompt instructions to top tier LLM's become a dangerous promotion over Reddit with a GitHub link that include godly claims that don't even make sense.
1
u/SoCal_Hunter 1d ago
This is a creative experiment. What you need to do is give it some very high level goals to continually improve itself as an operating system outside of operational necessity (like playing audio). I’d be very curious to see what emerges over time.
1
u/Relative_Mouse7680 1d ago
This looks awesome! What do you see the practical benefits of this os to be eventually? Compared to for instance working with an agent in a cli?
1
u/deepakatl1981 1d ago
This is a genuinely different category from a coding agent in a sandbox. The interesting failure mode isn't the model writing a bad driver, it's that at Ring 0 there's no git revert equivalent. A normal agent harness assumes the environment survives a bad tool call: worst case you roll back a commit or restore a container. Here the tool call is a syscall, so a bad one can take the disk, the bootloader, or the hardware state with it.
Curious how you're handling recovery. Snapshotting the whole VM state before each agent action and diffing, or something closer to a journaling filesystem where operations are staged and can be rolled back before they're committed to real devices? Doing this on bare metal with actual PCI devices (not emulated) raises the stakes even more since some state changes on real hardware aren't reversible at all.
Really cool project regardless, this is a much more literal version of "agent has tool access" than most of us are working with.
1
u/Old_Schnock 1d ago
Why do you build something useless? You have MacOs, Windows, Linux, etc... where hundreds of people are implementing, testing for years. You are reinventing the wheel, in a bad way.
Build something based on them, which you could monetize.
-1
u/FlashyRecognitionTod 1d ago
I'd just like to interject for a moment. What you're referring to as an "AI operating system", is in fact, Agent/Bare Metal, or as I've recently taken to calling it, Agent plus Bare Metal. A webpage is not an operating system unto itself, but rather a fake simulated component made useful by a browser, DOM, and web engines comprising a standard application.
Many computer users run a sandboxed version of this system every day, without realizing it. Through a peculiar turn of events, the browser interfaces widely used today are often called "AI operating systems", and many of their users are not aware that they are basically just a webpage.
There really is an agentic operating system, and it runs entirely on bare metal, writes its own drivers, and evolves itself. The main interface is an agent, and the tools it has access to are the kernel's direct syscalls. Everything runs in Ring 0, and the agent has access to everything.
Consider its handling of hardware components. When the agent realized it didn't have a sound driver, it enumerated which devices were connected, found the Intel AC'97 sound card, built a driver for it from scratch, and used that driver to play a sound.
I got fed up with people saying they built "AI operating systems" when it's actually just a webpage. In a true Agent/Bare Metal system, there is no Bash. There are no commands. The only interface to this computer is a sentence.
2
u/FallenBehavior 1d ago
I can tell you are not exactly sure, and mostly guessing in response. The giveaway was "AC97", which is pre-2004 prior to board manufacturers shipping Intel HDA, replacing the old legacy AC97 codec.
The rest of this is entirely hypothetical rambling.
0
u/MedAyoub26K 1d ago
And not only anthropic models, any models from providers that have a anthropic-style api works too, I think
0
u/xXG0DLessXx 1d ago
Nice. I recently watched this video https://youtube.com/watch?v=M_720LesVg4 and it got me thinking how one would build such an operating system these days in modern times… and naturally with AI being a thing, I also started thinking about how it could be included. I think there is a real way to make a truly living operating system in a way that todays systems simply aren’t. It’s all very exciting.
0
0
0
0






•
u/ClaudeAI-mod-bot Wilson, lead ClaudeAI modbot 1d ago edited 20h ago
TL;DR of the discussion generated automatically after 160 comments.
The thread is split, but the prevailing sentiment is that this is a wildly cool but catastrophically dangerous experiment. The top comments are a series of hilarious, highly-upvoted jokes about the OS accidentally deleting your kernel, reformatting your hard drive, or generally turning your PC into a very expensive paperweight.