kuizer 0.1.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,12 +2,114 @@
2
2
 
3
3
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). The release workflow puts the section that matches the tagged version on the GitHub release.
4
4
 
5
+ For each release, record the uncompressed sizes of `kuizer` and `kuizer-gui` for `x86_64-unknown-linux-gnu`. Measure the packaged executables in decimal MB (1 MB = 1,000,000 bytes).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.3.0] - 2026-12-01
10
+
11
+ ### Added
12
+
13
+ - **Diagnostics (`kuizer doctor` / `kuizer diagnostics` and GUI Diagnostics panel)**: Fast, zero-subprocess system and scan diagnostics covering per-mount disk health and SSD/HDD storage detection, configuration & safety checks, trash and privilege tool availability, issue breakdowns, and live walk telemetry (folders/sec, files/sec, hardlinks deduplicated, symlinks skipped). Supports `kuizer doctor [PATH]...`, `--scan`, `--json`, and `--quiet` in the CLI, and renders a live Diagnostics panel at the top of the **Issues** view in the desktop app.
14
+ - **Large folder discovery (`large-folder`)**: `kuizer big --folders` and the desktop app's **Large files** section now surface heavy folders composed of smaller files alongside large single files and old downloads — skipping wrapper folders dominated by already-reported subfolders or files. Heavy folders are tagged `Folder` with a dedicated **Folders** filter chip in the GUI, re-measured safely before removal, and always move to the trash as `review` items via the core delete guard.
15
+ - **Opt-in developer mode (`[developer]` config)**: `kuizer` now acts as a general computer cleaner out of the box (`developer.enabled = false` by default). Enabling `[developer]` (or toggling **Developer items** on the start screen or in **Settings → Scanning**) unlocks granular toggles for `artifacts`, `caches`, `toolchains`, `docker`, and `repos`. `kuizer big --include-artifacts` opts into scanning inside project artifact directories even when developer mode is enabled.
16
+ - **GUI Scanning settings & general-mode Overview**: Added persistent **Developer items**, **Old downloads**, and **Unknown app caches** toggles under **Settings → Scanning**. In general mode, the sidebar and keyboard tab cycling hide developer sections, the Overview highlights **Largest folders**, and the scan footer displays single-pass walk throughput.
17
+
18
+ ### Performance
19
+
20
+ - **Single-pass unified scan engine**: Rebuilt the disk-usage walker with a work-stealing directory queue, per-directory inode sorting prior to `stat_at`, a 64-shard hardlink deduplication table, and a lock-free leaf-directory fast path. `usage::measure_report` now computes the disk usage tree, large files, large folders, and walk diagnostics in a **single filesystem walk** (~1.6× faster standalone `usage`, ~3.4× faster combined `usage + big`, and ~4.3× faster general-mode GUI scans by eliminating redundant walks).
21
+ - **Concurrent Downloads inspection**: `kuizer big` now scans old downloads in `~/Downloads` in parallel with the main large-items walk.
22
+
23
+ ### Changed
24
+
25
+ - App and browser caches remain enabled by default in general mode, while developer package caches (`npm`, `cargo`, `pip`, etc.) follow `[developer].caches` in GUI/general scans.
26
+ - `docs/config.example.toml` documents the new `[developer]` section and all six keys.
27
+
28
+ ### Fixed
29
+
30
+ - Emptying a Freedesktop trash folder now keeps the `.trashinfo` metadata file for any item that could not be removed (such as skipped symlinks), so it remains restorable.
31
+ - Recursive deletion now reports the foreign owner with a `sudo` hint when `PermissionDenied` occurs on a file or parent directory owned by another user.
32
+
33
+ ## [0.2.0] - 2026-11-29
34
+
35
+ - kuizer is now a general PC cleaner that also deeply cleans developer artifacts, caches, toolchains, Docker and duplicates, and the package descriptions say so.
36
+ - CLI: `kuizer usage` (`du`) shows which folders and files use the disk as a tree with sizes, shares and `[protected]` labels, with `--depth`, `--limit`, `--min-size`, `--all-filesystems`, `--apparent` and `--json`. It deletes nothing, and `docs/report.schema.json` describes its report.
37
+ - GUI: a Disk Explorer section draws disk usage as a treemap.
38
+ - CLI: `kuizer system clean` runs each package tool's own cleanup after a preview, with `sudo` in a terminal or `pkexec` in a graphical session (`system.escalate`). `system.journal_keep` and `system.pacman_keep` set what stays. The desktop app cleans the same items through `pkexec`.
39
+ - GUI: the Overview is general-first, with a disk usage bar and the biggest safe wins across sources. `Shift+1` to `Shift+9` now open Overview, Disk Explorer, App caches, Trash, System, Large files, Project artifacts, Developer caches and Toolchains.
40
+ - GUI: Large files can be filtered by kind: Video, Archive, Disk image, Installer, AI model, Audio and Other.
41
+ - Large files: `big.min_size` now defaults to `250MB` and `big.limit` to `200`.
42
+ - Catalog: new entries `android-avd-config`, `electron-builder-cache`, `cypress-cache`, `debuginfod-cache`, `chrome-headless-cache`, `dotslash-cache`, `codex-runtimes`, `telegram-cache-macos` and `homebrew-logs`. Flatpak app caches are listed per app as `flatpak:<app-id>` with the app's name, and `--select flatpak-app-caches` still matches all of them.
43
+ - GUI: selection and removal for App caches, Trash and Large files. App caches remove like developer caches. Emptying Trash rows opens an inline footer confirmation with a permanent-deletion warning and focus on Cancel. Large files are never picked by Select all, range selection or visual mode, always move to the trash, and require typing the item count in the inline confirmation before starting.
44
+ - GUI: new sidebar sections `Developer caches`, `App caches`, `Trash`, `System` and `Large files`, start-screen toggles for Trash, System caches and Large files, and `[keys]` `view.*` actions for the new sections.
45
+ - Docs: updated `docs/design.md`, `README.md`, `docs/report.schema.json` and `docs/config.example.toml` for the general cleanup sources (`cache` groups, `trash`, `system`, `big`) and `[keys]` defaults.
46
+ - Caches whose app is running (from the catalog's `processes`, read from `/proc` on Linux and `ps` on macOS) are marked `review` with a note to close the app first, so they are never selected in bulk while the app can write them back.
47
+ - Catalog: disk, code, GPU and shader caches of Chrome, Chromium, Brave, Edge, Vivaldi, Firefox and LibreWolf, and of Discord, Slack, VS Code, VSCodium, Signal, Obsidian, Element and Teams for Linux on Linux and macOS, plus Safari's cache on macOS as `review`. Every entry ends in a folder the profile cache allowlist permits; cookies, history, logins, extensions, IndexedDB and Local Storage are never listed, and a test checks the catalog for it.
48
+ - CLI: `kuizer big --clean` moves selected large files and old downloads to the trash, even with `delete.mode = "permanent"`. Nothing is selected without `--select large-file`, `old-download` or `all`, the prompt always asks for the item count to be typed (also with `delete.confirm = false`; `--yes` does not skip it), and a script confirms with `--count N` instead. Right before each removal the core checks again that the file kept its size and modification time, and refuses it otherwise.
49
+ - TUI: expanding and collapsing a history session use the shared keymap too (`history.toggle` on Enter and Space, `history.expand` on Right and `l`, `history.collapse` on Left and `h`), and the hints in the footer, the detail lines and the status messages name the configured keys instead of fixed ones.
50
+ - GUI: a scan also measures the trash, lists system package caches and finds large files and old downloads, each beside the folder walk and shown as its own step in the scan view. Large files come from the same walk as the artifacts, old downloads from the Downloads folder; both honor `scan.exclude`. Saved scans keep the new parts, and scans saved before them still load. The filter tooltip, the start screen and the space map legend now name the keys from `[keys]` instead of fixed ones.
51
+ - GUI: a Keys page in the settings lists every action by its `[keys]` name with its current keys, where it works and its defaults, and filters on name or key with `/`. Enter records the next key combination as the action's key, `a` adds one, `x` or Delete removes the picked key (Left and Right pick it) and `r` goes back to the defaults; Esc while recording changes nothing. An invalid key or one another action in the same scope already uses is refused next to the row and the old keys stay. Changes are written to `[keys]`, so the TUI uses them too, and work in the GUI at once.
52
+ - TUI: views on `5` to `7` for toolchains, Docker and Podman objects and git repositories (`view.toolchains`, `view.docker`, `view.repos`). Toolchains and Docker objects are selected and deleted like caches and always removed for good. The git view shows what `git gc` would free and the merged branches per repository; `c` and `C` run `git gc`, `b` and `B` delete merged branches after a confirmation that opens on Cancel (`git.gc`, `git.gc_all`, `git.branches`, `git.branches_all`). A selection with review items now asks for its item count to be typed in the TUI, and the help overlay lists the git and confirmation keys.
53
+ - TUI: views on `1` to `4` for artifacts, global caches, duplicates and scan issues, with the keys in the shared `[keys]` table (`view.artifacts`, `view.caches`, `view.duplicates`, `view.issues`). Caches can be selected and deleted like artifacts, each view with its own selection; duplicates and issues are reports. Caches and duplicates are only looked for once their view opens.
54
+ - GUI: the confirmation before merged git branches are deleted is no longer a centered modal. It rises in over the bottom of the list like the selection summary, opens with the focus on Cancel so an Enter right after asking deletes nothing, takes Tab, arrows and `hjkl` to move between Cancel and Delete, closes with Esc, and sinks away once answered.
55
+ - `appearance.zoom` holds the GUI interface size (50 to 200 percent). The zoom shortcuts and a new Interface size row in the settings write it to the config file, and the size saved by earlier versions moves there on first launch. The GUI settings gained Scanning, Duplicates, Git and Tools pages for scan roots, excludes, size thresholds, thread counts, `duplicates.*`, `git.*`, `toolchains.*` and `docker.*`; a typed value the config would refuse is reported next to the field and the old value stays.
56
+ - CLI: `scan`, `clean`, `cache`, `toolchain` and `docker` take repeatable `--rule`, `--project` and `--exclude` filters, and `cache`, `toolchain` and `docker` also `--category` and `--min-size`, before or after `clean`. Flags only narrow the config. `--json-lines` prints one candidate per line as the scan finds it, then a `"type": "summary"` line, for `scan` and the `cache`, `toolchain` and `docker` listings. The hidden `kuizer generate completions SHELL` and `kuizer generate man [--out DIR]` print shell completions and man pages for packagers.
57
+ - CLI: `--json-lines` also works on `clean`, `cache clean`, `toolchain clean` and `docker clean`. Each item is printed as a `"type": "removal"` line with its status as soon as it is removed or has failed, then a `"type": "summary"` line with the rest of the `--json` removal report; `--dry-run` prints every selected item as `would-remove`. Confirmation behaves as with `--json`. `docs/report.schema.json` describes the new `removalLine`.
58
+ - The CLI, the TUI and the GUI delete through one executor in the core, which revalidates each item, removes it, reports per item and records the history, one run per mode. When to ask before deleting (`review` items, projects with uncommitted changes, `delete.confirm`) is decided in the core for the CLI and the TUI. `kuizer clean`, `kuizer cache` and the GUI now remove files in parallel like the TUI, never two nested paths at once; toolchains and Docker objects still go one at a time.
59
+ - Packaging: the kuizer repository is a Homebrew tap (`brew tap remcostoeten/kuizer https://github.com/remcostoeten/kuizer`) with a formula for `kuizer` in `Formula/` and a cask for `kuizer-gui` in `Casks/`, which every release rewrites to point at its archives. `packaging/aur` holds PKGBUILDs for `kuizer` (built from source) and `kuizer-bin` (release binaries), both with the desktop app, its desktop file and icons. The formula and both PKGBUILDs install bash, zsh and fish completions and the man pages.
60
+ - Caches and toolchains are sized on one shared pool of `scan.size_threads` threads instead of one thread per item, and `scan.exclude` now also hides caches and toolchains in `kuizer cache`, `kuizer toolchain` and the dashboard, as it already did in the GUI. The GUI shows item ages in the same buckets as the TUI (`today`, `5d`, `3w`, `4mo`, `2y`), and which cleanups can go to the trash is decided in one place for both.
61
+ - `kuizer history`, the dashboard, `kuizer restore` and the GUI read what is restored and still in the trash through one core snapshot. A cleanup that was put back completely now shows `restored` in the `kuizer history` trash column instead of `emptied`, and "still in the trash" leaves out restored items. The GUI restores from a single trash listing and updates its history in memory instead of reading the history file again, and works out trash states and totals on the history thread instead of while drawing.
62
+ - GUI: after a cleanup the history tab adds the cleanup the core just recorded instead of reading the history file again, and keeps its trash states and totals current without listing the trash. It still reads the file again when the history could not be written.
63
+ - GUI: every list tells a scan that found nothing apart from filters that hide every row, instead of showing a blank table, and a failed scan offers Rescan and New scan with their keys. Both states fade in, instantly with `appearance.motion = false`.
64
+ - GUI: keys stay responsive on large scans. Stopping a scan keeps the results on screen as they are instead of filtering and rebuilding them, a saved scan, a duplicate search and saved duplicates leave out excluded paths on their worker thread, the chosen folder is resolved off the UI thread, the cursor in every list is found from its last row instead of a search through the list, and the command palette ranks and checks its commands once per query.
65
+ - GUI: motion durations live in one place and every state change animates in 150 ms or less; zooming the space map got faster (180 to 140 ms). Sidebar icons no longer move on hover, and bar slivers keep the same minimum size in every view.
66
+ - Permanent deletion empties read-only folders the user owns, such as the Go module cache, instead of failing on them. Folders owned by another user are still refused.
67
+ - `delete.mode = "trash"` is back as an opt-in, also as a switch in the GUI settings. Deletion stays permanent by default. In trash mode project artifacts and caches go to the trash; toolchains, Docker objects and git branches are still removed for good.
68
+ - GUI: deleting no longer asks. While anything is selected, a floating bar above the status bar sums up the selection (count, size, `review` items, and whether it is deleted for good or moved to the trash) with Clear and Delete. Enter, Delete, `d`, the Delete button and the row menu delete at once; a held key never does.
69
+ - GUI: the Duplicates, History and Issues lists are virtualized like the others and are no longer capped at 200 groups or 500 issues.
70
+ - GUI: deleted items no longer come back from the saved scan on the next launch.
71
+ - GUI: without a working GPU driver (no Vulkan), the app prints why it cannot start and points to the `kuizer` terminal UI instead of panicking.
72
+ - GUI: Enter, `d` and Delete act only on a selection. With nothing selected they remove nothing; a single row is deleted through its menu.
73
+ - GUI: settings are written one at a time, latest value first, and a failed write never undoes a newer change. A bad `scan.exclude` pattern no longer turns off the valid ones for caches and toolchains.
74
+ - TUI: holding Enter no longer confirms a deletion.
75
+ - `--idle` refuses ages too large to compute, and a project with an unreadable folder counts as unknown and never matches.
76
+ - Deletion refuses items the scan could not identify and parent folders that became symlinks. Branch deletion only succeeds while the branch still points at the checked commit. Volta removal keeps every other protection.
77
+ - History keeps non-UTF-8 paths, retries a failed write in the same run, and Ctrl-C during a removal finishes the current item and saves the history. A second Ctrl-C exits at once.
78
+ - A config that cannot be read falls back to cautious deletion with a warning.
79
+ - GUI: items can be deleted while a scan is still running. Rows the running scan found are available at once; rows shown from an earlier scan unlock when the scan replaces their list. Deletion runs in the background, its rows dim until they are gone, and the lists stay usable.
80
+ - GUI: Shift+click selects every row from the cursor row to the clicked one. A click or Ctrl+click toggles a single row.
81
+ - `appearance.accent` picks the accent color of the desktop app: `purple` (default), `blue`, `teal` or `pink`, in both themes. It is also in the settings under General.
82
+ - GUI: a count before a motion repeats it (`10j`, `3` then Page Down, `5G` for row 5), and `v` starts visual mode, where every motion selects the rows it passes until Esc.
83
+ - GUI: neutral grey surfaces, an iris accent, 2px and 4px corners, and uppercase monospace labels for column headings and card titles. Text uses Schibsted Grotesk, now bundled with the app, and labels IBM Plex Mono when it is installed. The keyboard cursor row has a stronger tint.
84
+ - GUI: deleting animates. Marked and deleting rows fade into each other, and removed rows fade out instead of vanishing. Instant with `appearance.motion = false`.
85
+ - GUI and TUI: the status bar always shows the current mode (Normal, Visual, Filter, Confirm and so on), with a typed count next to it in the GUI.
86
+ - GUI: a control's tooltip also opens when the keyboard focus ring rests on it. Tab moves between the buttons of the branch-deletion dialog.
87
+ - GUI: the Overview has a "Biggest safe wins" card. `w` selects the largest safe project artifacts and opens their list, without deleting anything.
88
+ - `appearance.density` is `comfortable` (default) or `compact`, also in the settings. Rows and vertical padding are tighter than before in both.
89
+ - GUI: Space moves the cursor on to the next unselected row, so it can be pressed again and again. Selected rows have a softer tint.
90
+ - GUI: Select all takes `safe` items first, a further press adds `review` items, and the next clears. A list with only `review` items asks first, and the status bar shows when `review` items are selected.
91
+ - GUI: vim motions work in the space map, the shortcuts overlay, the branch dialog and the focus ring.
92
+ - GUI: saved scans and their duplicate results are pruned as pairs. Orphaned results and stale temp files are removed.
93
+ - GUI: recent folders keep non-UTF-8 paths, and `xdg-open` can no longer hang a reveal.
94
+ - TUI: Esc backs out one level and never quits. Quitting during a deletion asks first.
95
+ - TUI: `P` selects a project's `safe` items first, a second press adds `review` items, and a third clears.
96
+ - CLI: `cache clean`, `toolchain clean` and `docker clean` replace `--clean`, which stays as a hidden alias for one release.
97
+ - CLI: `delete.confirm = false` is honored, except for `review` items and projects with uncommitted changes or an unknown git state.
98
+ - CLI: `--category` and `--min-size` narrow the config instead of replacing it. `history` and `restore` honor `--config`.
99
+ - `--idle` counts activity in nested projects toward their monorepo root.
100
+ - Removal errors and other external text can no longer inject terminal escape sequences.
101
+ - A permission error on one folder no longer turns off `openat2` for the rest of the deletion.
102
+ - A failed thread spawn no longer aborts the app, and failed repository inspections are reported.
103
+ - `scan.size_threads` above 64 is capped with a warning, and `docs/config.example.toml` lists every key.
104
+ - Release binary sizes: `kuizer` 5.5 MB, `kuizer-gui` 19.8 MB.
105
+
5
106
  ## [0.1.3] - 2026-11-07
6
107
 
7
108
  - GUI: settings in the sidebar footer and behind Ctrl+, with a light theme, a motion switch and sidebar options; one toolbar per section; Shift+1 to Shift+9 switch sections; Escape stops a scan and keeps the results found so far; tooltips anchor to their trigger.
8
109
  - Documentation at kuizer.app/docs.
9
110
  - Deletion is always permanent. Trash mode, the `delete.mode` key, `--permanent`, the TUI `t` toggle and the GUI undo bar are gone; `delete.confirm` now defaults to `true`. `kuizer restore` still brings back runs that older versions moved to the trash.
10
111
  - A folder your user cannot remove, such as a `node_modules` installed with `sudo`, is refused before anything is touched, with the owner and how to remove it instead of a raw permission error.
112
+ - The packaged `kuizer` binary is 5.15 MB and `kuizer-gui` is 17.59 MB.
11
113
 
12
114
  ## [0.1.2] - 2026-10-24
13
115
 
@@ -16,6 +118,7 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). The
16
118
  - Faster scan with streaming results in the GUI; Docker queries run side by side.
17
119
  - Ctrl+Q quits the GUI and the TUI.
18
120
  - Releases publish to crates.io.
121
+ - The packaged `kuizer` binary is 5.15 MB and `kuizer-gui` is 17.31 MB.
19
122
 
20
123
  ## [0.1.1] - 2026-10-17
21
124
 
@@ -24,7 +127,10 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). The
24
127
  - GUI start screen with folder choice and scan options.
25
128
  - Releases built with cargo-dist: shell installers, an npm package and prebuilt binaries for Linux and macOS.
26
129
  - CI builds and tests on macOS.
130
+ - The packaged `kuizer` binary is 4.79 MB and `kuizer-gui` is 16.33 MB.
27
131
 
28
132
  ## [0.1.0] - 2026-10-16
29
133
 
30
134
  First release: `scan`, `clean`, `cache`, `duplicates`, `history` and `restore`, the HTML report and dashboard, a terminal UI and a desktop app, with deletion to the trash and the safety checks.
135
+
136
+ - The packaged `kuizer` binary is 4.71 MB and `kuizer-gui` is 16.26 MB.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h1 align="center">kuizer</h1>
6
6
 
7
- A disk cleanup tool for developers, written in Rust. It finds `node_modules`, Cargo `target` directories, build output, tool caches and duplicate files under your projects, and deletes the ones you select.
7
+ A PC cleaner for Linux and macOS, written in Rust. It shows which folders use your disk space and clears app, browser and system caches, the trash, package caches and large files. It also cleans developer artifacts, tool caches, toolchains, Docker leftovers and duplicate files. It deletes only what you select.
8
8
 
