Open source contribution · Shell · Go · macOS · CLI
tw93/ Mole
Open-source Mac tool that cleans caches, uninstalls apps along with their leftovers, runs maintenance, analyzes the disk and monitors the system from the terminal.
- 37 merged PRs
- 38 commits to the project
- +3.5k lines added
- 76.1k GitHub stars
The project
Mole is a free, open-source command-line tool that covers what usually takes Mac apps such as CleanMyMac, AppCleaner, DaisyDisk and iStat Menus: cleanup of caches and leftovers, app removal with related files, system maintenance, disk analysis and live monitoring. It runs on Intel and Apple Silicon Macs from macOS 12 onward.
Because it can delete files, Mole validates paths, protects system and shared locations, asks for confirmation when an action needs it and skips anything it cannot prove safe to change. Cleanups can be previewed first, activity is logged for later review, and installation goes through Homebrew or an official script.
How each PR was made
-
One problem per PR
Each PR fixes a single thing with the smallest possible change. That keeps reviews simple, lowers the risk of side effects and lets one change be reverted without taking others with it.
-
The problem becomes a test
Fixes come with automated tests that cover the case that used to fail, so the problem cannot come back unnoticed.
-
The project's own bar
Formatting, static analysis and the full test suite run in the project's continuous integration, and a change only lands after the maintainer's review.
-
Written for the reviewer
Each PR description explains the problem, the change and how it was tested, so the maintainer can decide with confidence.
Every PR, in business terms
Click a PR to see the problem, what was done and the value delivered. The link at the end of each one leads to the full technical discussion on GitHub.
-
#2004merged Nov 15, 2026 Optimize moves on to the next task when a check times out In the optimize command, a measurement or scan that timed out inside one task aborted every task after it; the delay now affects only that task and the others run.
- The problem
- Mole's optimize command runs a sequence of maintenance tasks, such as refreshing system caches, clearing saved application states, reviewing launch items, and repairing recent file lists. In several of them, when sizing a folder, scanning files, or reading a configuration ran past its time limit, the timeout was treated as a cancellation. The run stopped there, without closing that task's result and without running the ones that came after.
- What was done
- A timeout in these checks now stays inside the task: a size that could not be measured is treated as unknown, a scan that timed out marks the task as failed, and a launch item that could not be read is skipped and counted, without the set being declared healthy. Real interruptions and timeouts during file removal still cancel the run. Tests check that the next task runs and that the summary reflects the failures.
- Value delivered
- A slow folder no longer interrupts the whole maintenance run, and the final summary shows which tasks did not complete.
-
#1998merged Nov 15, 2026 Cleanup continues when sizing a browser or cache item fails The whole cleanup was cancelled when the size of an old browser version, a stored firmware file, or a cache could not be measured; now only that item goes without a size and the rest is cleaned.
- The problem
- Before removing each item, Mole measures its size to report how much space was freed. In five cleanup routines, those for old browser versions, the Edge updater, the Handoff cache, device firmware files, and Tart caches, a failure or timeout in that measurement was treated as a cancellation. A single unreadable or slow item ended the routine and blocked the cleanup sections that followed.
- What was done
- Unlike the fix for external drives, this one brings the same tolerant behavior to these five routines: a failed or slow measurement carries on with an unknown size, and only a real interruption cancels. In a dry run, an item whose sizing timed out is marked as a partial estimate. For Tart, reclaimed space is reported only when both the before and after measurements work; otherwise the message just says the cache was pruned. Tests exercise failure, timeout, and interruption in each routine.
- Value delivered
- A slow or unreadable file no longer costs the whole cleanup, which now frees all the space it can.
-
#1996merged Nov 15, 2026 Disk analyzer cursor no longer vanishes or skips visible rows In the disk analyzer, the arrow keys skipped rows that were on screen and could move the cursor onto a hidden row, where it disappeared; the cursor now stops only on displayed rows and reaches all of them.
- The problem
- Mole's disk analyzer lists folders by size and, in the overview, hides the ones already measured as empty. Keyboard navigation followed a different rule: it skipped any item of size zero. Inside a folder, empty files and folders that could not be read showed on screen but could not be selected. In the overview, moving down from the last visible row put the cursor on a hidden one, the marker vanished from the screen, and Enter could open an item that was not being displayed.
- What was done
- Navigation and rendering now share the same hidden row rule. In the overview the cursor skips only hidden rows and stays on the last visible one when nothing lies beyond it; inside a folder it visits every row. Selection moves back to a visible row when the current one is measured as empty, and Enter does not open a hidden row. Tests cover the overview edges, live sorting, zero size items, and items that could not be read.
- Value delivered
- Anyone navigating by keyboard always sees where the cursor is and can select every item shown on screen.
-
#2008merged Nov 14, 2026 Fish completion suggests bash, zsh, and fish under the right subcommand In the Fish shell, the subcommand that generates completion scripts did not suggest the shell names, because of a condition that looked at the wrong word on the command line; bash, zsh, and fish are now suggested right after it.
- The problem
- Mole generates completion scripts for three shells, and the subcommand that generates them takes the shell name as its argument: bash, zsh, or fish. In the Fish script, each rule for these suggestions carried two conditions, and one of them used a helper function that compared the wrong word on the command line, the program name instead of the subcommand. That condition was never met, and the suggestions did not appear.
- What was done
- The three rules now have a single condition, built from Fish's own functions, that offers the shell names once the completion subcommand has been typed and none of them has been chosen yet, following the pattern of the other subcommands. The faulty helper function was removed. A test checks the rules generated for both command names and the absence of a duplicated condition.
- Value delivered
- Fish users get the right suggestions when setting up Mole's completion, without having to consult the help.
-
#2006merged Nov 14, 2026 Cleanup skips only the Clang cache when the system lookup times out If the lookup that locates the user's cache folder on macOS took too long, the whole cleanup was cancelled; now only the Clang module cache is skipped and the remaining steps carry on.
- The problem
- To clean the Clang compiler's module cache, Mole asks the system where the user's cache folder lives. When that lookup ran past its time limit, the step returned the timeout as if it were a cancellation, and the developer cleanup sequence and everything after it stopped running. A read only lookup that never got to delete anything brought the whole command down.
- What was done
- Unlike the size measurement fixes, this one concerns the lookup that locates the folder: on a timeout, the step records the reason in the debug log and ends without cleaning anything, letting the following steps run, as the Go cleanup already did. A real interruption signal is still passed along and cancels the rest. The test simulates the lookup with success, timeout, failure, and two interruption signals and checks what happens to the next step in each case.
- Value delivered
- A momentary system slowdown costs only one uncleaned cache instead of the entire cleanup.
-
#1964merged Nov 10, 2026 Memory pressure level on macOS read directly from kernel The system monitor searched for status words in a tool output that never printed them; the pressure level is now read from the kernel and flags memory strain.
- The problem
- When inspecting memory in the status dashboard, the monitor ran a system tool and parsed its output for words indicating normal or critical conditions. Because that diagnostic command outputs page statistics and free percentage without naming pressure levels, the pressure metric always returned empty. Consequently, memory strain warnings never appeared and the machine health score failed to penalize memory starvation.
- What was done
- The probe now reads the kernel sysctl metric reporting actual macOS virtual memory pressure, mapping numerical dispatch codes to warning and critical states. The memory card interface was updated to display a status line only when memory requires attention, eliminating visual clutter during normal operation. Automated tests verify numerical level mapping, absolute path command execution, and warning rendering.
- Value delivered
- Users receive accurate alerts when their Mac experiences memory pressure, identifying resource bottlenecks before applications freeze.
-
#1968merged Nov 9, 2026 Bluetooth connection status parsed from macOS group section headers Bluetooth accessories were reported as disconnected in system inspection outputs; connection status is now extracted from native section headers.
- The problem
- When querying Bluetooth peripherals on macOS, the parser expected an explicit connection line under each listed accessory. However, native system profiler outputs organize devices under section group headers for connected and disconnected hardware without repeating that line for each entry. Because the parser treated group headers as unrecognized device attributes, every accessory was marked as disconnected in structured exports and live monitoring.
- What was done
- Unlike drive cleanup passes and kernel memory probes, this change refines the peripheral parser: the routine now identifies section headers, propagating connected status to items within the connected group and disconnected to others. Whenever an accessory includes an explicit connection line, that property is preserved for backwards compatibility across macOS versions. New unit tests validate both grouped section formats and per-device status outputs.
- Value delivered
- Structured system status outputs now accurately report which keyboards, mice, and audio accessories are actively connected to the computer.
-
#1966merged Nov 9, 2026 External volume cleanup continues when metadata file sizing fails Removing residual metadata files on external drives aborted whenever a single file size check failed; the cleanup routine now skips the read error and finishes the drive.
- The problem
- When clearing hidden AppleDouble metadata files on external volumes, the utility measured the size of each item before deletion or dry run recording. If an individual file became unreadable due to permissions, disappeared during the pass, or timed out, the loop exited immediately. This cancelled the removal of all remaining metadata files on the drive and terminated the command with error exit codes and an incomplete cleanup banner.
- What was done
- Unlike system status metric probes, this change targets the external drive cleanup engine: AppleDouble file sizing now adopts fault-tolerant inspection, falling back to zero bytes and continuing the scan on read failures. Process termination signals still stop execution immediately, while sizing timeouts mark dry run estimates as partial. Automated bats tests verify that unreadable or timed-out metadata files no longer prevent the cleanup of remaining volume items.
- Value delivered
- External storage maintenance finishes reliably even when encountering locked, missing, or corrupted filesystem metadata files.
-
#1946merged Nov 8, 2026 Default cleanup preserves Cypress automated test runner binaries Routine cache sweeps deleted local Cypress application binaries; the PR proposes protecting the path by default to prevent repetitive large downloads.
- The problem
- The Cypress end-to-end testing framework places its desktop execution engines and binary bundles inside the user cache directory on macOS. Routine cleanup sweeps treated this folder as disposable temporary data and removed it entirely. Consequently, the next local test run failed to start until the developer waited through a redownload of over one gigabyte of binary assets.
- What was done
- The PR proposes registering the Cypress cache location in the core high-risk protection list and default whitelist patterns, mirroring safeguards already in place for automation tools like Playwright. The entry is also added to the interactive whitelist catalog. Automated test assertions verify that the core protection guard rejects deletion attempts against the Cypress folder and its application bundles.
- Value delivered
- Keeps local test automation operational across maintenance sweeps, eliminating redundant multi-gigabyte downloads and project delays.
-
#1866merged Oct 27, 2026 Dry-run cleanup by search no longer falls through to the removal routine In dry-run mode, the find-and-delete functions recorded each candidate and, instead of moving to the next one, continued into the removal routine, duplicating records and measurements; they now move on right after recording.
- The problem
- Mole has a dry-run mode that shows what a cleanup would do without deleting anything. In the functions that locate files by pattern and delete them, with and without privileges, each candidate was recorded in the dry-run ledger, but the condition meant to skip to the next one only did so when recording failed. With a successful record, execution continued into the removal routine, which, also being in dry-run mode, measured the file size again and recorded the same candidate a second time. Beyond the repeated work, the duplicate caused a false error code when the ledger file was not set, and the count in the privileged variant came out wrong.
- What was done
- Both functions now move to the next candidate right after recording it, never reaching the removal routine; the privileged variant still counts the accepted candidate before moving on. Two automated tests create files, run each function in dry-run mode with the removal routine replaced by a tracer, and verify that nothing was removed, that each target entered the ledger once, that the count matches and that the exit code is zero.
- Value delivered
- The dry run shows exactly what the real cleanup would do, with each file counted once and no false failures, which sustains the trust of anyone reviewing before deleting.
-
#1842merged Oct 24, 2026 Optimize command accepts the short dry-run alias across CLI operations The optimize command rejected the short dry-run flag supported by other subcommands; it now recognizes the standard shortcut.
- The problem
- Nearly every subcommand across the tool provides the short dash-n flag to simulate actions in dry-run mode before modifying the system. However, the system optimization command accepted only the full long option, terminating with an unknown option error whenever users supplied the standard short alias.
- What was done
- The command line parser for the optimization tool now accepts the short alias alongside the long dry-run flag, setting the simulation flag accordingly. The command help output was updated and automated BATS tests ensure the alias is properly documented and accepted.
- Value delivered
- Aligns CLI flags across all subcommands, providing a consistent dry-run experience throughout the tool.
-
#1840merged Oct 24, 2026 Touch ID menu cancels without altering PAM rules on closed input The interactive Touch ID menu treated closed input as Enter confirmation; it now cancels cleanly without touching system authentication files.
- The problem
- When launching the interactive Touch ID configuration menu without subcommands inside automated scripts or with standard input closed, the character reader received an immediate end-of-file signal. The menu logic treated this empty result as an Enter keypress, immediately attempting administrative privilege escalation to alter PAM authentication files and toggle Touch ID without explicit human confirmation.
- What was done
- Both the enable and disable menu branches now check the exit code of the character reading operation, aborting with exit code 1 if the input stream terminates. New automated BATS regression tests verify that non-interactive execution with closed input safely cancels across both configured and unconfigured states without modifying system files.
- Value delivered
- Prevents accidental and unattended modifications to sensitive operating system authentication rules in automated environments.
-
#1838merged Oct 24, 2026 Shell completion cancels without touching configs on closed input In non-interactive runs, closing standard input was treated as user confirmation; the command now cancels without modifying startup scripts.
- The problem
- When configuring shell completion inside automated workflows or environments without an interactive terminal, standard input closed immediately upon reading user confirmation. The script treated end-of-file input as an empty string, matching the Enter key default, and automatically appended initialization hooks into shell profiles such as zsh, bash, or fish configurations without explicit approval.
- What was done
- Both standard and fish prompt routines now evaluate the exit status of the character read command, aborting with a cancellation message and exit code 1 when input closes. Automated BATS regression tests confirm that unattended execution without user input cancels cleanly and leaves shell files untouched.
- Value delivered
- Prevents automated scripts from inadvertently modifying shell configuration files without user confirmation.
-
#1819merged Oct 23, 2026 External disk cleaner blocks internal volumes on modern macOS versions Internal volumes mounted in macOS were not rejected by external disk cleanup; safety checks now recognize the updated disk utility format.
- The problem
- The external volume cleanup command is designed to remove temporary and hidden cache files specifically from removable USB media. To guard against accidental file loss, the tool queries the macOS disk utility and rejects any drive flagged as internal storage. Modern macOS releases changed the internal drive indicator from a dedicated key to a device location line. Because of this formatting change, secondary internal partitions mounted under the volumes directory were no longer flagged as internal and could be modified by mistake.
- What was done
- Volume validation now inspects disk utility metadata for both the legacy internal marker and the modern device location format. New automated test cases verify that internal disks under either syntax are rejected immediately, while removable drives and disk images proceed as expected.
- Value delivered
- Prevents accidental modifications to internal computer partitions during removable drive cleanup operations.
-
#1817merged Oct 23, 2026 Project cleanup permits folders mapped to the macOS data volume Path validation blocked cleaning build artifacts located on the macOS data volume; safety rules now evaluate paths through their root aliases.
- The problem
- In modern macOS installations, user files reside on a dedicated data volume mounted under system directories. Developers frequently configure synthetic root links to point workspaces like source directories directly to this storage volume. When purging build artifacts and project dependencies, the tool resolved physical paths starting with system prefixes. Mole safety guard against modifying critical system trees mistook the physical mount prefix for protected operating system files and blocked cleanup operations.
- What was done
- Path normalization now checks whether directories on the data volume match paths accessible from root system mount points, applying the corresponding root deletion rules. Critical operating system directories and volume metadata stores remain strictly protected against deletion. Automated unit and fuzz tests confirm that project workspaces are safely cleared while core system directories remain untouchable.
- Value delivered
- Enables developers to purge heavy build caches and dependencies from custom macOS workspaces without triggering false security refusals.
-
#1816merged Oct 23, 2026 Touch ID checks ignore commented configuration lines in PAM files Commented lines in macOS authentication files caused Mole to treat Touch ID as active; only uncommented configuration rules are now recognized.
- The problem
- On macOS, enabling Touch ID for system privilege escalation requires an entry in PAM configuration files, and the operating system ships a default template file where this rule is commented out with a hash symbol. When checking whether Touch ID was configured, Mole searched for the module name anywhere in the file. If an administrator created the file from Apple template or commented out the rule to disable Touch ID, Mole falsely concluded that Touch ID was already enabled, refused to activate it, and produced misleading prompts during authentication.
- What was done
- Detection was consolidated into a dedicated check that requires the Touch ID entry to have no preceding comment character on its line. Automated BATS tests verify that commented entries in PAM files are correctly identified as unconfigured and that enabling Touch ID appends the active rule as intended.
- Value delivered
- Allows users to configure and enable Touch ID reliably even when macOS template files contain commented-out authentication entries.
-
#1776merged Oct 18, 2026 Mole update checks versions via git if GitHub API fails When the GitHub API hit rate limits or became unavailable, Mole's update check aborted with a connection error; the PR proposes querying release tags via git as a fallback.
- The problem
- When running Mole's interactive update, discovery of the latest stable version queried only the GitHub API and release redirects. Under rate limits or network hiccups, these queries returned empty and the command aborted with a connection error, even when the machine retained full git access to the repository.
- What was done
- The PR proposes a fallback query for remote tags using git whenever the API does not answer. The call runs in a sanitized environment with a bounded timeout, filtering strictly for valid macOS release tags while ignoring other platforms, and automated tests verify fallback behavior upon API failure.
- Value delivered
- With the change, updating Mole does not fail due to temporary API limits, improving the reliability of system maintenance.
-
#1774merged Oct 18, 2026 Uninstaller warns about app leftovers in Fish shell After uninstalling an app, Mole searched for lingering references in Bash and Zsh configs but skipped Fish; the PR proposes including Fish configuration in the check.
- The problem
- After uninstalling an application, Mole scans terminal startup files to warn about shortcuts and variables still pointing to the removed binary. Although the utility natively supports Fish shell in completions and removal, this post-uninstall check only inspected Bash, Zsh and AI agent configurations, omitting Fish shell configuration.
- What was done
- The PR proposes adding Fish's configuration path to the list inspected after an uninstallation. The scan remains strictly read-only in the user's home folder without modifying files, and new tests confirm detection and reporting of orphaned references in Fish.
- Value delivered
- With the change, people using Fish receive the same residual configuration warnings that users of other shells already enjoyed when uninstalling software.
-
#1772merged Oct 18, 2026 Deep purge command answers the short help flag Unlike Mole's other commands, deep purge rejected the -h flag with an error and status 1; the PR proposes accepting -h and showing instructions with success.
- The problem
- The mo purge command scans disks to eliminate leftover build artifacts from development projects. While every other command in Mole accepts both -h and --help to display the help screen, deep purge only supported the long form. Calling mo purge -h triggered an unknown option error and exited with status 1, surprising people checking command options in their terminal.
- What was done
- The PR proposes recognizing -h in the deep purge argument parser, showing the help text and exiting with code zero. The help listing itself was updated to show the short form, and automated tests ensure mo purge -h displays usage correctly and that every command in the utility responds to the shortcut.
- Value delivered
- With the change, quickly checking deep purge instructions follows the convention of the rest of the tool and no longer interrupts workflows with unexpected errors.
-
#1769merged Oct 18, 2026 Mole's protection list covers symbols for every Apple platform Mole's cleanup deletes Xcode debug symbols for iOS, macOS, watchOS, tvOS and visionOS, but the protection list only allowed keeping the iOS ones; the PR proposes extending protection to every platform.
- The problem
- Mole has a protection list where users mark what the cleanup must never delete. The Xcode debug symbol cleanup covers iOS, macOS, watchOS, tvOS and visionOS, but the matching option on the list only protected the iOS folder. Anyone who checked that option to keep their symbols still lost those of the other platforms on the next cleanup.
- What was done
- The PR proposes that the list option cover the symbol folder of every platform the cleanup reaches. Choices already saved with the old iOS-only rule are converted when read: the option shows as checked and, on save, stores the broader rule. A new test checks the new option, the conversion of the old rule and the protection of symbols in each of the six platform folders.
- Value delivered
- With the change, anyone developing for several Apple platforms can keep the debug symbols of all of them with a single check, without losing the setting they already had.
-
#1768merged Oct 18, 2026 Incomplete downloads are found even with a space in the user name On Macs whose user folder has a space in its name, such as /Users/First Last, Mole's incomplete downloads cleanup never found the files; the PR proposes treating the folder path as a single unit.
- The problem
- Mole cleans browser downloads left halfway in the Downloads folder, such as Safari's .download files, Chrome's .crdownload files and .part files. The search built the folder path without quotes, and when the user folder path had a space, as in /Users/First Last, the shell split it into pieces before looking for files. On those machines the search never found anything, and the incomplete downloads kept taking up space.
- What was done
- The PR proposes walking through the extensions while keeping the folder path quoted in the search, and ending the step right away when the Downloads folder does not exist. The cleanup's safety checks stay the same, including the check that the file is not open in another program before deleting it. A new test creates a user folder with spaces and checks that the incomplete download is found and goes through that check.
- Value delivered
- With the change, people with a two-word user folder name get back the space taken by abandoned downloads, with the same protections as before.
-
#1766merged Oct 18, 2026 Mole installer no longer relies only on the GitHub API for the version When the GitHub API failed or rate-limited requests, Mole's installer gave up on downloading prebuilt binaries and tried to compile them, which broke installation on Macs without Go; the PR proposes looking up the version through git as well.
- The problem
- Mole's installer downloads prebuilt binaries of helper tools, such as the status and disk analysis ones. When the current version's binary has not been published yet, it asks the GitHub API for the latest available version to use instead. If the API failed, from rate limiting or a network problem, this fallback was skipped and the installer went straight to compiling the source code, which requires the Go language; on a machine without it, installation failed.
- What was done
- The PR proposes that, with no answer from the API, the installer find the latest published version by querying the repository through git, as the source download step already does. Checksum and provenance attestation checks still apply before anything is installed. A new test simulates the API failure and checks that the binary is downloaded using the version obtained through git.
- Value delivered
- With the change, installing Mole no longer depends on a single service being available, and people without Go on their Mac are not left without an installation because of a momentary API limit.
-
#1765merged Oct 18, 2026 Removing Mole requires confirmation from a real terminal Run from a script or with redirected input, the command that removes Mole treated the missing answer as a confirmation and deleted everything; the PR proposes refusing removal when no terminal can confirm it.
- The problem
- The mo remove command uninstalls Mole itself, along with its terminal launchers, settings and caches, and asks the user to confirm by pressing Enter. Reading that key did not check whether a person was at a terminal: with input coming from a script, a pipe or an empty file, the read failed and became an empty answer, which the command took as Enter. An automation or a background run could remove Mole without anyone's consent.
- What was done
- The PR proposes that removal accept confirmation only from an interactive terminal, the same rule that already protects app uninstalls. Without a terminal, or if the key cannot be read, the command exits with an error code and leaves the installation, settings and caches intact, suggesting a dry run first. Tests can still drive the confirmation through a dedicated mode, and a new test checks that nothing is removed without a terminal.
- Value delivered
- With the change, removing Mole always depends on an explicit decision by the person at the terminal, and a misconfigured automation can no longer delete the tool by mistake.
-
#1762merged Oct 17, 2026 Developer cache cleanup no longer hangs on bun or pip3 Mole's developer cache cleanup checked bun and pip3 with no time limit, and a hung command left the cleanup stuck indefinitely; the check now gives up after 2 seconds.
- The problem
- Before cleaning developer tool caches, Mole checks that each tool works by asking for its version. For bun and pip3, this check had no time limit, unlike the ones for corepack, uv, conda and pnpm. If the command was a broken shim, got stuck on a network drive or opened a window asking for input, the whole cleanup stalled with no end in sight.
- What was done
- Both version checks now use the same quick-detection limit as the other tools, 2 seconds. If bun or pip3 does not answer in time, the check fails and the cleanup carries on with the other tools instead of waiting indefinitely. Two new tests check that each query runs under this limit.
- Value delivered
- Anyone running Mole's developer cleanup no longer has the terminal held up by a badly installed tool, and the rest of the cleanup runs as usual.
-
#1732merged Oct 13, 2026 Mobile developer cleanup extended to visionOS debug symbols Mole's mobile developer cleanup now includes visionOS debug symbols, freeing gigabytes accumulated by Apple Vision Pro hardware.
- The problem
- When developing with Xcode on macOS, every connected physical device platform version generates 1 to 3 GB of debug symbols in DeviceSupport folders. Mole's developer cleanup routine (clean dev) handled iOS, watchOS, and tvOS, but skipped the visionOS directory introduced in Xcode 15.2+, silently consuming gigabytes of disk space over time.
- What was done
- The Xcode device support cleanup was extended to include visionOS DeviceSupport alongside existing platforms, applying identical retention rules: older versions are pruned, the most recent platform symbols are preserved, and cleanup is skipped while Xcode is active. A Bats regression test verifies the invocation.
- Value delivered
- Reclaims gigabytes of disk space for Apple Vision Pro developers while preserving active debugging symbols, matching the exact safety standards of other Apple platforms.
-
#1731merged Oct 13, 2026 Firmware cleanup with Apple TV updates and active deletion protection Mole now cleans cached Apple TV firmware files while protecting open or in-flight IPSW files from accidental deletion during device restores.
- The problem
- Mole's cleanup routine pruned cached firmware (.ipsw) files for iPhone, iPad, and iPod, but omitted cached Apple TV updates, where each restore file consumes gigabytes of storage. Furthermore, the cleaner lacked active handle verification to confirm whether an IPSW file was currently open or being restored by the system, posing a risk of corrupting an active restore if cleanup was triggered.
- What was done
- The fix adds the Apple TV software updates directory to the firmware cleanup pipeline and introduces strict handle safeguards: open files, undetermined handle states, and probe timeouts are safely retained (fail-closed); handle checks occur before sizing, after sizing, and at the final deletion boundary. Seven automated tests validate open handles, symlink traversal prevention, and safe signal cancellation.
- Value delivered
- Frees gigabytes of disk space on macOS from cached Apple TV firmware with robust safety, ensuring ongoing downloads and active device restores are never interrupted or corrupted.
-
#1726merged Oct 12, 2026 Xcode uninstall without visionOS leftovers Uninstalling Xcode with Mole leaves the visionOS debugging data behind because Apple renamed the folder; the PR adds the official name to the cleanup list.
- The problem
- When uninstalling Xcode, Mole also removes the debugging data Xcode keeps for each Apple platform, which can be generated again when needed. The list covers iOS, macOS, watchOS, tvOS and the provisional name from the visionOS beta period, but not the official name used since Xcode 15.2, so that folder stays behind on disk.
- What was done
- The PR adds the folder with the official visionOS name to the same list, under the same rules: only rebuildable data is included, while user data and preferences, app packages built for distribution, installed build tools and simulators are all preserved. The uninstall safety test is extended to this folder as well.
- Value delivered
- With the change, developers building for Apple Vision Pro who remove Xcode with Mole get the same treatment as the other Apple platforms, without the removal reaching beyond rebuildable data.
-
#1725merged Oct 12, 2026 Status dashboard that does not freeze waiting on the battery The status dashboard's battery query has no time limit and can freeze updates if the macOS service hangs; the proposed fix caps it at one second, like every other reading.
- The problem
- Mole's status dashboard shows CPU, memory, disk, network, power and processes in real time. Every reading has a deadline to respond except the battery query sent to macOS. Since a full refresh waits for all readings to finish, a hang in that system service can stop the dashboard's numbers from updating, with no limit on how long.
- What was done
- The proposed fix gives the battery query a one-second limit, in line with the other readings. If the service does not answer in time, the battery is left out of that refresh and the rest of the dashboard carries on. A new test confirms the query goes out with that deadline set.
- Value delivered
- With the change, a slow or stuck macOS service no longer freezes monitoring: at worst, the battery information is missing while the service is unresponsive.
-
#1724merged Oct 12, 2026 Broken startup items flagged instead of passing as healthy The audit of programs macOS starts in the background reads the wrong field in some setups and misses items pointing to a deleted program; the proposed fix follows the rule macOS itself uses.
- The problem
- During maintenance, Mole warns when a program set to run in the background at login points to a file that no longer exists. When the setting holds the program's full path and, in another field, just the command name, the audit reads the name, decides there is no path to check and stays silent about an item whose program has been deleted.
- What was done
- The proposed fix reads the full-path field first, which is what macOS uses to start the program, and only falls back to the other one when it is missing, the same order Mole's uninstaller already uses. Broken items are still only reported, never removed automatically, and a new test reproduces this kind of setup.
- Value delivered
- With the change, the maintenance report stops treating an item that points to a deleted program as healthy, and the user learns what needs a look. The item stays in place until they decide what to do.
-
#1723merged Oct 12, 2026 Mac installs that skip the Windows release When the newest published release is the Windows one, the Mac installer may adopt it and fail to download; the proposed fix only accepts Mac releases from that lookup.
- The problem
- Mole publishes its Mac and Windows releases in the same GitHub repository. The install script asks GitHub for the latest release and, if the answer is a Windows release, takes it without checking and skips the fallback lookup that already filtered those out, which leads to download errors for the Mac files.
- What was done
- The proposed fix has the installer check the release name GitHub returns and accept only the pattern used by Mac releases. If the answer is empty or a Windows release, the installer moves on to the fallback lookup, which already did this filtering. Two new tests cover rejecting the Windows release and accepting the Mac one.
- Value delivered
- With the change, anyone installing Mole on a Mac through the script no longer depends on the order in which Mac and Windows releases are published, and both ways of finding the latest release follow the same rule.
-
#1722merged Oct 12, 2026 Finder list repair extended to macOS 15 and later Mole's maintenance skips the format macOS has used since Sequoia for Finder favorites and recent items lists; the proposed fix adds that format to the search for corrupted files.
- The problem
- Mole's maintenance command looks for corrupted files among the lists macOS uses for Finder favorites and recent documents, but it only recognizes the older formats. Starting with macOS 15 (Sequoia), the system writes these lists in a newer format that falls outside the check, and the result can report everything as healthy without having looked at them.
- What was done
- The proposed fix adds the newer format to the search under the same rules as before: a list is only removed when it fails the integrity check run by macOS's own tool, and the apps' recent documents list stays out of the repair. A new test simulates a corrupted list in the new format and confirms it gets repaired.
- Value delivered
- With the change, anyone on macOS 15 or later gets these lists actually checked, and the maintenance result reflects what was really inspected.
Other merged PRs 6 PRs
Not yet described in detail on this page; the title is the one on GitHub.
- #2097 merged Nov 24, 2026 fix(clean): keep kubectl credential plugin caches in ~/.kube/cache
- #2095 merged Nov 24, 2026 fix(clean): leave a running Chromium browser's cache out of the user cache sweep
- #2093 merged Nov 24, 2026 fix(clean): count the System section's privileged sweeps in the run total
- #2058 merged Nov 21, 2026 fix(clean): log owner-command cleanups outside clean_tool_cache in operations.log
- #2048 merged Nov 20, 2026 fix(clean): read and count the size Homebrew cleanup reports freeing
- #2046 merged Nov 20, 2026 fix(clean): count rows that print their own size in the run total
Figures updated on Nov 24, 2026.
The same care in your system
The habits behind these PRs carry over to backends that move money: reproduce the problem before fixing it, prove the fix with a test and keep sensitive data from leaking.