serveroshq/daemon ? reverse-engineered prompt

Reverse engineered prompt

Build me the ServerOS daemon, a small Rust agent that runs on a Linux server and connects out to a central panel.

I want it to install as a single static binary, enroll with a token, and keep reconnecting on its own over TLS. It should be able to look at what is already running on the machine, manage services and Docker, handle updates, backups, firewall changes, and basic health checks, but only through a fixed set of allowed actions, not a remote shell. Every privileged action should be logged in plain English before it happens.

It should also support a read only inventory mode, a status and doctor command, safe uninstall and disconnect flows, and a way to adopt existing apps without restarting them. Please make the code clean and modular, with tests for the parsing and safety rules, and keep the dangerous stuff tightly controlled. If you need current crate or system docs, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab