Skip to content
navig-mePublic

About

Local-first macOS file cleanup with expiry rules. Preview matches, protect with Keep, and move expired items to Trash. Linux and Windows developer-preview downloads available.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

TinyPrune — automatic file cleanup rules for macOS

Downloads Latest release macOS 14+

TinyPrune is a free, MIT-licensed macOS app for automatic file cleanup with expiry rules. Choose folders, preview which downloads, screenshots or developer artifacts will expire, and protect important items with Keep. Eligible items move to macOS Trash, never permanent deletion.

macOS 14+ on Intel and Apple silicon. macOS is the only supported product and the public release focus while it stabilizes. The latest published macOS release is 0.2.3, an ad-hoc signed, not notarized GitHub prerelease; see its release record. Windows and Linux development is paused; neither is offered for new public installs.

TinyPrune Preview showing which files match a rule, when they expire and why

Website · Documentation · Downloads and release notes · Report a problem

  • Trash only. Items are moved to Trash, never permanently deleted. Items stay in the Trash until you or macOS empty it; use Finder's Put Back to restore, if available.
  • Preview first. Broad and developer rules start in Preview, and very broad folders (home, /Users, /Volumes, /private, whole volumes) are Preview-only, which schedules and explains matches but never touches a file.
  • Keep always wins. A kept item is never trashed, and neither is a folder containing one. Keep matches by file identity and falls back to its recorded path.
  • Explained decisions. Every candidate shows its rule, basis, deadline and overrides.
  • Local and private. Core cleanup reads filesystem metadata, never file contents, and needs no account or network. The app has no telemetry. Optional update checks use HTTPS and are on by default; the update path depends on how the app was installed, as described below. Installation always requires your confirmation. The website separately uses Google Analytics and PostHog.
  • Three interfaces, one engine. The app, a Finder menu and the tinyprune CLI all talk to the same background agent.

What can TinyPrune clean up?

Use case Starting rule Important boundary
Downloads Top-level DMGs after 7 days, ZIPs after 14, other items after 30 days in the folder Review files you want to retain and mark them Keep.
Screenshots Screenshot and Screen Shot filenames, 7 days after creation Choose the folder where your Mac actually saves screenshots.
Developer dependencies node_modules and .venv after project inactivity Start in Preview; dependency changes alone do not prove meaningful project activity.
Build output dist, build, target, coverage, and .cache after 30 days of project inactivity Match generated folders, not your source or release archives.
AI coding-agent leftovers Dedicated scratch workspace, session logs, edit backups, or debug logs TinyPrune does not identify which tool created a file. Transcripts and backups may be irreplaceable.

See the template reference for defaults, cache risks, and excluded folders, or the AI agent cleanup guide for scratch work and worktree cautions.

Moving files to Trash does not immediately free disk space. TinyPrune does not empty Trash or guarantee recovery after you or macOS empty it. It is a lifecycle-rule utility, not a duplicate finder, antivirus, or system optimizer.

Install

Requires macOS 14 or later (Intel and Apple silicon).

brew install --cask navig-me/tap/tinyprune

Homebrew installs 0.2.3. The public cask points to the published 0.2.3 DMG (build 26). The direct macOS download is also available. A real Homebrew upgrade from 0.2.2 to 0.2.3 was observed: the app and agent recovered and reported available after a first-spawn agent termination by macOS before main (Code Signature Invalid / Launch Constraint Violation). The exact constraint and cause remain unproven; no mitigation has shipped. Repeat upgrade/restart stability remains pending; see the release record. If 0.2.1 crashes on launch, run brew upgrade --cask tinyprune; 0.2.2 fixed that separate app crash.

Early releases are unsigned, not notarized pre-releases. The Homebrew cask clears quarantine for you. If you download the DMG directly, copy TinyPrune.app to Applications, try opening it once, then allow it under System Settings → Privacy & Security → Open Anyway. Homebrew installs update only with brew upgrade --cask tinyprune.

