But seriously, it does really bug me on principle that DropBox should use over half a GB simply because it uses Chromium, even when nothing is visible.
OP here. this is a cursed project lol, but i wanted to see: What happens if you replace the OS scheduler with an LLM?
With Groq speed (Llama 3 @ 800t/s), inference is finally fast enough to be in the system loop.
i built this TUI to monitor my process tree. instead of just showing CPU %, it checks the context (parent process, disk I/O) to decide if a process is compiling code or bloatware. It roasts, throttles, or kills based on that.
Its my experiment in "Intelligent Kernels" how they would be. i used Delta Caching to keep overhead low.
oh absolutely. burning a coal plant to decide if i should close discord is peak 2025 energy.
strictly speaking, using the local model (Ollama) is 'free' in terms of watts since my laptop is on anyway, but yeah, if the inefficiency is the art, I'm the artist.
you are technically right (the best kind of right). i am running in userspace, so i cant replace the actual thread scheduling logic in Ring 0 without writing a driver and BSODing my machine.
think of this more as a High-Level Governor. The NTOS scheduler decides which thread runs next, but this LLM decides if that process deserves to exist at all.
basically; NTOS tries to be fair to every process. BrainKernel overrides that fairness with judgment. if i suspend a process, i have effectively vetoed the scheduler.
You're underselling this as a process manager, it could also be a productivity tool with some prompt changes; Determine procrastination apps: games, non-professional chat, video streaming and kill it.
Great point. In a real kernel, non determinism is a bug. Here, it's a feature (or at least, a known hazard).
To answer your question: There is no Ctrl+Z for SIGKILL. Once the LLM decides to kill a process, it's gone.
My reasoning for 'rollback' is actually latency. I built in a 'Roasting Phase' where the agent mocks the process for a few seconds before executing the kill. That delay acts as an optimistic lock it gives me a window to veto the decision if I see it targeting something critical.
If I'm AFK and it kills my IDE? I treat that as the system telling me to touch grass.
devmor|2 months ago
I wouldn't call it replacing the scheduler though - more that you've made a scheduler manager.
moffkalast|1 month ago
ImPrajyoth|2 months ago
Scheduler Manager is definitely the more accurate term. Im just the middleman between the chaos and the kernel.
DougN7|2 months ago
But seriously, it does really bug me on principle that DropBox should use over half a GB simply because it uses Chromium, even when nothing is visible.
ImPrajyoth|2 months ago
With Groq speed (Llama 3 @ 800t/s), inference is finally fast enough to be in the system loop.
i built this TUI to monitor my process tree. instead of just showing CPU %, it checks the context (parent process, disk I/O) to decide if a process is compiling code or bloatware. It roasts, throttles, or kills based on that.
Its my experiment in "Intelligent Kernels" how they would be. i used Delta Caching to keep overhead low.
2001zhaozhao|2 months ago
ImPrajyoth|2 months ago
nubinetwork|1 month ago
p_ing|2 months ago
ImPrajyoth|2 months ago
think of this more as a High-Level Governor. The NTOS scheduler decides which thread runs next, but this LLM decides if that process deserves to exist at all.
basically; NTOS tries to be fair to every process. BrainKernel overrides that fairness with judgment. if i suspend a process, i have effectively vetoed the scheduler.
nijave|1 month ago
gillesjacobs|1 month ago
ImPrajyoth|1 month ago
A 'Focus Mode' that doesn't just block URLs but literally murders the process if I open Steam or Civilization VI.
I could probably add a --mode strict flag that swaps the system prompt to be a ruthless productivity coach. 'Oh, you opened Discord? Roast and Kill.'
Thanks for the idea mate!
Someone|1 month ago
lorenzohess|1 month ago
solarkraft|1 month ago
1970-01-01|1 month ago
brcmthrowaway|1 month ago
nialv7|1 month ago
effnorwood|1 month ago
pasisu|1 month ago
Agent_Builder|1 month ago
[deleted]
ImPrajyoth|1 month ago
If I'm AFK and it kills my IDE? I treat that as the system telling me to touch grass.
CSOAI_Official|1 month ago
[deleted]