explaingit

azer/diskwhere

3GoAudience · developerComplexity · 1/5ActiveSetup · easy

TLDR

Read-only macOS terminal tool that browses folders and files by size so you can see what is eating your disk and open the offender in Finder.

Mindmap

mindmap
  root((diskwhere))
    Inputs
      Folder path
      Keyboard nav
      Home or root
    Outputs
      Size listings
      Disk overview
      Finder open
    Use Cases
      Find big folders
      Quick disk audit
      Spot top entries
    Tech Stack
      Go
      macOS
      TUI

Things people build with this

USE CASE 1

Browse your home folder by size in a terminal TUI

USE CASE 2

Get a one-shot disk overview with diskwhere status

USE CASE 3

List the largest entries in any directory with diskwhere top

USE CASE 4

Open a heavy folder in Finder by pressing o and decide what to do there

Tech stack

GomacOSTUI

Getting it running

Difficulty · easy Time to first run · 5min

Build needs Go 1.21 or newer on macOS, and Cmd+Enter is grabbed by Terminal so use the o shortcut to open in Finder.

In plain English

diskwhere is a small command line tool for macOS that helps you figure out what is taking up space on your disk. You run it in your terminal and it shows a text based interface listing folders and files by size, so you can drill down to find the big ones. The README is very short and the tool is deliberately limited in what it can do. The key safety promise is that diskwhere is read only. It does not delete files, does not move anything to the trash, and does not run a cleanup wizard. Its only job is to find what is eating your disk. Once you find a folder or file you want to act on, you press a key to open it in Finder and decide what to do there yourself. Installation is done by cloning the repository and running make or make install, which puts the binary at /usr/local/bin/diskwhere. Building from source needs Go 1.21 or newer and macOS. Usage covers a few commands: the default opens a browser on your home folder, browse takes a specific path, status gives a one shot disk overview, and top lists the largest entries in a directory. Inside the browser you move with arrow keys or vim style j and k, enter directories, jump to home or root, page up and down, rescan, and quit. Inside the browser, pressing o or Option+Enter opens the highlighted item in Finder; the README notes that Cmd+Enter is intercepted by Terminal.app and iTerm2 by default so the o shortcut is the reliable one. The Makefile also exposes targets for running directly with go run, cleaning the binary, formatting and vetting the code, and tidying Go module dependencies.

Copy-paste prompts

Prompt 1
Clone diskwhere and run make install to put the binary at /usr/local/bin
Prompt 2
Use diskwhere browse on my Downloads folder and find the top 5 largest items
Prompt 3
Run diskwhere status for a quick overview of free space on my Mac
Prompt 4
Add a key binding to diskwhere that moves a selected file to the Trash instead of Finder
Prompt 5
Walk me through the Makefile targets for go run, fmt, vet, and tidy
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.