Grain.
Security and privacy

What Grain can see, and what it does with it.

Grain asks for Full Disk Access, which lets it see every file on your Mac. That's a lot of trust to ask for. This page says exactly what Grain does with it, and links each claim to the code that does it, so you don't have to take our word for it.

No networkGrain never connects to the internet. Not even to check for updates.
Trash onlyIt never deletes a file. Put Back always works.
Names, not contentsThe scan reads names, sizes and dates. It never opens your files.
One folderEverything it knows lives there. Delete it and Grain forgets.

Why it asks for Full Disk Access

Without it, macOS hides large parts of your disk from apps: Mail, Messages, Safari, other apps' data and much of your Library folder. Grain would show you a smaller disk than you have, and "System Data" would stay a mystery, which is the problem Grain exists to solve.

You give it in System Settings › Privacy & Security › Full Disk Access, and you can take it back there at any time.

It is not an administrator password. Grain never asks for one, and it has no helper running in the background with extra rights. If something can only be removed by an administrator, Grain shows it to you and leaves it for you to do.

What it reads

Most of what Grain does needs only the names and sizes of files. It reads inside a file in just two cases, both on your Mac.

The scan

The name, size, dates and type of every file and folder, read in bulk from macOS. It never opens a file, never follows a link, and never downloads an iCloud file that isn't on your Mac.

Keeps: a snapshot of names and sizes, so the next launch opens instantly.

read the code: attrs.rs

Watching for changes

Which folders changed, from macOS's own file system events. It never opens your files to do this.

Keeps: the updated snapshot, and how big things were over time for Growth and Storage Health.

Finding duplicates

To tell whether two files of the same size are identical, Grain fingerprints them: first the first and last 16 KB, and the whole file only if those match.

Keeps: the fingerprints, so it doesn't read the same file twice. Never the contents.

read the code: hash.rs

Spotting personal files

Before it suggests removing something from your own folders, Grain looks inside to make sure it isn't personal: ID numbers, keys, scanned documents, photos of people. It reads the text of a PDF's first 20 pages, the first 1 MB of a text file, a document's text, and pictures through Apple's Vision framework, shrunk to 2,048 pixels. For videos it reads only the camera name.

Keeps: categories only, such as "has an ID number" or "shows a face". Never the text it read.

read the code: sensitive.rs

the words it reads are checked in memory, then dropped

What it never does

  • Connect to the internet. Grain's code makes no network requests: no analytics, crash reports, update checks or downloaded rules, not even optional ones. Its Rust engine doesn't include a networking library at all. check the dependencies: Cargo.lock
  • Delete a file. Removing anything means moving it to the Trash with macOS's own Trash function, the one Finder uses, so Put Back works. Grain never empties your Trash. read the code: TrashService.swift
  • Touch protected places. macOS's system folders, every Photos library, iPhone and iPad backups, sign-in tokens, AI assistants' chat histories, anything inside an app, and Grain's own data. No rule can offer them, and no folder that holds them can be moved whole. read the code: safety.rs
  • Tick your personal files for you. Photos, documents and anything that looks sensitive are shown, never selected in advance.
  • Call something safe because it's old. Every suggestion says what the item is, what removing it does, whether it comes back and how sure Grain is.

Before anything moves

A cleanup goes through four checks, and any one of them can stop it.

It gets a safety level

Every item is Safe, Review, Managed (macOS frees it by itself) or Protected. Grain never moves a Protected or Managed item, and anything else moves only when you choose it.

The plan is worked out again

Grain doesn't trust what it decided earlier. It checks protection afresh and refuses anything protected, anything inside an app, anything macOS manages, and any folder with something protected inside it.

The file is checked just before it moves

Grain confirms it is still the same file it scanned: the same disk and file ID, and not swapped for a link. So nothing can redirect a cleanup somewhere else.

It goes to the Trash, and into the history

Every cleanup is written down, with Undo in Grain and Put Back in Finder.

What it keeps, and where

Everything Grain knows is in one folder on your Mac: ~/Library/Application Support/Grain/. Its history and what it has learned are saved so that only your user account can read them.

WhatFile
The last scan, so launches are instantsnapshots/
Every cleanup and Put Backhistory.jsonl
Disk history, for Growth and Storage Healthhistory-<volume>.v1.log
What you kept and dismissedlearning.v1.json, overrides.json
Your own category rulescategory-rules.json
Duplicate fingerprints, and personal-file categoriesdupes-hashes.v2.bin, relevance.v1.bin

To make Grain forget everything, quit it and delete that folder. To uninstall it, also drag Grain from Applications to the Trash.

The app you download

Each release is built from the public code as one app for Apple Silicon and Intel, with Apple's hardened runtime turned on.

It isn't notarized by Apple yet. Grain is made by a student, and the Apple developer account that notarization needs costs $99 a year, which isn't in the budget yet. So macOS asks you to confirm once that you want to open it. That's the only difference: the app is the same either way. Every screen, step by step.

Every release lists the SHA-256 checksum of its disk image. To check yours, run this in Terminal and compare:

shasum -a 256 ~/Downloads/Grain-0.2.1-universal.dmg

Or skip the download and build it yourself from the code. Here's how, and it takes a few minutes.

This website

No analytics, no cookies and no trackers. The fonts are served from this site. Your browser asks GitHub's public API for two things only: the latest release, so the download button points at it, and the number of stars. The site is hosted on Vercel, which keeps standard request logs like any web host.

Found a problem?

Please don't open a public issue. Report it privately on GitHub, with what you found, what a bug or an attacker could do with it, and how to reproduce it, ideally with a small test folder rather than your real files. You'll get a reply within a week, and with your permission you'll be credited when the fix is released.

What counts

  • Anything that removes, moves or changes a file you didn't choose, or gets around the Trash.
  • A rule or suggestion that could mark important data as safe to remove.
  • Reading or exposing file contents beyond the two cases above.
  • Any network connection made by Grain.
  • A crash caused by a crafted file name, path, metadata or saved Grain file.

Fixes go into the latest release. The full policy is in SECURITY.md.

Seen enough to trust it?