DEV Community

Cover image for How I built my own OS
CLOUDWERX LAB
CLOUDWERX LAB Subscriber

Posted on Edited on

How I built my own OS

CLOUDWERX OS, ayu-mirage theme, the mountain wallpaper and a fresh bar

I run my own operating system now. Not a fork with a new wallpaper and a different logo in the about screen. A whole desktop, with its own settings app, its own CLI, its own theme engine, its own bar plugins, its own boot animation, its own project manager and its own editor. It's called CLOUDWERX OS, I use it all day every day, and it's the most fun I've had with a computer since I was a kid.

This is how I got here. It's a long one, so grab a coffee. Or something stronger, it's your life.

It started with a BBS

I was 12 when I ran my own BBS in DOS. It was called Burning in Hell BBS, because I was 12 and that was the most metal name I could think of. It ran on Oblivion/2 (OBV/2 if you're cool), and yes, people actually dialed in. A phone line, a modem screaming at another modem, and some kid's cursed ANSI art. That was my first taste of running something that other people used, and I was hooked immediately.

After DOS came Windows 3.1, and I stayed on Windows basically forever. I got into computers right away and I've been obsessed ever since. I started working professionally at 19 as a bench tech, and then I worked my way through pretty much every corner of the industry. Refresh and imaging, support as an IT Analyst, field services, cloud migrations for a large financial firm, O365 support, and a pile of smaller, weirder roles that don't fit on a resume without a footnote.

Somewhere in there I tried Linux. Many, many times. I'd learn a little bash here, a little something there, get excited, and then hit the wall. Hardware wouldn't work, wifi wouldn't connect, some driver wanted a ritual sacrifice. Eventually I'd pull my hair out and run straight back to the sweet, sickly embrace of Bill Gates and Steve Ballmer.

The funny part is I always knew I was in a prison of my own choosing. A pretty limited one. I just had no idea how free the people on the other side actually were.

Three years ago, something changed

About 3 years ago I realized I could use ChatGPT to get through the growing pains. That was the missing piece. All the stuff that used to make me quit (the 2am "why is there a black screen" problems) suddenly had a patient teacher sitting next to me.

Here's the part I don't talk about much. I have severe ADD, and it did me no favors when it came to learning Linux. Or coding. Coding always felt like it was on another planet, because I could never get through a damn book. I'd read the same page four times and nothing would stick. I bought the books, I really did. They made nice shelf decorations.

What changed was having something I could just talk to. I could ask the dumb question, ask it again in a different way, get an answer that fit the exact thing I was staring at, and keep moving. That's how I learn, it turns out. In the last 3 years I've learned more than in the 20 before it, and I'm not exaggerating even a little.

The moment I knew it was working was when I updated my kernel and then couldn't log into my computer. Old me would've reinstalled Windows by sunrise. New me got dropped into a tty with ChatGPT in my ear and fixed the whole thing. I didn't quit. I never went back after that.

I landed on Linux Mint and loved it for the first few years. Then Claude Code came out and something clicked that I'm still thinking about. I could run agents in my terminal.

The terminal is really the key to this whole story, so let me explain why. You can do everything from it. Want to move your mouse cursor? Done. Edit a file? sed. Compare and combine files? Easy. Shell scripting, cron jobs, systemd timers? Now you're cooking with gas. It came slowly, and then one day it was just there: I'm free to tear things apart and rebuild them. The source is open and sitting out in the world. I can mix and match, redesign, and make things exactly how I want them.

Niri broke my brain (in a good way)

A few months ago I installed CachyOS and gave Niri a shot. Niri BLEW MY MIND. If you haven't seen it, it's a scrolling tiling Wayland compositor, and it was like someone read my mind about everything I hated in floating window managers and fixed all of it. Windows live on an infinite strip. You scroll. That's it. I've never wanted to go back.

Then I tried Quickshell, which lets you build your whole shell (bars, panels, launchers, lock screens) in QML, and boom. This was what I'd been looking for my whole life without knowing it.

Omarchy had just come out around then, and after poking at it for a bit I had the same thought I think DHH must've had. I can build my own desktop environment, exactly how I want it.

So I did.

What CLOUDWERX OS actually is

It's a keyboard first desktop on CachyOS, niri and Quickshell. I used the best models I could get to help me write the code, and I brought my own design and UX instincts, and it came together faster than I believed it could. I've shipped countless projects over the years and none of them has been as much fun as this one.

It's smart, it's sexy, it's capable, and most of all it's free.

Here's the tour.

The CLI is the heart

There's a Rust binary called cloudwerx and it's the stable API for the whole machine. Everything goes through it. Themes, wallpapers, volume, snapshots, tailscale, tasks, the project manager, the editor, the radio. Fifty something commands and every one of them has --json, so scripts and agents can drive the desktop the same way I do.

cloudwerx theme set tokyo-night
cloudwerx wallpaper next
cloudwerx fx set koi-pond
cloudwerx doctor
Enter fullscreen mode Exit fullscreen mode

That last one checks the entire install and tells you how to fix whatever it finds. I built it because I knew I'd break things at 1am. I was right.

The settings app covers everything

Holy shit, does this cover everything. It's a native GTK4 app with a left rail that groups every page into ten categories, and there's a page for basically every part of the machine. Lock screen, login screen, boot logo, desktop FX, keyboard shortcuts, app rules, startup apps, Tailscale, firewall, SSH and file sharing, disks, power, updates, and on and on. Search works with normal words, so typing "wifi" or "dark mode" lands you on the right page.

The Themes page in Settings

All of my servers sit behind Tailscale and get managed from here. My security camera, Noteism, the snipping tool, TaskPass, Hangar, a Herdr app that's been customized into something freakish. They all have a home in this one window.

Here's a few more pages, because I'm proud of them.

Bar settings

Keyboard shortcuts, with a check for conflicts

Tasks, which is cron with manners

Themes, and the part that still makes me grin

I have 69 themes. They don't just change the colors of my windows. One command re-renders dozens of apps at the same time: niri's focus ring, the terminal, GTK, Qt, the editor, the browsers, btop, fzf, the shell, all of it. Then the shell cross fades and a transition shader plays over the whole screen while it happens. You can pick Ink bloom, Melt, Shatter, Scanline, Prism, whatever, or let it roll the dice. It can even start the effect from wherever you clicked.

Here's the theme switcher running through a few of them. This is a real recording of my real desktop, with a terminal and the settings app open so you can watch everything change at once.

Most of the GIFs in this post are a lot slower then reality, just a warning.

Theme switching

And it can build a theme out of a wallpaper. It grabs the prominent colors from the image, makes a full palette, and applies it everywhere right after the transition. It works on video wallpapers too. It takes the first frame, pulls the colors from that, and builds the whole theme around it. I thought that was genius when I came up with it and I still do.

The theme switcher panel

Wallpapers get the same treatment

Same shader engine, same transitions, a switcher panel along the bottom of the screen. Wave, drop, curtain, bloom and a lot more. Here it is cycling through a few.

Wallpaper switching

The wallpaper picker

Desktop FX, aka the part I should've been doing something productive instead of building

I have shaders playing on my desktop, between the wallpaper and my windows. There are 34 of them. Aurora, koi pond, meteor showers, rain on glass, a synthwave horizon. They stop drawing completely when a window covers the screen, so they don't cook the battery. Some of them react to music. Oh yeah and they double as screensavers too.

Desktop FX

Koi pond

Synth horizon

And then there's Littlewick.

I made an entire pixel art village simulation that runs on my desktop. It's a little town called Applebrook with a clock tower, a bakery, a school, a clinic, an inn, 36 folks wandering around, and a Christmas tree in the middle of the square (it is Nov 27th afterall!). It's synced to my computer's time and date and to my weather widget, so when it rains here, it rains there. Today was Thanksgiving and the whole town was celebrating with a feast.

I realize I built a tiny town to live behind my terminal. I'm fine with it. Don't @ me.

Littlewick

There are also audio reactive effects. Spectrograms and skylines that dance to whatever's playing, and what's playing is usually the Radio panel, my own internet radio player. It searches hundreds of thousands of stations, and you can sort them, search them and like them.

Radio

The boot logo

Even the boot screen is mine. It's a Plymouth theme, built from a page in Settings, with a comet of light that runs around the ring, goes behind the cloud and comes out the other side, plus a breathing halo and a shimmer. When startup finishes there's a finale flare. These are the actual frames the system plays on boot.

The animated boot logo

The login screen and the lock screen are customized too.

Lock screen settings

And if you type a wrong password, my camera takes a picture of whoever did it so I can look at their face later. It's off by default, because I'm not a monster, but I turned it on. I keep the photos. For science.

Bar plugins are one of my favorite things

I took what Omarchy did and ran with it. The bar is built out of plugins, and so is basically everything else. Each island, each panel, each picker, each background service. I've made dozens of my own now, and they connect everything together. There's a launcher that searches apps, files, the words inside files and even files by meaning. There's a clipboard history, a time panel, a planner with a Pomodoro, a tray, a sysmon, and a couple of islands I'm not totally sure I'll ever explain to anyone.

Omarchy plugins run on it too, unmodified.

Plugins

The launcher

Sixteen bar styles

The bar isn't one look. It has sixteen styles and you flip between them live with Super+Alt+Shift+B or cloudwerx bar style next. Floating islands, one floating panel, a full width edge, a molded edge where the screen corners curve in under it, corner pods, hanging tabs, a liquid band that swells into each group of islands, a screen frame, powerline segments, minimal, capsules, a hanging bar, scrim, zone pills, a compact pill like a dynamic island, and an outline. Here's the whole lineup, and the recording cycles through them.

Cycling the bar styles

Panels that earn their spot

Every island on the bar can open a panel, and I went a little overboard on a few of them.

The clock is a good example. Click it and you get a big readout, a month calendar with your events and reminders, timers with presets and progress rings, alarms with repeat days and a stopwatch with laps. The rings keep running and still go off with Snooze and Stop buttons even when the panel is closed. Tasks from the planner show up in there too, so the calendar is the one place I look to see what the rest of my week wants from me.

The time panel

Timers, with a Pomodoro running

The control center holds the volume, mic and brightness sliders, the toggles (Wi-Fi, Bluetooth, focus, night light, power profile, caffeine, tablet mode, recording, Tailscale and exit nodes), the weather card with an hourly strip, and the notifications at the bottom. Notifications are my own daemon, so there's no second one fighting it, and there's a Do Not Disturb you can flip from the bell with a right click.

I blurred my face, my Wi-Fi name, my Tailscale IP and my city in this one. The notifications are test ones I fired off with notify-send, because I'm not putting my real messages in a blog post.

The control center and notifications

Thirty five ways to open a panel

Panels don't just appear. Every panel in the shell (clock, control center, launcher, agents, radio, all of it) opens with the same animation engine, and there are 35 presets to choose from. Smooth glide is the original and my default. Then there's spring, liquid pour where the panel stretches out of the island you clicked, flap, drop and bounce, jelly, cinematic, a bunch of Material 3 ones, and some I borrowed ideas for from other Quickshell shells I was reading through. Super+Alt+Shift+M cycles them live, and Settings › Panels & Motion has a gallery where every card plays on hover so you can see the real motion before you pick it. There's an editor for your own too, with curve plots (expo, cubic, back, elastic, bounce).

Here are ten of them opening the clock panel, one after another.

Panel animation presets

Window shaders in niri

This one makes me laugh every time. niri lets you write a GLSL shader for how a window opens and closes, so I bundled a whole shelf of them. There's the niri shader collection (fades, slides, scales, ribbons, masks, noise, burn, honeycomb) and 13 Window FX shaders: ember, dissolve, pixel, shatter, melt, glitch, tube off, snow, scan, code rain, swirl, squares and blinds. Pick them in Settings › Niri Compositor › Individual animations, separately for open and close. If a shader fails to compile, niri falls back to the default and tells you in the journal, so you can't brick your windows.

Mine is code rain. Here are a few of the others opening and closing a terminal.

Window open and close shaders

Search, and why I'm a little obsessed with it

This is the feature I'd miss most if you took it away. You hit Super+Space, start typing, and it finds a file anywhere on the computer in a few milliseconds. By name, by the words inside it, or by what it's about even if you can't remember a single word from it.

Right now my machine has 13,973,978 items in the name index, 40,762 documents with their text indexed, and 477,799 passages from 36,818 files turned into vectors for meaning search. The screenshot below shows it answering a name search for /changelog in 11 ms.

Searching names, with a preview pane

You switch modes with a prefix, or with the tabs under the search box.

Type this You get
invoice apps and commands first, then the best file matches
/invoice every file and folder named like it, ranked
/~/Code/ browse a folder, or complete names inside it
#tax deduction documents, notes, PDFs and code containing those words
~notes about moving house documents about it, even with totally different words

There's a filter syntax too, and it stacks with everything. ext:pdf size:>10mb mod:week in:~/Documents does exactly what you think it does. Name matching is fuzzy, so rtrn finds return-2025.pdf.

How it actually works

There's a Rust daemon called cloudwerx-searchd running as a user service. No root, no background cron job. It keeps three separate indexes, and the launcher, the CLI and the settings page all talk to it over a unix socket with JSON lines.

launcher / cloudwerx search / settings page
                  |
         cloudwerx-search.sock (0600)
                  |
          cloudwerx-searchd (Rust)
        /         |            \
  names (RAM)   text (tantivy)   meaning (vectors)
        \         |            /
              inotify watches
Enter fullscreen mode Exit fullscreen mode

Names live in a compact in-memory table, 24 bytes plus the name for every file and folder on the machine. It's the same idea as Everything on Windows. A full walk of the disk runs in parallel at idle priority. Each search scores every entry with nucleo (the fuzzy matcher from the Helix editor) across all cores, after a 64 bit character set test throws out most names in a single instruction. That's how you get single digit milliseconds across millions of entries. My home folder updates live through inotify, and the rest rescans on a schedule. I deliberately didn't use fanotify, because it would watch the whole disk but needs root, and I'm not putting a root daemon on my search box.

Words inside files go through tantivy, which is Lucene style BM25. It reads text, Markdown, HTML, CSV, source code, PDFs (through pdftotext) and Word, Excel, PowerPoint, OpenDocument and EPUB files by cracking open their zipped XML. I build the queries by hand so typing feels instant. Every word also matches the common indexed words it starts, so keybind finds keybinds, phrases match exactly, a hit in the file name counts double, and the snippets highlight what matched.

Meaning is my favorite. Documents get split into passages of about 700 characters, and each passage is embedded with Model2Vec static embeddings (potion-retrieval-32M, the best static retrieval model I could find). A static model turns each token into a vector with a table lookup and averages them. That's hundreds of times faster than running a transformer, with no GPU and no model server, so a whole home folder gets embedded in about a minute. The vectors are stored as 8 bit integers and searched exhaustively in parallel, which is exact and takes around 5 ms. Junk like hashes, base64 and minified code gets skipped before it ever gets embedded.

The # search mixes the text and meaning rankings with reciprocal rank fusion. A document that matches your words and your intent floats to the top, and a meaning match can surface a file that uses none of your words at all. Meaning matches only join in when they're strong (similarity of at least 0.45 and close to the best hit), because static embeddings will always hand you some nearest neighbor, even when the honest answer is "nothing".

Searching inside files, with highlighted matches

Searching by meaning

That second one is me typing "how do I make the desktop look different", and getting results from files that don't contain those words. The footer says it found it by meaning. (The first word search in the screenshot above it shows 447 ms because it was cold. Warm it's usually somewhere between 3 and 15 ms.)

Indexing never gets in the way of work. The threads run at nice 15 with the idle I/O class, the first content index does the newest files first and commits every 20 seconds, and a manifest of modification times means a restart only re-reads what changed. Everything stays local. Nothing leaves the machine.

And once you find the file, it's not a dead end. Enter opens it, Ctrl+Enter shows it in the file manager, Alt+Enter opens it in Noteism, Ctrl+T drops you into a terminal in its folder, and Ctrl+K opens every other action. Files you open from here rank higher next time.

My apps all grow up here

This is the part that's changed how I work. CLOUDWERX OS is now my breeding ground. Every new project, app or idea I have gets grown inside it, with its own plugin on the bar and its own page in settings, hooked up to everything else.

Noteism is the code and text editor I've been building for a year and a half. Picture VS Code and Obsidian having a very good time together. It's fast, it's pretty, it's agentic, and it renders markdown in a way where you can type straight into code blocks, like Typora does.

Noteism

Noteism with nothing open

That screenshot is Noteism with nothing open, so you can see the default screen. It's version 1.8.3 right now, and we've been updating the hell out of it lately. I wrote this whole post in it, by the way. Every word, in live preview, with the images dropped in as I went.

The big new thing is a complete AI panel. It's off until you turn it on, and when it's off there's no panel, no menu, no status item and no network calls. When it's on, Ctrl+Shift+A opens a chat beside your notes that can actually do things. It reads and searches your notes and files, looks at the note you're in and your selection, edits and rewrites, creates notes, opens files, checks and draws Mermaid diagrams, looks at pictures and loads skills. Every change it makes shows up as a line diff you accept or reject first (Ctrl+Enter to accept), and Ctrl+Z undoes it either way. You add context with @ for notes, files, folders and the selection, / for quick prompts and skills, and chats are saved, named, searchable and come back when you restart.

Then there's Tab completion, and yes, I mean the Cursor kind. Grey text suggests the rest of what you're writing, and a marked change suggests the next edit nearby, like a rename you started or a typo a few lines down. Tab takes it, Ctrl+Right takes one word, Esc dismisses it.

It's all bring your own accounts. Anthropic, OpenAI and Gemini keys, any OpenAI compatible server (Ollama, LM Studio, vLLM, OpenRouter), your Claude Code sign in, and your ChatGPT sign in through Codex. Keys live in the system keyring, encrypted, and never reach the window or a chat. Encrypted notes are never sent to AI at all. A few other things I love: it counts tokens live in the status bar, it can make 18 kinds of Mermaid diagram from a selection, and it has a "changed on disk" bar so a Git pull or a sync tool never silently stomps your text.

It also ships as an AppImage now, so it runs on almost any Linux, not just mine. It is coming soon at noteism.app.

Herdr is where all my agents live. I run all my agents and sub-agents in there, and with my own handoff skills I can drop a TASK.md on an agent and it'll go assign sub-agents to knock out every task, orchestrating the whole thing, picking the engine, the model and the thinking level either perfectly or exactly how I pre-set it. I've got a library of 125 skills that agents load on demand, so they stop making things up about APIs.

Herdr settings

Some details, because I'm a nerd about it. Herdr has two halves. hc (herdr-core) is a small server that runs terminals and agents and keeps them alive when the window closes. herdr-app is the desktop window. It's drawn with GPUI, the GPU toolkit from the Zed editor, so there's no web view and no Electron, and mods are JavaScript written against gpui-kit. Agents report whether they're working, blocked, idle or done with an escape sequence (OSC 7501), and the app turns that into badges and toasts in the sidebar. Everything is files in ~/.config/herdr-app. Save one and the window reloads it in about a second.

My layout on top of it is called cloudwerx-herdr. It started life as someone else's layout (Bettr, by dissimulate) and I've taken it a long way. It has usage cards for Claude Code, Codex, Antigravity and OpenCode with a meter for each limit window and the time left until it resets, CPU, GPU and RAM, an agent activity panel with running sub-agents, a context and cache breakdown, and a Tasks panel that renders the TASK.md of whatever project you're in and updates live while an agent edits it. The theme gets rewritten from my desktop theme every time I change it, so Herdr follows along. And the bar has an island for it, with jumps straight to a pane. I am a HUGE fan of the new herdr-app, it's kind of genius. Get it at http://herdr.dev

Being able to see every agent, what it's doing, and how much of its limit it has left, all in one window, changed how I work. I love this thing.

I also wrote TaskPass for it, a small native editor (Rust and GPUI) for one job: writing long careful TASK.md files, where every task gets worked by a brand new agent session with its own engine, model, autonomy and effort.

Hangar is where all my projects get managed. It's a CLI, a web UI and a desktop app that all sync together, and I mean deliciously. Projects go in there, tasks get made with a quick capture box, agents can add their own, and it can dump a TASK.md out to hand to an agent. Rust and PostgreSQL underneath.

Hangar overview

A project board

The calendar

Task Manager is a new one I wrote in Rust with GPUI. Not a port, not a wrapper. It's got per core CPU graphs, GPU, disks, services, startup items and a flight recorder.

Task Manager

Snip is my screenshot and annotation tool, and it's easily one of the most useful things on the machine. Hit Print and the screen freezes. The freeze happens before the overlay opens, so menus, tooltips and hover states end up in the picture, and the overlay itself can never be in the shot. Drag a rectangle, or click a window to snap to it. There's a magnifier with the pixel colors while you aim, a size label in real pixels, and an action bar with Copy, Save, Edit, Pin and Text.

The Snip menu

The capture overlay

It has a mode for everything. Region, window, this screen, all screens in one wide picture, repeat the last region, a timer (3, 5 or 10 seconds with a countdown ring, so you can open a menu first), a color picker that copies #rrggbb, and a "copy text from the screen" mode that runs OCR with tesseract over whatever you drag across. It also refuses to capture anything while the session is locked, which is the kind of thing you only think about once.

Then there's the editor, and this is where it gets ridiculous. Pen, highlighter, lines, arrows (filled, open, double, dashed), rectangles, ellipses, text, numbered step badges with a Renumber button, blur, pixelate, spotlight, crop with aspect locks, an eraser and a color picker. The highlighter multiplies on light pages and screens on dark ones so text stays readable. Blur and pixelate actually redact what's under the box, which is handy when you're about to post a screenshot of the control center and your Wi-Fi name is sitting right there.

Here's one I made in about ten seconds. That arrow, the label, the two step numbers and the box are all separate objects.

The Snip editor

A few more things I like. Beautify wraps the picture in a frame with padding, rounded corners and a soft shadow, using your theme colors. Pin floats a screenshot over everything in a borderless window, and you can scroll to resize it. When you save a picture that has annotations, it also stores the untouched original and every annotation as an object, so you can open the file later and move an arrow that you got wrong. The whole thing is scriptable too:

cloudwerx snip region --action edit
cloudwerx snip window --focused
cloudwerx snip ocr-file receipt.png --copy
Enter fullscreen mode Exit fullscreen mode

Every mode has a hotkey, a bar island, a menu and a page in Settings.

Snip settings

Voice dictation is the one that makes people stop and stare. I hit Super+Alt+Space, talk, hit it again, and the words get typed wherever my cursor is. It runs on Voxtype, which is Whisper running on my own machine. No cloud, no account, nothing leaves the laptop.

The part I'm proud of is the bar. While it's recording, an island shows up in the middle of the bottom bar with a mic that breathes with your voice, a live waveform of what the microphone is actually hearing, and a timer. The waveform is drawn from Voxtype's own audio stream, colored with my theme's accents, and it goes red if you clip. When you stop, it turns amber and ripples while the words get transcribed. There's a bars style and a ribbon style, and everything about it is configurable.

The voice island on the bar

Here's a real take. I'm talking into the mic, the waveform is moving on the bar, and the text shows up in a terminal when I'm done. That's 10 seconds of talking, and you can watch the words get typed out right after the mic stops. It transcribes on the CPU with the small base.en model, so it takes a few seconds to finish.

Voice dictation, the bar and the result

It's more than a toggle, too. It supports Whisper, Parakeet, Moonshine, SenseVoice and a few other engines, with model downloads from Settings. There's spoken punctuation, filler word removal, word replacements for the stuff it always gets wrong, and a "submit" command that presses Enter for you. It pauses my music while I talk, and it has a meeting mode with speakers and past meetings. I even had to fix the volume OSD, because a Bluetooth headset flips into headset mode when you record and the volume jumped around like a toddler on a trampoline.

cloudwerx voice toggle
cloudwerx voice replace set "cloud works" "CLOUDWERX"
cloudwerx voice meeting start
Enter fullscreen mode Exit fullscreen mode

The updater and the rest work the same way. Tiny focused things that all talk to each other.

Software updates

The tools I built so agents can work on my machine

A funny thing happened while I was building all of this. I kept running into the same three problems whenever an agent worked on the desktop, so I fixed each one properly and put them out in the open. They're all CLOUDWERX LAB projects, they're all small Rust binaries, and all three are public.

Ghosthand: a real hand on a real pointer

github.com/CLOUDWERX-DEV/Ghosthand

I got tired of agents that could write an entire UI but couldn't right click a menu on it. A screenshot tells you what's there. It can't tell you what happens when you hover or drag. So Ghosthand gives an agent my actual mouse and keyboard. Click, double click, right click, drag, scroll, hover, type text, press shortcuts, then take a screenshot and see what happened.

How it works is simple. It creates a virtual absolute pointer through /dev/uinput, so the display server just sees a normal mouse. That means it isn't tied to one compositor. No portals, no plugins. It reads my real keyboard layout so it types what it should, and focus tells the agent which window will get the keys before it types.

The part I care about most is the gate. Before anything moves or types, a card shows up on my screen saying who's asking, why, and exactly what it's about to type. Nothing happens until I click Allow. No answer counts as a no. While an agent is driving, a little "Agent Control" tag and a ring follow the cursor, so I always know it isn't me. One key takes the pointer back at any time, and it refuses to run while the session is locked. For a long testing job I approve one session instead of a card per click.

It's one small Rust binary, with a background daemon keeping the virtual devices alive so a run starts in milliseconds. I've tested it daily on niri. The README is honest that Hyprland, sway, X11, KDE and GNOME are parser tested but not driven live by me, so bug reports are welcome.

Here's the prompt. This is what I see before an agent touches anything. It says who's asking, why, how long I've got to answer, and exactly what it's about to type, word for word. Then Deny, Allow for 10 minutes, or Allow. If I don't answer, it counts as a no.

The Ghosthand allow card

And this is a real recording of it working. The card pops up, I click Allow for 10 minutes, and from there every click, scroll and keystroke is the agent. It jumps around Settings pages, types into the search box, and opens the launcher to search for a file. I didn't touch anything after clicking Allow.

Ghosthand driving the desktop

While an agent is driving, you can't mistake it for yourself. There's a ring around the pointer and an Agent Control tag that follow the cursor everywhere. Here's a close up, with it gliding across the desktop and clicking.

The Agent Control ring and tag, zoomed in

agent-sudo: root without a password, with a seatbelt

github.com/CLOUDWERX-DEV/agent-sudo

Regular sudo wants a password from a terminal. A script or an agent can't type one, so it hangs forever, or you do the dangerous thing and put NOPASSWD: ALL in your sudoers file and now one bad command takes the whole machine with it. An empty variable in rm -rf "$DIR/"* is all it takes.

agent-sudo (or asudo for short) sits in the middle. It runs the command as root with no prompt, but first it reads the command against ten named guardrails that refuse the catastrophic stuff: rm -rf /, mkfs on a disk, dd onto /dev/sda, editing /etc/shadow, fork bombs. It reads the command, it doesn't just regex a string, so env, nice, timeout, sh -c "...", $(...), redirections, .. and symlinks don't hide anything. Every run goes into an audit log at /var/log/agent-sudo.log with when, who, where and how it ended, and I get a desktop notification each time.

agent-sudo pacman -S --noconfirm ripgrep
agent-sudo --explain dd if=x of=/dev/sda    # which rule fires, and why
agent-sudo --logs 10                        # what ran lately
Enter fullscreen mode Exit fullscreen mode

I want to be straight about what it is. It's a seatbelt, not a security boundary. It stops mistakes and careless commands. It can't stop something that's actively trying to get around it, because anything running as root can do anything, and the README says so in a big warning box. The installer checks the sudoers rule with visudo before it touches anything, and it's only two dependencies.

skills-cli: stop paying for skills you aren't using

github.com/CLOUDWERX-DEV/skills-cli

Skills are great, but the usual way of using them doesn't scale. Put a hundred of them where your agent looks and every single conversation starts by paying for the name and description of all hundred, whether you need them or not. The agent also gets worse at picking the right one, and one careless read of a big skill can dump a couple hundred thousand tokens of docs into the context.

So I flipped it around. The library lives on disk, and the agent gets one tiny instruction. From there it searches, loads and fetches only what it needs.

skills search "pdf merge"
skills load pdf-tools
skills ref get pdf-tools merge        # one reference page, not the whole folder
skills run pdf-tools split.py in.pdf  # only the output comes back
Enter fullscreen mode Exit fullscreen mode

My own library is 130 skills in 3,377 files, about 14.8 million tokens. The instructions alone are around 400 thousand. Listing every one of them takes about 4 ms. And the agent only ever sees what it asked for, with a 30,000 token guard so a slip can't flood the context. It also makes new skills (skills new), installs them from git, validates them, and can pin one as a slash command. skills skill prints a guide built into the binary, so an agent can learn the whole tool with one command.

My laptop is also a security camera

I can watch my laptop's camera and listen to its microphone from my phone, from anywhere, and nothing is exposed to the internet. It works over Tailscale only. There's nothing to forward on the router, and the server listens only on the machine's Tailscale addresses and refuses anything outside the tailnet.

You turn it on in Settings › Security Camera, open the address on your phone, and add it to the home screen for a full screen app. The camera only opens when the first viewer arrives and closes about ten seconds after the last one leaves, so it's off while nobody's watching. Up to eight phones at once. By default only devices signed in to my own Tailscale account are allowed, checked with tailscale whois, so someone else on a shared tailnet gets refused and logged. And the camera's activity light is always on while it streams. It's never hidden or faked, which I think is the right call.

Tailscale shows up everywhere else too. Settings › Tailscale handles devices, exit nodes, SSH and file sharing, and in Files you can right click a file and choose Send over Tailscale to Taildrop it to any of my devices.

Keeping it all alive

You should see the size of the CHANGELOG for cloudwerx-os. It's pushing 3,000 lines, and it's come a REAL long way. I work on it every day.

