{"slug": "show-hn-disktriage-a-simple-cli-tool-to-reclaim-space-on-your-win-c-drive", "title": "Show HN: DiskTriage – A simple CLI tool to reclaim space on your Win C drive", "summary": "Developer Ricardo Borges released DiskTriage, a GPL-3.0 command-line tool that reclaims space on Windows C: drives by scanning 50+ dev and gaming caches including pip, npm, cargo, docker, huggingface, pyenv, gradle, and steam. DiskTriage was built after a boot SSD at 2.7% free space caused 1.5-second disk read freezes and a Windows 0x1E_C0000006 (nt!HvpGetCellPaged) blue screen, and it offers delete, move-plus-environment-variable, and move-plus-NTFS-junction fixes with safety checks that block WinSxS, System32, Windows\\Installer, and Program Files.", "body_md": "A simple CLI tool to reclaim space on your Windows `C:` drive safely.\n\nIt checks SSD health, tracks down bloat (dev tools, AI models, package caches, game stores), and helps you either delete it or move it to another drive — with an interactive terminal menu and built-in safety checks.\n\nBuilt after a full boot SSD (2.7% free space) caused 1.5-second disk read freezes and triggered a Windows `0x1E_C0000006` (`nt!HvpGetCellPaged`) blue screen.\n\n```\ngit clone https://github.com/ricardoborges/DiskTriage.git\ncd DiskTriage\n\n# Install dependencies and the `disktriage` CLI\npip install -e .\n```\n\nRun it:\n\n```\ndisktriage\n```\n\n**Tip:** Run PowerShell as Administrator to see physical SSD read/write latency counters via `Get-StorageReliabilityCounter`.\n\n1. **System Health** : Checks free space across drives, SSD latency, pagefile location, and recent Windows BSOD bugchecks (last 90 days).\n2. **Cache Catalog** : Scans 50+ known dev and gaming caches (`pip` ,`npm` ,`cargo` ,`docker` ,`huggingface` ,`pyenv` ,`gradle` ,`steam` , etc.).\n3. **Smart Discovery** : Finds large unexpected folders in your user profile and`AppData` .\n4. **Actionable Fixes** :\n  - **Delete** : Safely wipe disposable, rebuildable caches.\n  - **Move + Env Var** : Move folder to another drive (e.g.`D:` ) and update user environment variable in registry (`HKCU\\Environment` ).\n  - **Move + NTFS Junction** : Move folder and create an NTFS directory junction (`mklink /J` ), keeping full tracking and 1-click rollback.\n  - **Scan Persistence** : Remembers scan results so you don't have to wait for rescans every time you launch.\n\nTip\n\n**Relocate Package Caches & Auto-Update Environment Variables:**\n\nYou can easily move bulky package caches (such as `pip`, `npm`, `cargo`, or `huggingface`) from your system drive to a secondary drive (like `D:`) to free up gigabytes on `C:`. When using the **Move + Env Var** option, DiskTriage safely transfers the directory and automatically updates the corresponding Windows user environment variable (`HKCU\\Environment`) with the new path—ensuring your development tools keep working seamlessly without manual configuration.\n\n```\ndisktriage                  # Interactive menu (arrow keys + Enter)\ndisktriage --health         # Health check only (space, latency, BSODs)\ndisktriage --scan --drive D # Auto-scan and suggest D: as target drive\ndisktriage --min-gb 1.0     # Only show items larger than 1 GB\ndisktriage --lang pt-BR     # Force Portuguese (Brasil)\ndisktriage --lang en-US     # Force English (US)\n```\n\nDiskTriage supports **Português (Brasil)** (default) and **English (US)**.\n\n- On your first run, DiskTriage will prompt you to choose your preferred language and remember it for subsequent runs.\n- You can switch languages at any time from the Main Menu (`Option 9` ) or by passing the`--lang <codecode>` CLI parameter.\n\n- **Explicit confirmation** : You must type the item name to delete; no accidental single-key deletes.\n- **Protected paths** :`WinSxS` ,`System32` ,`Windows\\Installer` , and`Program Files` are strictly blocked.\n- **Safe file moves** : Multi-threaded`robocopy` with pre-flight destination free space checks. Source files are only removed after the copy verifies successfully.\n- **No symlink loops** : Never recursively follows junctions or symlinks.\n\nGPL-3.0", "url": "https://wpnews.pro/news/show-hn-disktriage-a-simple-cli-tool-to-reclaim-space-on-your-win-c-drive", "canonical_source": "https://github.com/ricardoborges/DiskTriage", "published_at": "2026-09-12 23:31:57+00:00", "updated_at": "2026-09-12 23:55:40.368017+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["DiskTriage", "Ricardo Borges", "Windows", "GitHub", "PowerShell", "huggingface", "pip", "npm"], "alternates": {"html": "https://wpnews.pro/news/show-hn-disktriage-a-simple-cli-tool-to-reclaim-space-on-your-win-c-drive", "markdown": "https://wpnews.pro/news/show-hn-disktriage-a-simple-cli-tool-to-reclaim-space-on-your-win-c-drive.md", "text": "https://wpnews.pro/news/show-hn-disktriage-a-simple-cli-tool-to-reclaim-space-on-your-win-c-drive.txt", "jsonld": "https://wpnews.pro/news/show-hn-disktriage-a-simple-cli-tool-to-reclaim-space-on-your-win-c-drive.jsonld"}}