kuizer-gui 0.3.2

Desktop app for kuizer, a keyboard-driven PC cleaner that also deeply cleans developer artifacts, caches, toolchains, Docker and duplicates, built on GPUI
<p align="center">
  <img src="packaging/icons/512x512.png" width="88" alt="kuizer logo" />
</p>

<h1 align="center">kuizer</h1>

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.

Website and documentation: [kuizer.app](https://kuizer.app), [kuizer.app/docs](https://kuizer.app/docs).

<p align="center">
  <img src="https://shieldcn.dev/github/remcostoeten/kuizer/release.svg?font=jetbrains-mono" alt="release" />
  <img src="https://shieldcn.dev/github/remcostoeten/kuizer/ci.svg?font=jetbrains-mono" alt="CI" />
  <img src="https://shieldcn.dev/github/remcostoeten/kuizer/license.svg?font=jetbrains-mono" alt="license" />
  <img src="https://shieldcn.dev/crates/kuizer.svg?font=jetbrains-mono" alt="crates.io" />
  <img src="https://shieldcn.dev/badge/core-Rust-black.svg?font=jetbrains-mono&logo=rust" alt="core: Rust" />
  <img src="https://shieldcn.dev/badge/deletion-asks%20first-black.svg?font=jetbrains-mono" alt="deletion: asks first" />
  <img src="https://shieldcn.dev/badge/platform-Linux%20%7C%20macOS-black.svg?font=jetbrains-mono" alt="platform: Linux and macOS" />
</p>

<p align="center">
  <img src="docs/gui/overview.png" width="100%" alt="The kuizer desktop app after scanning ~/projects: totals for project artifacts, caches and duplicates, with the largest projects and caches listed" />
</p>
<p align="center">
  <sub>The desktop app on Linux. The same scan runs in the terminal as <code>kuizer</code>.</sub>
</p>

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.


- **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.
- **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.
- **Trash.** `kuizer trash` shows the size of your trash, and `kuizer trash --clean` empties it for good.
- **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`.
- **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.
- **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`.
- **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.
- **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.
- **Root-owned leftovers, if you allow it.** With `delete.elevate = true`, items your user cannot remove are removed as administrator after one password prompt, `sudo` in a terminal and `pkexec` in the desktop app and the TUI. The administrator process runs the same checks first, and those items are deleted for good, not moved to the trash.
- **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`.
- **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.
- **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.
- **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.

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).

## Command line

```sh
kuizer                                     # interactive list of the current directory
kuizer ~/projects                          # interactive list of a folder, ? shows the keys
kuizer usage ~ --depth 2                   # show what fills your home folder (alias: du)
kuizer scan ~/projects --min-size 50MB     # print large artifacts
kuizer scan ~/projects --report            # open an interactive treemap report
kuizer dashboard ~/projects                # open a web overview of everything
kuizer clean ~/projects --dry-run          # show what clean would remove
kuizer clean ~/projects --idle 3mo         # remove safe items of projects untouched for three months
kuizer clean ~/projects --select all       # remove safe and review items, after a confirmation
kuizer clean --policy stale-deps --dry-run # preview a named policy from config.toml
kuizer policy list                         # list configured cleanup policies
kuizer policy show stale-deps              # show effective filters and selection of a policy
kuizer cache --group apps --group browsers # list app and browser caches
kuizer cache clean --select npm            # remove the npm cache
kuizer trash                               # show what the trash holds
kuizer trash --clean                       # empty the trash for good, after a confirmation
kuizer system                              # list package caches and the journal
kuizer system clean --dry-run              # show which package tool cleanups would run
kuizer big                                 # list large files and old downloads
kuizer big --clean --select old-download   # move old downloads to the trash, after typing the count
kuizer toolchain clean ~/projects          # remove toolchain versions no project pins
kuizer docker clean                        # remove dangling images, stopped containers and build cache
kuizer git ~/apps --gc --branches          # pack loose objects, delete merged branches
kuizer restore --last                      # trash mode: put the last run back
kuizer duplicates ~/Downloads --verify     # duplicate files, compared byte by byte
kuizer --json scan ~/projects              # every command prints JSON with --json
```

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.

### Policies and scheduled cleanups

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`.

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):

```cron
# Every Sunday at 03:00
0 3 * * 0 kuizer clean --policy stale-deps --yes -q
```

Or with a `systemd` user unit (`~/.config/systemd/user/kuizer-stale-deps.service` and `.timer`):

```ini
[Service]
Type=oneshot
ExecStart=kuizer clean --policy stale-deps --yes -q
```

```ini
[Timer]
OnCalendar=Sun *-*-* 03:00:00
Persistent=true

[Install]
WantedBy=timers.target
```

Each run records its policy name in `kuizer history`, and `kuizer dashboard` groups policy runs with their last run time and average cadence.

## Desktop app

`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.

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.

<p align="center">
  <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" />
</p>

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.

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.

<p align="center">
  <img src="docs/gui/light.png" width="100%" alt="The desktop app in the light theme with the settings panel open over the overview" />
</p>

```sh
kuizer-gui                                         # open the start screen
kuizer-gui ~/projects                              # skip the start screen and scan this folder
```

## Install

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.

### Homebrew

The kuizer repository is its own tap. The formula installs the CLI on macOS and Linux, the cask installs the desktop app on macOS.

```bash
brew tap remcostoeten/kuizer https://github.com/remcostoeten/kuizer
brew install kuizer                                 # the CLI and terminal UI
brew install --cask kuizer-gui                      # the desktop app, macOS only
```

The formula also installs bash, zsh and fish completions and the man pages. Without Homebrew, each release has a `.dmg` of the desktop app for Apple silicon and Intel. The macOS desktop app is not signed or notarized yet, so Gatekeeper blocks its first start; allow it once under System Settings, Privacy & Security.

### Arch Linux

Install the prebuilt CLI, terminal UI and desktop app from the AUR:

```bash
yay -S kuizer-bin
```

Run `kuizer` in a terminal or open kuizer from the application menu. With paru, use `paru -S kuizer-bin`. The separate `kuizer` AUR package builds from source.

### Debian, Ubuntu, Fedora and openSUSE

Each [release](https://github.com/remcostoeten/kuizer/releases/latest) has `.deb` and `.rpm` packages for x86_64, one for the CLI and one for the desktop app.

```bash
sudo apt install ./kuizer_*_amd64.deb ./kuizer-gui_*_amd64.deb
sudo dnf install ./kuizer-[0-9]*.x86_64.rpm ./kuizer-gui-*.x86_64.rpm
```

### Flatpak

Release 0.3.1 includes a Flatpak bundle with the CLI and the desktop app, for x86_64 and aarch64.

```bash
flatpak install --user ./kuizer-x86_64.flatpak
flatpak run com.remcostoeten.kuizer
```

### Installer script

Downloads the right binary, checks it and puts it in `~/.cargo/bin`.

```bash
curl -LsSf https://github.com/remcostoeten/kuizer/releases/latest/download/kuizer-installer.sh | sh
curl -LsSf https://github.com/remcostoeten/kuizer/releases/latest/download/kuizer-gui-installer.sh | sh
```

### npm

```bash
npx kuizer                                          # run the CLI without installing
npm install -g kuizer                               # or keep it installed
```

### cargo

```bash
cargo binstall kuizer                               # the prebuilt binary through cargo-binstall
cargo install kuizer                                # or build from crates.io
```

### From source

```bash
git clone https://github.com/remcostoeten/kuizer
cargo install --path kuizer
cargo install --path kuizer/crates/kuizer-gui
```

On Linux the desktop app needs the X11, Wayland, Vulkan and font development packages to build. On Arch: `libxkbcommon-x11 wayland vulkan-icd-loader fontconfig freetype2`. On Debian and Ubuntu: `libxkbcommon-x11-dev libwayland-dev libx11-xcb-dev libxcb1-dev libfontconfig-dev libfreetype-dev libvulkan-dev libasound2-dev`.

## Development

Requires Rust 1.88 or newer (edition 2024).

```sh
cargo test --workspace --all-targets -j 2 -- --test-threads=2   # unit and filesystem tests, in temp dirs only
cargo clippy --workspace --all-targets -- -D warnings            # lint, as CI runs it
cargo fmt --all --check                                          # formatting, as CI runs it
cargo deny check                                                 # advisories, licenses and duplicate crates
cargo run --release --example synth -- /tmp/kuizer-bench 200 100 # build a synthetic tree to scan
```

`./dev` is a keyboard menu for building, running and testing. To release, bump `version` under `[workspace.package]` in `Cargo.toml`, commit, and push a matching tag such as `v0.1.3`; the release workflow builds both binaries, packages them and publishes the GitHub release with the matching section of [CHANGELOG.md](CHANGELOG.md) as its notes. Contribution notes are in [CONTRIBUTING.md](.github/CONTRIBUTING.md) and the security policy in [SECURITY.md](.github/SECURITY.md).

<br/>

xxx,<br/>
[Remco Stoeten](https://remcostoeten.com)<br/>
<small>MIT</small>