From any of my many connected devices I can push a new PR and sync it onto any of my hardware with a single click. I wrote an updater for the whole OS that handles the AUR packages, the kernel and everything else, and it takes a snapshot before it touches anything, so I can roll back when (not if) I mess something up.

I also have a Telegram bot, and a Tasks page that's basically cron with a user interface. I can set up a job that makes Claude Code go hunt for the coolest open source GitHub projects from the last week, formats a nice rich message and sends it to me on Telegram. Every week, completely automated. I wake up on Monday to a newsletter that my computer wrote for me.

I have a similar system on my NAS called JONAS (Joint Operations NAS Admin System). That's a story for another day. Let's just say Synology wishes it had this many features.

Things I've built in the last three years

CLOUDWERX OS isn't the only thing that came out of the last 3 years. My portfolio at cloudwerxlab.com is a descent through a mycelium network with 15 projects in it, and a lot of them run on my NAS behind Cloudflare tunnels. A few I'm especially fond of:

  • X-Tracks (x-tracks.app) is a self-hosted music archive. Paste a Spotify or YouTube Music link and it archives the tracks as MP3, FLAC, Opus or M4A with real metadata and artwork. No Spotify login or developer key. It has 29 visualizers, 20 of them audio reactive (way nicer than Winamp ever was), and you can write your own GLSL shaders in a Visualization Studio. It also has DJ X, an AI agent. Give it one prompt and it researches the web, searches YouTube Music and Spotify, downloads the music, builds you a playlist with generated artwork and starts playing it. It can even write new visualizers. It's still in development. X-Tracks library
  • Terminaut (terminaut.app) is mission control for every server you run. Start and stop them in batches, watch their output stream live, and drop into a real interactive shell.
  • Pretty Hooker (Docker Hub) turns webhooks into desktop notifications for your homelab. Point Uptime Kuma, Grafana, GitHub, Sonarr, Home Assistant or a plain curl at it.
  • R2Up (r2up.cloudwerxlab.com) uploads past Cloudflare's 300 MB dashboard limit by chunking files into S3 multipart uploads, all in your browser.
  • CapGen (capgen.cloudwerxlab.com) builds, cleans and captions image datasets for LoRA training.
  • SugarStem separates stems locally, so your audio never leaves your computer. Cinnaroll is a theme browser for Linux Mint. TaskPunk is a markdown first task manager. And there's a whole desktop that runs in a browser tab, with a tiny AI unicorn who can redecorate it.

I run a pile of self hosted goodies on the homelab too, Immich among them, plus the NAS agent I keep teasing.

So, why do this?

Because I could. That's the real answer, and it's the answer that would've made 12-year old me, running a BBS on a phone line, lose his mind. I spent decades inside systems somebody else decided were good enough. Then it turned out I could just... build the thing. The tools got good enough, and so did I.

My OS is everything I've ever wanted from a computer. It does what I say, it looks how I want, it tells me when it's broken, and it never once asked me to sign into a Microsoft account to look at a calculator.

Stories for another day

I've got a lot more where this came from, and I plan to write them all up here. A few teasers, in no particular order:

  • How I run ablated open weights models on a custom VPS for the times I want to do things the frontier labs won't let me. (Shh.)
  • How I got a root shell on my DJI drone, which let me fly it literally inside the clouds, and very nearly visit outer space.
  • My custom astrophotography rig, built around a hacked DSLR.
  • The MAME cabinet I built from a classic Mortal Kombat II arcade machine, with custom vinyl side art, a custom desktop living inside it running a custom frontend, and a totally customized control panel.
  • JONAS, the admin agent that runs my NAS. Synology wishes.
  • What I got up to in AOL chatrooms in the early 2000s, with classic remote access tools disguised as images, and the very bad people it was aimed at. Maybe I'll tell that one with a drink in my hand.

My wife, Sizzlebop, builds a ton of her own projects too, and I get to live next to all of it. Go follow her on GitHub and on dev.to. You won't regret it.

I'll write more of these. There's plenty left to tell, like how the theme engine works, how the plugin system works and how I run a small army of agents without losing my mind. If any of this sounds like your kind of fun, say hi. I'm genuinely curious what you'd build.

Ty
CLOUDWERX LAB, Digital Food for the Analog Soul
cloudwerxlab.com · github.com/CLOUDWERX-DEV

PS: Yes, CLOUDWERX OS is coming out soon. Watch this space.

Top comments (1)

Collapse
 
sizzlebop profile image
Jessica Doering •

❤️❤️❤️