Windows loves to treat power users like guests on their own hardware. Despite running an i7-12700K and 32GB of DDR5, I was sick of locked UI threads, disappearing taskbar icons, and silent disk-space bloating.
So, I spent the last few hours building WinSentry—a lightweight, native Windows daemon built in Rust to force the OS to be clean, stable, and responsive.
🛠 What it does:
- The 300ms UI Panic Button: A low-level global keyboard hook (Ctrl + Alt + W) that forcefully kills explorer.exe, deletes the corrupted IconCache.db file while the thread is dead, and instantly spawns a fresh shell instance. Frozen taskbars fixed instantly.
- Automated System Debloater: A highly optimized background runner that wakes up every 30 minutes to sweep system-generated trash paths (%TEMP%, crash dumps) without locking active files.
- Safe Developer Staging Queue: An on-demand CLI engine (winsentry --scan) that recursively walks user-specified workspace paths to look for massive black holes like node_modules and pycache. It stages them in a local queue.json file so you can safely review and approve the purge via winsentry --purge.
- Centralized Config: Everything is fully customizable via %APPDATA%/WinSentry/config.toml.
⚡ Performance Profiles (Zero Bloat):
Because this was built in Rust to combat OS sluggishness, it has a completely invisible footprint:
- Idle: 0% CPU | 2.4MB RAM (Sits quietly listening for the hotkey message loop).
- Peak Scan/Discovery Phase: Max 10% CPU | 5MB RAM (Even while recursively scanning thousands of developer subdirectories).
Built with embedded UAC manifest integration so it automatically handles the administrative privileges required to clean up system directories right out of the box.
Time to stop waiting for the OS.