Deskit

Deskit documentation

Deskit is a toolkit for keeping your computer clean and fast. It works on macOS, Windows and Linux. This folder documents the dkit command-line tool; a desktop app is coming soon.

Commands

One page per command, in commands/.

Page Command What it does
System status dkit status Live view of CPU, memory, disks, network, battery, temperatures and processes
Doctor dkit doctor Checks a few things worth knowing about; reports only, changes nothing
Disk analyzer dkit analyze Shows what is using space, folder by folder, and what clean or purge covers
Clean dkit clean Removes caches, logs and leftovers, with review and undo
Purge dkit purge Removes build folders from projects you have not touched lately
Uninstall dkit uninstall Removes an app, or several, together with what they left behind (macOS)
Installers dkit installers Removes installer files you have finished with from Downloads and Desktop
Keep list dkit keep Your own list of what must never be removed
Undo, history and release dkit undo, dkit history, dkit release Puts cleaned items back, shows past runs, frees held space
Completion dkit completion Prints a tab-completion script for your shell
Update dkit update Replaces dkit with the latest release, after checking the download; the only command that uses the network
Remove dkit remove Removes Deskit itself: the files it keeps, and the program

Run dkit with no command in a terminal to choose from a menu: press a number, the first letter, or move and press enter. It only chooses; the command then runs exactly as if you had typed it. When the command ends you are back at the menu, after a key press if it printed something to read. Press q in the menu to leave. Outside a terminal, a bare dkit prints the help text and exits with code 2.

Options every command takes

Option What it does
--plain Print once as text, without opening a full-screen view
--json Print once as JSON, for scripts and agents. See Scripts and AI agents
--debug Also say what was looked at and why each thing was taken or left

In a terminal some commands open a full-screen view. Piped, or with --plain or --json, every command prints once and exits.

--debug

For bug reports. It adds a log of what Deskit did: which rules and folders it considered, why an item was skipped or refused (the built-in limits, your keep list, its age, missing proof), each system program it ran and how long that took, and each item it moved into holding.

dkit clean --dry-run --debug 2> debug.txt   # the report on screen, the log in a file
dkit clean --dry-run --json --debug         # JSON on stdout, the log on stderr
  • The log goes to stderr, one line each starting with debug, so the report on stdout is unchanged and --json output still parses.
  • A full-screen view owns the terminal, so there the log is written to debug.log in Deskit’s data folder instead, and the file’s path is printed when the view closes. Each such run replaces the file. Add --plain to get the log on stderr.
  • The log names files and folders on your machine and stays on your machine. Deskit sends it nowhere. Read it before you attach it to a bug report, and cut what you would rather not share.
  • Without --debug nothing is logged and nothing is slower.

Sizes are counted the way your system counts them, so they match its file manager: 1 GB is 1000 MB on macOS and Linux, and 1024 MB on Windows. With --json, sizes are always plain bytes.

Guides

Status of this project

Early. Every feature here has been run on macOS. The Windows and Linux code paths and cleanup rules exist and pass the test suite, but have not yet been exercised on real machines. Treat them as untested.

From docs/README.md at v0.1.0-alpha.2.