Building a Linux-based operating system from scratch has been on my bucket list for a long time. For years I kept putting it off—writing a userspace from the ground up is a massive time sink that can easily stretch into months or years. Recently, I finally decided to stop overthinking it and build thir to learn how everything works from the kernel up.
thir boots via UEFI into the Linux 6.12 kernel, and everything running above it is custom Rust code with no systemd, no X11, and no Wayland. At startup, a minimal Rust init process brings up networking via dhcp and launches den, a compositor that renders directly to the framebuffer. den manages side-by-side tiling panes, mouse input, clipboard, and acts as a security boundary by prompting for permission before apps can access the microphone or camera. Inside each pane, a login prompt drops you into nsh, a Rust shell with tab completion, command history, and built-in tools including a text editor, find, top, notes, calendar, contacts, clock, and a calculator.
The earliest builds of thir were under 10MB and only handled basic terminal commands. For v0.7.1, I integrated WebKit (compiled inside an Alpine/musl environment) alongside GStreamer and FFmpeg so the system can run a browser capable of playing YouTube, a music and video player, an image viewer, a voice recorder, and a camera app. Compiling WebKit from scratch took around 4 hours, and bundling these libraries grew the system image from 10MB to around 145MB. It is a bit bloated compared to where it started, but having a working browser and media stack makes it feel like a genuinely usable desktop.
I also added an optional BYOK AI agent right into the shell. Prefixing any command with ! (for example, ! make me a weather app or ! move notes into docs) lets thir show what it intends to do and wait for your approval before building or executing anything. Right now, generated apps run as Lua scripts, though I plan to move this to React-based apps with native API bindings in future updates. If you do not want AI at all, you can disable it right on the first login screen.
If I keep pushing future versions, I am considering building a lightweight package manager for it—though after waiting through 4-hour WebKit builds, I am taking it one step at a time. You can try it out by grabbing the pre-built VirtualBox OVA (arm64 for Apple Silicon or x86_64 for Windows, Linux, or Intel Mac) from the latest GitHub release, or by flashing the raw UEFI image to a USB stick to test on real hardware.
Check out the source code on GitHub at Adhishtanaka/thir. If you run into any bugs—especially on Windows VirtualBox setups, which I have not tested heavily yet—feel free to open an issue, and drop a star if you find the project interesting!
