sloth-daemon
Every Linux user has watched one runaway process eat the whole machine. The usual fix is to kill it. I wanted something gentler.
sloth-daemon watches CPU use through eBPF, asks a small local model running on Ollama what kind of process it is looking at, then slows it down with cgroup v2 instead of ending it. It’s written in Rust with aya.
Read the code