disk-sift
[rust] Windows 10 & 11 x64 [ok] local-first · zero telemetry

DISK-SIFT

Find large files, duplicate copies, caches, stale build output, and unused desktop or Microsoft Store apps on Windows drives. Runs without admin rights by default, switches to direct NTFS $MFT reading when elevated, and never deletes anything without asking.

v0.1.1 · portable archive (disk-sift.exe + disk-sift-cli.exe) · SHA256SUMS.txt · MIT

[scan] C:\ 2,139,646 files · 19.1 s · standard user
C:\Users\me Browser caches, package stores, Downloads, and project builds
[ok] 24.8 GB safe
Safe to clear 43.2 GB
Worth a look 61.9 GB
Apps indexed 148

Read-only metadata pass

How a scan runs

Every scan reads metadata only—never hydrating OneDrive placeholders or following junctions—and caches the snapshot locally for instant reopen.

[in] DRIVE [scan] METADATA [rank] RULES + APPS [!] CONFIRM [ok] ACTION Fixed NTFS drive or single folder NtQueryDirectoryFile 28 threads · ~19 s warm Flat tree + SHA-256 PCA / Steam / UserAssist Names exact path Cancel focused Recycle / empty Protected guard
[scan] Engine
NtQueryDirectoryFile + relative NtOpenFile

Parallel rayon pool (one thread per logical CPU). About 19 s warm or 55 s cold on 2.14M files. Never follows junctions or hydrates OneDrive files.

[disk] Hard links
[apps] Last-used signals
Processes, Windows PCA, Steam, UserAssist

Matches running processes, Windows 11 PCA launch logs, Steam manifests and localconfig.vdf, and Explorer UserAssist across desktop and Store apps.

[act] Cleanup reach
User temp, caches, build folders, Recycle Bin, uninstallers

System-owned caches (C:\Windows\Temp and SoftwareDistribution\Download) stay read-only until elevated.

Deterministic ranking

Suggestion rules

Ranked safe → review → info, largest first. Nested suggestions are deduplicated and any item can be dismissed across sessions.

Category Targets Minimum Risk Action
Temporary & dumps %TEMP%, C:\Windows\Temp, Minidump, CrashDumps, WER 10–50 MB [ok] safe Empty folder
Windows Update C:\Windows\SoftwareDistribution\Download (admin) 100 MB [ok] safe Empty folder
Shader & browser caches D3DSCache, NVIDIA & AMD shader caches, Chrome, Edge, Brave, Vivaldi caches, Playwright 200–300 MB [ok] safe Empty folder
Package caches npm, pip, Yarn, pnpm, Go, Cargo (cache + unpacked src), uv, Gradle, NuGet 200 MB–1 GB [ok] safe Empty folder
Stale build output node_modules, Cargo target, .next, obj, Gradle build untouched 14+ days 100 MB [ok] safe Recycle
Recycle Bin Recycle Bin across all fixed drives 100 MB [ok] safe Empty Recycle Bin
Active builds & venvs Recently modified build folders and Python .venv / venv 100 MB [!] review Recycle
Emulators & disk images Android SDK system images / AVDs, old .iso .img .vhd .vmdk .qcow2 .wim (30+ days) 500 MB–1 GB [!] review Recycle
Old downloads & large files Installers and archives in Downloads (30+ days), large videos and other files (180+ days) 100 MB–2 GB [!] review Recycle
Unused apps Desktop and Store apps unused 120+ days, or no record and installed 180+ days ago (1 GB+) 300 MB [!] review Uninstall + prompt
Virtual disks & OS files WSL / Hyper-V .vhdx compaction hints, hiberfil.sys, Windows.old 4 GB+ / OS [i] info Guidance only
[ok] explicit confirmation

What each action does

Empty folder
Deletes contents inside verified cache or temp directories and keeps the directory. Locked or in-use files are skipped and reported.
Move to Recycle Bin
Uses SHFileOperationW with FOF_ALLOWUNDO and FOF_WANTNUKEWARNING so Windows warns if an item exceeds the bin limit.
Uninstall & leftover prompt
Runs each desktop app’s own registered uninstaller (converting MsiExec /I to /X) or Remove-AppxPackage for Store apps. When the uninstaller finishes, disk-sift lists remaining app data folders and prompts before moving anything to the Recycle Bin.
Duplicate finder
On-demand 2-stage parallel SHA-256 (exact size, first/last 64 KiB, then full hash) skipping Windows, Program Files, git, and build trees.
[x] hard-coded guard

Protected paths in Rust

Every disk-changing function lives in crates/sift-core/src/actions.rs and runs protected_reason() before touching anything, regardless of UI input.

Drive roots & volume metadata
C:\, D:\, $Recycle.Bin, System Volume Information, Recovery
Windows directory
All of C:\Windows except Temp, SoftwareDistribution\Download, and Minidump
Program installations
Program Files, Program Files (x86), ProgramData\Microsoft
Top-level user folders
Users, profile root, AppData, Documents, Desktop, Downloads, Pictures, Music, Videos, OneDrive

Desktop + read-only terminal

Build & CLI

No Node.js or frontend build step. Release builds link the MSVC runtime statically (zero external DLL dependencies) and require only Windows 10/11 x64 with WebView2.

[powershell] Build from source
git clone https://github.com/Real-Fruit-Snacks/disk-sift
cd disk-sift
cargo build --release

# Desktop app
.\target\release\disk-sift.exe
[cli] Read-only terminal
disk-sift-cli scan C:
[ok] C:\ scanned in 19.06 s (2,139,646 files)
[!]  132 folders skipped without admin rights

disk-sift-cli suggest C: --json
disk-sift-cli dupes C:\Users --min-mb 25
disk-sift-cli apps
disk-sift-cli scan <root> [--top N] [--threads N] [--json]
Scans a fixed drive or folder and prints the largest folders and files by allocated bytes on disk.
disk-sift-cli suggest <root> [--json]
Runs the full suggestion rule set and app inventory without changing anything on disk.
disk-sift-cli dupes <root> [--min-mb N] [--json]
Finds exact-content duplicate files with 2-stage SHA-256 and groups them by wasted space.
disk-sift-cli apps [--json] · disk-sift-cli drives [--json]
Lists installed desktop and Store apps with last-used timestamps, or lists fixed local drives with free space. Respects NO_COLOR; exit codes 0 ok, 1 runtime error, 2 usage error.

Tested on

  • Windows 11 x64, Rust stable: daily workstation with 2.1M+ file NTFS SSD (both standard user and administrator modes).
  • Windows Server (GitHub Actions): cargo fmt, cargo clippy -D warnings, unit test suite, and locked release build on every push.
  • Not supported: Linux and macOS (scanner uses Windows NT directory and NTFS volume APIs directly).

Known limits

  • Without admin rights, hard links are counted per directory entry (making C:\Windows\WinSxS appear larger); running as administrator switches to direct $MFT reading and deduplicates them.
  • NTFS directory entries can lag slightly for files that are currently open and growing until closed.
  • CLI tools and background runtimes that never open a window may show no launch record without admin; elevated mode adds Prefetch.
  • Removable, optical, and network drives are omitted from the drive picker (use Folder to scan a specific path).