You are browsing as a guest. Sign up (or log in) to start making projects!

Sgattix

@Sgattix

Joined June 1st, 2026

  • 4Devlogs
  • 3Projects
  • 1Ships
  • 15Votes
Ship Pending review

Shipped: WinSentry v1.0 (Rust)
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.

Try project → See source code →
Open comments for this post

3h 44m 15s logged

It is finally done. After 3 hours and 40 minutes, WinSentry is complete, fully optimized, and running flawlessly. The final block of development focused entirely on the user-controlled workspace clearing engine and rigorous resource profiling.

The Final Piece: The Safe Developer Staging Queue

The automated system janitor is great for temp folders, but developer bloat like node_modules or pycache requires absolute user safety.

  • How it works: I implemented a high-speed, sequential directory traversal engine. When triggered on-demand via the CLI (winsentry –scan), the tool walks through user-specified workspace paths looking for target directory names defined in the config.
  • The Guardrail: Instead of deleting anything, the tool calculates the total directory size and flushes the data to a local state file inside %APPDATA%/WinSentry/queue.json.
  • The Interactive Review: The user is notified via the terminal that bloat has been discovered. Running winsentry –purge loads the JSON queue and gives the user an interactive, explicit review prompt to check boxes or type all to confirm deletion. Absolute control, zero risk of accidental data loss.

Production Performance Benchmarks

Since this tool was built to fight Windows sluggishness, it could not afford to be heavy. Running a fast compiled systems language like Rust paid off massively. Here are the real-world metrics monitored via Windows Task Manager:

  • Idle Footprint: 0% CPU and 0.9MB of RAM. It sits completely dormant in the background, listening for the global hotkey message loop and waiting for the 30-minute system interval.
  • Peak Scan & Discovery Footprint: Maximum 10% CPU usage and a peak of 5MB of RAM while actively traversing thousands of subdirectories and calculating file sizes during a deep disk scan.

On an NVMe and DDR5 setup, the scan completes in seconds, meaning the system never hitches and the user never has to wait for the utility.

READY TO SHIP!

It is finally done. After 3 hours and 40 minutes, WinSentry is complete, fully optimized, and running flawlessly. The final block of development focused entirely on the user-controlled workspace clearing engine and rigorous resource profiling.

The Final Piece: The Safe Developer Staging Queue

The automated system janitor is great for temp folders, but developer bloat like node_modules or pycache requires absolute user safety.

  • How it works: I implemented a high-speed, sequential directory traversal engine. When triggered on-demand via the CLI (winsentry –scan), the tool walks through user-specified workspace paths looking for target directory names defined in the config.
  • The Guardrail: Instead of deleting anything, the tool calculates the total directory size and flushes the data to a local state file inside %APPDATA%/WinSentry/queue.json.
  • The Interactive Review: The user is notified via the terminal that bloat has been discovered. Running winsentry –purge loads the JSON queue and gives the user an interactive, explicit review prompt to check boxes or type all to confirm deletion. Absolute control, zero risk of accidental data loss.

Production Performance Benchmarks

Since this tool was built to fight Windows sluggishness, it could not afford to be heavy. Running a fast compiled systems language like Rust paid off massively. Here are the real-world metrics monitored via Windows Task Manager:

  • Idle Footprint: 0% CPU and 0.9MB of RAM. It sits completely dormant in the background, listening for the global hotkey message loop and waiting for the 30-minute system interval.
  • Peak Scan & Discovery Footprint: Maximum 10% CPU usage and a peak of 5MB of RAM while actively traversing thousands of subdirectories and calculating file sizes during a deep disk scan.

On an NVMe and DDR5 setup, the scan completes in seconds, meaning the system never hitches and the user never has to wait for the utility.

READY TO SHIP!

Replying to @Sgattix

0
1
Open comments for this post

3h 46m 48s logged

Two more hours in, and WinSentry now has a fully functioning debloating engine and a robust multi-threaded architecture.

What’s new

  • I ripped out the real-time event watcher and replaced it with a task that executes once every 30 minutes. It sleeps completely in between cycles. Performance dropped immediately back to 0% CPU on idle, achieving the exact “invisible” footprint a performance tool needs.
  • Reworked Threading: Thread safety is locked down. The core engine now cleanly separates the global UI hotkey listener thread from the background debloating loop, ensuring a heavy system cleanup never hitches or delays the 300ms “Panic Button” response.
  • System Debloater: The 30-minute janitor thread now actively sweeps system-generated trash paths (configured via %APPDATA%/WinSentry/config.toml). It safely bypasses active, locked files while cleanly executing deep purges on dead telemetry and crash dumps.
  • Robust Logging & Documentation: Implemented a lightweight, structured local logging system to track exactly how many megabytes of ghost space are reclaimed over time. I also laid down the full README.md.

Next Up
Implementing the User-Specified Safe Queue (queue.json). I’ll be writing the directory traversal logic to detect massive developer black holes (node_modules, pycache) and scaffolding the manual CLI review step so users can safely approve massive space reclamation.

Two more hours in, and WinSentry now has a fully functioning debloating engine and a robust multi-threaded architecture.

What’s new

  • I ripped out the real-time event watcher and replaced it with a task that executes once every 30 minutes. It sleeps completely in between cycles. Performance dropped immediately back to 0% CPU on idle, achieving the exact “invisible” footprint a performance tool needs.
  • Reworked Threading: Thread safety is locked down. The core engine now cleanly separates the global UI hotkey listener thread from the background debloating loop, ensuring a heavy system cleanup never hitches or delays the 300ms “Panic Button” response.
  • System Debloater: The 30-minute janitor thread now actively sweeps system-generated trash paths (configured via %APPDATA%/WinSentry/config.toml). It safely bypasses active, locked files while cleanly executing deep purges on dead telemetry and crash dumps.
  • Robust Logging & Documentation: Implemented a lightweight, structured local logging system to track exactly how many megabytes of ghost space are reclaimed over time. I also laid down the full README.md.

Next Up
Implementing the User-Specified Safe Queue (queue.json). I’ll be writing the directory traversal logic to detect massive developer black holes (node_modules, pycache) and scaffolding the manual CLI review step so users can safely approve massive space reclamation.

Replying to @Sgattix

0
2
Open comments for this post

2h 3m 44s logged

Windows has a bad habit of treating the user like a guest on their own machine. Despite running an i7-12700K, 32GB of DDR5, and a fast NVMe, I still run into locked UI threads, disappearing taskbar icons, and a persistent “waiting for the OS” feeling.

Instead of dealing with it, I’m building WinSentry—a lightweight, native Windows daemon written in Rust designed to force the OS to be responsive and clean.

What I Built (The First 2 Hours)

Instead of cutting corners, I spent the first block of development setting up a bulletproof core architecture:

  • The 300ms Panic Button: Implemented a low-level global keyboard hook using the Win32 API (RegisterHotKey). Pressing Ctrl + Alt + W forcefully kills explorer.exe, wipes the easily-corrupted local %localappdata%\IconCache.db file while the thread is dead, clears the icons registry at HKEY_CURRENT_USER\Software\Classes\.png and instantly spawns a clean shell instance.
  • Configuration System: Designed a centralized configuration system that initializes inside a specified directory. Users can customize their hotkeys and define exact target paths.
  • Aggressive Binary Optimization: The background daemon sits completely idle at 0% CPU and takes up less than 1MB of RAM, making it practically invisible to the system.

Next Up

Moving on to the storage engine:

  • Implementing ReadDirectoryChangesW for zero-overhead, real-time event tracking on high-bloat system folders (%TEMP%, crash dumps).
  • Building the staging queue pipeline (queue.json) to safely scaffold and manually review massive developer black holes like node_modules and pycache before purging them.

Windows has a bad habit of treating the user like a guest on their own machine. Despite running an i7-12700K, 32GB of DDR5, and a fast NVMe, I still run into locked UI threads, disappearing taskbar icons, and a persistent “waiting for the OS” feeling.

Instead of dealing with it, I’m building WinSentry—a lightweight, native Windows daemon written in Rust designed to force the OS to be responsive and clean.

What I Built (The First 2 Hours)

Instead of cutting corners, I spent the first block of development setting up a bulletproof core architecture:

  • The 300ms Panic Button: Implemented a low-level global keyboard hook using the Win32 API (RegisterHotKey). Pressing Ctrl + Alt + W forcefully kills explorer.exe, wipes the easily-corrupted local %localappdata%\IconCache.db file while the thread is dead, clears the icons registry at HKEY_CURRENT_USER\Software\Classes\.png and instantly spawns a clean shell instance.
  • Configuration System: Designed a centralized configuration system that initializes inside a specified directory. Users can customize their hotkeys and define exact target paths.
  • Aggressive Binary Optimization: The background daemon sits completely idle at 0% CPU and takes up less than 1MB of RAM, making it practically invisible to the system.

Next Up

Moving on to the storage engine:

  • Implementing ReadDirectoryChangesW for zero-overhead, real-time event tracking on high-bloat system folders (%TEMP%, crash dumps).
  • Building the staging queue pipeline (queue.json) to safely scaffold and manually review massive developer black holes like node_modules and pycache before purging them.

Replying to @Sgattix

0
4
Open comments for this post

1h 58m 34s logged

Hi guys, I started building this project right between Flavortown and Stardance, so here’s what I did so far:

  • The Content Engine: local JSON-based CMS.
  • The Project CMS (Admin Panel)
  • The “Contribution” Chronology: I’ve implemented a custom Contribution Graph and Timeline. Unlike a standard GitHub embed, this logic parses my own project milestones and releases (dating back to the founding of OmniCraft in 2020) to visualize activity across various platforms (Java, Discord, Web).
  • WebGL Integration (“Faulty Terminal” background)
  • Kibo-UI & Custom Components: I’m using a mix of custom components like PixelCard (Canvas-based shimmering effects) and kibo-ui for complex elements like date pickers and dropzones in the admin panel.

What’s missing:

  • Filtering Logic
  • Mobile Optimization
  • Data Integrity: Some sections of the “Contributions” page are still being backfilled with historical data from the 2020–2023 era.

Hi guys, I started building this project right between Flavortown and Stardance, so here’s what I did so far:

  • The Content Engine: local JSON-based CMS.
  • The Project CMS (Admin Panel)
  • The “Contribution” Chronology: I’ve implemented a custom Contribution Graph and Timeline. Unlike a standard GitHub embed, this logic parses my own project milestones and releases (dating back to the founding of OmniCraft in 2020) to visualize activity across various platforms (Java, Discord, Web).
  • WebGL Integration (“Faulty Terminal” background)
  • Kibo-UI & Custom Components: I’m using a mix of custom components like PixelCard (Canvas-based shimmering effects) and kibo-ui for complex elements like date pickers and dropzones in the admin panel.

What’s missing:

  • Filtering Logic
  • Mobile Optimization
  • Data Integrity: Some sections of the “Contributions” page are still being backfilled with historical data from the 2020–2023 era.

Replying to @Sgattix

0
18

Followers

Loading…