9
9
  Website and documentation: [kuizer.app](https://kuizer.app), [kuizer.app/docs](https://kuizer.app/docs).
10
10
 
@@ -14,7 +14,7 @@ Website and documentation: [kuizer.app](https://kuizer.app), [kuizer.app/docs](h
14
14
  <img src="https://shieldcn.dev/github/remcostoeten/kuizer/license.svg?font=jetbrains-mono" alt="license" />
15
15
  <img src="https://shieldcn.dev/crates/kuizer.svg?font=jetbrains-mono" alt="crates.io" />
16
16
  <img src="https://shieldcn.dev/badge/core-Rust-black.svg?font=jetbrains-mono&logo=rust" alt="core: Rust" />
17
- <img src="https://shieldcn.dev/badge/deletes%20to-trash-black.svg?font=jetbrains-mono" alt="deletes to: trash" />
17
+ <img src="https://shieldcn.dev/badge/deletion-asks%20first-black.svg?font=jetbrains-mono" alt="deletion: asks first" />
18
18
  <img src="https://shieldcn.dev/badge/platform-Linux%20%7C%20macOS-black.svg?font=jetbrains-mono" alt="platform: Linux and macOS" />
19
19
  </p>
20
20
 
@@ -25,16 +25,20 @@ Website and documentation: [kuizer.app](https://kuizer.app), [kuizer.app/docs](h
25
25
  <sub>The desktop app on Linux. The same scan runs in the terminal as <code>kuizer</code>.</sub>
26
26
  </p>
27
27
 
28
- kuizer walks your project folders and lists `node_modules`, `.next`, Cargo `target` directories and other generated folders with their sizes. Built-in rules cover JavaScript and its frameworks, Rust, Python, .NET, Maven, Gradle, Swift, CocoaPods, Dart and Flutter, Elixir, Zig, Haskell, CMake, Terraform and Unity; `kuizer rules` lists them. A scan on its own never deletes anything.
28
+ kuizer ships as a terminal tool and as a desktop app built on [GPUI](https://gpui.rs). Both use the same core for scanning, safety checks and deletion, and share one config file and one history. A scan on its own never deletes anything.
29
29
 
30
- It ships as a terminal tool with an interactive list, and as a desktop app built on [GPUI](https://gpui.rs). Both run the same scan, the same checks and the same deletion, and share one config file and one history.
31
30
 
32
- - **Each artifact is checked against its project.** A `dist` folder counts only next to a `package.json`, and a `target` folder only next to a `Cargo.toml` with Cargo's cache tag inside. Every result is marked `safe` or `review`.
33
- - **Deletion goes to the trash and is checked twice.** Right before removal, kuizer confirms the item is the directory it scanned, not a symlink or mount point, inside a scanned root, and not your home or a system directory.
34
- - **Profiles and secrets are never entered.** Chrome, Brave, Firefox, Edge and Electron apps such as Discord, Slack and VS Code, plus `~/.ssh`, `~/.gnupg`, the keyrings and global tool installs are skipped. Anything else in a hidden home folder is `review`, never `safe`.
35
- - **Beyond project folders** it lists global caches (npm, pnpm, yarn, bun, cargo, pip, uv, Go, Gradle, Maven, Playwright and more), installed toolchain versions (rustup, nvm, fnm, volta, pyenv, uv, SDKMAN, Go), Docker and Podman leftovers, git repositories that `git gc` would shrink, and duplicate files by size and BLAKE3 hash.
31
+ - **Disk usage.** `kuizer usage`, or `kuizer du`, prints folders and files as a tree, largest first, and deletes nothing. The desktop app's Disk Explorer draws the same measurement as a treemap you can drill into.
32
+ - **App, browser and system caches.** `kuizer cache` lists them next to the tool caches, and `--group developer`, `apps`, `browsers` or `system` narrows the list. A cache whose app is running is `review`. The catalog covers, among others, headless Chrome, debuginfod, DotSlash, Cypress, electron-builder and Codex runtime caches, Android Virtual Device settings and images, Telegram's cache and Homebrew logs on macOS, and one entry per Flatpak app, labelled with its name.
33
+ - **Trash.** `kuizer trash` shows the size of your trash, and `kuizer trash --clean` empties it for good.
34
+ - **System package caches.** `kuizer system` lists the pacman, APT, DNF and Zypper caches, disabled snap revisions, unused Flatpak runtimes, Homebrew cleanup and the systemd journal. `kuizer system clean` runs each tool's own cleanup command after a preview. Commands that need administrator rights use `sudo` in a terminal or `pkexec` in a graphical session, and the desktop app uses `pkexec`.
35
+ - **Large files and old downloads.** `kuizer big` lists files of 250 MB and more in your home folder, and downloads of 10 MB and more that are older than 90 days. All are `review`. `--clean` with `--select` moves them to the trash after you type the item count, and refuses a file whose size or modification time changed. The desktop app filters large files by kind: Video, Archive, Disk image, Installer, AI model, Audio and Other.
36
+ - **Project artifacts.** kuizer finds `node_modules`, `.next`, Cargo `target` directories and other generated folders. Built-in rules cover JavaScript and its frameworks, Rust, Python, .NET, Maven, Gradle, Swift, CocoaPods, Dart and Flutter, Elixir, Zig, Haskell, CMake, Terraform and Unity; `kuizer rules` lists them. A `dist` folder counts only next to a `package.json`, and a `target` folder only next to a `Cargo.toml` with Cargo's cache tag inside. Every result is marked `safe` or `review`.
37
+ - **Developer tools.** It lists global caches (npm, pnpm, yarn, bun, cargo, pip, uv, Go, Gradle, Maven, Playwright and more), installed toolchain versions (rustup, nvm, fnm, volta, pyenv, uv, SDKMAN, Go), Docker and Podman leftovers, git repositories that `git gc` would shrink, and duplicate files by size and BLAKE3 hash.
38
+ - **Every item is checked again right before removal.** For files and folders, kuizer confirms the item is the one it scanned, not a symlink or mount point, inside a scanned root, and not your home or a system directory.
39
+ - **Profiles and secrets are never cleaned.** The cleanup scan skips Chrome, Brave, Firefox, Edge and Electron apps such as Discord, Slack and VS Code, plus `~/.ssh`, `~/.gnupg`, the keyrings and global tool installs. `kuizer cache` reaches only named disk cache folders inside a browser or app profile, such as `GPUCache`. `kuizer usage` measures the size of protected folders and marks them `[protected]`. Project artifacts elsewhere in a hidden home folder are `review`, never `safe`.
36
40
  - **Idle projects only, if you want.** `--idle 60d` keeps the dependencies of what you work on today; a project's activity is its newest source file or last commit, so a stray `npm install` does not count.
37
- - **Every deletion is logged.** `kuizer history` lists past runs with ids like `s4`, and `kuizer restore s4` puts a run back from the trash without overwriting anything.
41
+ - **Every deletion is logged.** `kuizer history` lists past runs with ids like `s4`. In trash mode, `kuizer restore s4` puts a run back from the trash without overwriting anything.
38
42
  - **Reports stay on your machine.** `kuizer scan --report` writes one HTML file with a zoomable treemap, and `kuizer dashboard` one page with charts and drill-downs. Neither loads anything from the network.
39
43
 
40
44
  Configuration lives in `~/.config/kuizer/config.toml`; every key is optional and [docs/config.example.toml](docs/config.example.toml) lists them all. A folder containing a `.kuizerignore` file is skipped with everything under it. kuizer was called sweep until October 2026 and still reads `.sweepignore` markers and `~/.sweep-history.json`. The design and module boundaries are in [docs/design.md](docs/design.md).
@@ -44,34 +48,75 @@ Configuration lives in `~/.config/kuizer/config.toml`; every key is optional and
44
48
  ```sh
45
49
  kuizer # interactive list of the current directory
46
50
  kuizer ~/projects # interactive list of a folder, ? shows the keys
51
+ kuizer usage ~ --depth 2 # show what fills your home folder (alias: du)
47
52
  kuizer scan ~/projects --min-size 50MB # print large artifacts
48
53
  kuizer scan ~/projects --report # open an interactive treemap report
49
54
  kuizer dashboard ~/projects # open a web overview of everything
50
55
  kuizer clean ~/projects --dry-run # show what clean would remove
51
56
  kuizer clean ~/projects --idle 3mo # remove safe items of projects untouched for three months
52
57
  kuizer clean ~/projects --select all # remove safe and review items, after a confirmation
53
- kuizer cache --clean --select npm # remove the npm cache
54
- kuizer toolchain ~/projects --clean # remove toolchain versions no project pins
55
- kuizer docker --clean # remove dangling images, stopped containers and build cache
58
+ kuizer clean --policy stale-deps --dry-run # preview a named policy from config.toml
59
+ kuizer policy list # list configured cleanup policies
60
+ kuizer policy show stale-deps # show effective filters and selection of a policy
61
+ kuizer cache --group apps --group browsers # list app and browser caches
62
+ kuizer cache clean --select npm # remove the npm cache
63
+ kuizer trash # show what the trash holds
64
+ kuizer trash --clean # empty the trash for good, after a confirmation
65
+ kuizer system # list package caches and the journal
66
+ kuizer system clean --dry-run # show which package tool cleanups would run
67
+ kuizer big # list large files and old downloads
68
+ kuizer big --clean --select old-download # move old downloads to the trash, after typing the count
69
+ kuizer toolchain clean ~/projects # remove toolchain versions no project pins
70
+ kuizer docker clean # remove dangling images, stopped containers and build cache
56
71
  kuizer git ~/apps --gc --branches # pack loose objects, delete merged branches
57
- kuizer restore --last # put the last run back from the trash
72
+ kuizer restore --last # trash mode: put the last run back
58
73
  kuizer duplicates ~/Downloads --verify # duplicate files, compared byte by byte
59
74
  kuizer --json scan ~/projects # every command prints JSON with --json
60
75
  ```
61
76
 
62
- Deletion is permanent: nothing goes to the trash. Every command shows what it will remove and asks first. A tool downloads a toolchain version again when needed, and a merged branch's commits stay in the default branch.
77
+ Deletion is permanent by default. Set `delete.mode = "trash"` in the config, or turn on "Move to the trash" in the desktop app settings, to move project artifacts and caches to the trash instead. `kuizer big --clean` always moves to the trash. `kuizer trash --clean` and `kuizer system clean` are always permanent. Every command shows what it will remove and asks first. With `delete.confirm = false` the CLI only asks for `review` items and projects with uncommitted changes. A tool downloads a toolchain version again when needed, and a merged branch's commits stay in the default branch.
78
+
79
+ ### Policies and scheduled cleanups
80
+
81
+ A `[policy.NAME]` table in `config.toml` saves a source, filters and a selection so you can inspect it with `kuizer policy show NAME` and run it with `kuizer clean --policy NAME`. Extra flags next to `--policy` can only narrow it further; widening `--select` or passing `--permanent` without `permanent = true` exits with status `2`.
82
+
83
+ kuizer does not include its own scheduler. To run a policy weekly, call it from `crontab` or a `systemd` user timer with `--yes -q` (`--yes` is required when there is no terminal to confirm on):
84
+
85
+ ```cron
86
+ # Every Sunday at 03:00
87
+ 0 3 * * 0 kuizer clean --policy stale-deps --yes -q
88
+ ```
89
+
90
+ Or with a `systemd` user unit (`~/.config/systemd/user/kuizer-stale-deps.service` and `.timer`):
91
+
92
+ ```ini
93
+ [Service]
94
+ Type=oneshot
95
+ ExecStart=kuizer clean --policy stale-deps --yes -q
96
+ ```
97
+
98
+ ```ini
99
+ [Timer]
100
+ OnCalendar=Sun *-*-* 03:00:00
101
+ Persistent=true
102
+
103
+ [Install]
104
+ WantedBy=timers.target
105
+ ```
106
+
107
+ Each run records its policy name in `kuizer history`, and `kuizer dashboard` groups policy runs with their last run time and average cadence.
63
108
 
64
109
  ## Desktop app
65
110
 
66
- `kuizer-gui` opens on a start screen. Type a folder, pick one with the system dialog, reopen one of the last eight, or scan your whole home folder. The same screen sets the scan options: which kinds of artifacts to list, the smallest item size, how deep to walk, and whether to measure global caches, toolchains and Docker, look for duplicates and stay on one file system. The scan streams results in as it runs, and Escape stops it and keeps what it found.
111
+ `kuizer-gui` opens on a start screen. Type a folder, pick one with the system dialog, reopen one of the last eight, or scan your whole home folder. The same screen sets the scan options: which kinds of artifacts to list, the smallest item size, how deep to walk, whether to measure caches, toolchains, Docker, the trash, system package caches and large files, whether to look for duplicates and whether to stay on one file system. The scan streams results in as it runs, and Escape stops it and keeps what it found.
67
112
 
68
- The sidebar lists the sections: Overview, Project artifacts, Global caches, Toolchains, Docker, Git repositories, Duplicates, History and Issues. Shift+1 to Shift+9 jump between them, and `m` opens the space map: the scanned folders and the global caches as tiles sized by what they hold. Enter or a click opens a folder and shows each item inside as its own tile; Backspace goes back.
113
+ The sidebar lists the general cleanup sections before the developer ones. The Overview shows a disk usage bar and the biggest safe wins across sources. Shift+1 to Shift+9 jump to Overview, Disk Explorer, App caches, Trash, System, Large files, Project artifacts, Developer caches and Toolchains; Ctrl+Tab and the command palette reach every section, including Docker, Git repositories, Duplicates, History and Issues. The Disk Explorer shows the measured folders as a treemap. Pressing `m` opens the space map: the scanned folders and developer caches as tiles sized by what they hold. Enter or a click opens a folder and shows each item inside as its own tile; Backspace goes back.
69
114
 
70
115
  <p align="center">
71
- <img src="docs/gui/artifacts.png" width="100%" alt="The project artifacts list with several rows selected and the inline confirmation showing the item count and total size before they are deleted" />
116
+ <img src="docs/gui/artifacts.png" width="100%" alt="The project artifacts list with several rows selected and the floating summary bar showing the item count and total size before they are deleted" />
72
117
  </p>
73
118
 
74
- In a list, `j`/`k` or the arrow keys move the cursor, Space selects a row, Shift-click selects a range, and `/` filters by path or name. Enter, Delete or `d` deletes the selection for good after an inline confirmation that shows the item count, total size and how many items are marked `review`. Right-click a row, or press the Menu key or Shift+F10, to reveal it in the file manager, copy its path, delete only that item, or exclude it from every later scan.
119
+ In a list, `j`/`k` or the arrow keys move the cursor, Space selects a row, Shift-click selects a range, and `/` filters by path or name. While anything is selected, a bar above the status bar shows the item count, total size, how many items are marked `review` and whether they are deleted for good or moved to the trash. For project artifacts, developer caches, app caches, toolchains and Docker objects, Enter, Delete or `d` deletes the selection at once; a held key never deletes. Emptying rows from Trash opens an inline confirmation in the footer warning that the deletion cannot be undone. Large files are personal files: Select all and range selection skip them, they always move to the trash, and the inline confirmation requires typing the item count first. They can be filtered by file kind. System rows are cleaned through each package tool's own command, with `pkexec` asking for administrator rights where needed. Right-click a row, or press the Menu key or Shift+F10, to reveal it in the file manager, copy its path, delete only that item, or exclude it from every later scan.
75
120
 
76
121
  Ctrl+K (Cmd+K on macOS) opens a command palette with every action, section and recent folder, and `?` lists all shortcuts. Settings sit in the sidebar footer and behind Ctrl+, (Cmd+,): a dark or light theme, motion on or off, how the sidebar opens and whether the section keys show. They write to the same config file the CLI reads. Ctrl+B collapses the sidebar to a strip of icons. Tab and Shift+Tab move a focus ring through every button, toggle and sidebar item, Enter or Space presses it and Esc goes back to the list.
77
122
 
@@ -88,6 +133,27 @@ kuizer-gui ~/projects # skip the start screen and s
88
133
 
89
134
  Prebuilt binaries for Linux and macOS, on x86_64 and ARM, are attached to every [GitHub release](https://github.com/remcostoeten/kuizer/releases), as plain archives with a SHA-256 checksum next to the installers below. The `kuizer-gui` archive includes a `.desktop` entry and an icon for Linux menus.
90
135
 
136
+ ### Homebrew
137
+
138
+ The kuizer repository is its own tap. The formula installs the CLI on macOS and Linux, the cask installs the desktop app on macOS.
139
+
140
+ ```bash
141
+ brew tap remcostoeten/kuizer https://github.com/remcostoeten/kuizer
142
+ brew install kuizer # the CLI and terminal UI
143
+ brew install --cask kuizer-gui # the desktop app, macOS only
144
+ ```
145
+
146
+ From the release after 0.1.3 on, the formula also installs bash, zsh and fish completions and the man pages. The macOS desktop app is not signed or notarized yet, so Gatekeeper blocks its first start; allow it once under System Settings, Privacy & Security.
147
+
148
+ ### Arch Linux
149
+
150
+ `packaging/aur` holds two PKGBUILDs: `kuizer` builds the CLI and the desktop app from source, `kuizer-bin` packages the release binaries. Both install the desktop entry, the icons and, from the release after 0.1.3 on, the shell completions and man pages.
151
+
152
+ ```bash
153
+ git clone https://github.com/remcostoeten/kuizer
154
+ cd kuizer/packaging/aur/kuizer-bin && makepkg -si
155
+ ```
156
+
91
157
  ### Installer script
92
158
 
93
159
  Downloads the right binary, checks it and puts it in `~/.cargo/bin`.
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "kuizer",
22
- "version": "0.1.3"
22
+ "version": "0.3.0"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.1.3"
51
+ "version": "0.3.0"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/remcostoeten/kuizer/releases/download/v0.1.3"
3
+ "https://github.com/remcostoeten/kuizer/releases/download/v0.3.0"
4
4
  ],
5
5
  "bin": {
6
6
  "kuizer": "run-kuizer.js"
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "detect-libc": "^2.1.2"
10
10
  },
11
- "description": "Keyboard-driven disk cleanup for developers: finds node_modules, build output, tool caches and duplicate files, trashes only what you select",
11
+ "description": "Keyboard-driven PC cleaner that also deeply cleans developer artifacts, caches, toolchains, Docker and duplicates, and deletes only what you select",
12
12
  "devDependencies": {
13
13
  "prettier": "^3.9.6"
14
14
  },
@@ -70,7 +70,7 @@
70
70
  "zipExt": ".tar.xz"
71
71
  }
72
72
  },
73
- "version": "0.1.3",
73
+ "version": "0.3.0",
74
74
  "volta": {
75
75
  "node": "18.14.1",
76
76
  "npm": "9.5.0"