Key-enabled direct builds support Sparkle updates authenticated by EdDSA-signed feeds, release notes and DMGs, including ad-hoc builds without an Apple account. Check for new versions is on by default in Settings; Update Now opens the native confirmation dialog and installation is never automatic. Homebrew never constructs Sparkle; Homebrew and direct copies without a public key use GitHub release notices and manual download or brew upgrade. The Trash/update interlock remains active, including interrupted-update recovery for matching key-enabled ad-hoc direct targets.

The live macOS Sparkle feed publishes 0.2.3 (build 26, newest), retaining builds 25, 24, 23 and 22. Its protected public-verification workflow passed, checking the live feed, release notes and DMG hash/signature against the app's existing public key. This verifies publication and authentication, not production update installation; a Sparkle in-app update from 0.2.2 to 0.2.3 has not been verified.

EdDSA does not notarize the app or change first-install Gatekeeper approval. Sparkle replacements are expected not to carry browser-download quarantine, but an actual older/newer end-to-end installation remains unverified. See ADR 0009 for update trust, private-key loss/rotation and acceptance requirements.

On first launch, approve the background agent under System Settings → General → Login Items & Extensions, and enable the Finder extension there if you want the Finder menu.

Preview your first cleanup rule

  1. Open TinyPrune and authorize a folder you control, such as Downloads.
  2. Add a template and leave it in Preview.
  3. Review Upcoming and each item's explanation. Mark anything you want to retain Keep.
  4. Enable the rule only after the matches and deadlines are right. Pause cleanup whenever needed.

The installation guide, rule guide, and Preview guide explain the workflow. The Finder extension and CLI use the same background agent as the app.

Inspect and protect from the command line

With the macOS background agent installed and folder access granted:

tinyprune status
tinyprune upcoming --json
tinyprune why ~/Downloads/example.zip
tinyprune keep ~/Downloads/example.zip
tinyprune pause
tinyprune resume

Paths above are examples; use an item inside a folder you already manage. See the CLI reference for expiry overrides, configuration, JSON output, and exit codes.

Build from source

git clone https://github.com/navig-me/tinyprune && cd tinyprune
swift Scripts/package-app.swift
open .build/package/TinyPrune.app

Tests: see AGENTS.md. Architecture and release process: PLAN.md, ADRs/, .github/DEPLOYMENT.md. Every release (version, artifacts, signing mode, checksums, build number and verification status, including prepared, withdrawn and yanked ones) is recorded in RELEASES.md; the maintainer runbook is .github/RELEASING.md.

Cross-platform core

Windows and Linux development and new public releases are paused while macOS stabilizes. Earlier unsigned Rust previews are historical engineering evidence, not recommended public installs. Their immutable assets and existing signed update feed remain intact for installed preview users; no signing key is changed.

The Rust implementation has recorded CI/container coverage, not desktop acceptance. See the Rust workspace status matrix for tested environments and pending platform work. Swift remains the behavioral reference (ADR 0010); the Rust agent does not replace the macOS agent. Historical publication evidence remains in RELEASES.md.

License

MIT. Bundled fonts and Sparkle keep their own licenses; see NOTICE.md.

Rule and CLI behavior

  • Globs without / match the item name at any depth (like .gitignore); globs with / match the path relative to the managed folder. Only *, ? and ** are supported.
  • The Downloads and Temporary Workspace templates act on top-level items only.
  • CLI exit codes: 0 ok, 64 usage, 65 invalid data, 69 agent unavailable, 70 agent error, 75 timed out/interrupted/busy (the request may have been applied; check tinyprune status), 78 config roots not managed. --json errors are JSON too.

See CHANGELOG.md for changes.

About

Local-first macOS file cleanup with expiry rules. Preview matches, protect with Keep, and move expired items to Trash. Linux and Windows developer-preview downloads available.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages