Skip to main content

How We Reclaimed About 75 GB from an AI Development Mac

Netsujo Inc. ·

Figure: Concept visual of regenerable files accumulating, being checked individually, and storage being recovered. Measured values are in the text.
How We Reclaimed About 75 GB from an AI Development Mac

When AI agents work on coding tasks in parallel, they leave more than source code behind. Dependencies, build output and separate working directories accumulate. Removing a folder that another task still needs can break the development environment.

On November 13, 2026, at 20:18 JST, a Netsujo development MacBook Pro had just 31.79 GiB of free space on its data volume. We reviewed regenerable files individually before removing them.

The result: 120 directories removed and 69.963 GiB reclaimed—approximately 75 GB. Immediately after the cleanup, free space was approximately 99.76 GiB. GiB and GB are different units of storage; we use GiB alongside the approximate GB figure so the reported measurements can be checked.

This is not a copy-and-paste deletion recipe. It is a record of how we decided what was safe to remove, how we measured the effect, and what needs to change to prevent the problem from returning.

Where the disk space went

At Netsujo, we use multiple AI agents—software systems assigned work such as modifying code or running tests. We manage these agents and their workspaces using an internal development-operations system called Agent OS. The name refers to our tooling, not Apple's macOS.

To let agents work on the same project independently, we use Git worktrees: separate working directories associated with one code repository. Each workspace can acquire large generated directories, especially:

  • node_modules: a folder holding external software dependencies installed for a JavaScript application
  • .next: a folder containing output created by Next.js, a framework used to build web applications

These folders can usually be recreated. Being regenerable does not make them safe to remove while a job is still using them.

Our investigation found that one Agent OS worktree area, totaling approximately 51 GiB, sat outside the roots listed in the existing cleanup configuration. Elsewhere in the Netsujo development tree, we identified 324 candidate generated directories with a combined logical size of approximately 177.79 GiB.

Those figures describe what we found—not what we deleted. We did not clear the entire 51 GiB area or all 324 candidates.

How we checked each candidate

First, Netsujo approved fixed lists of candidate paths. We verified that the list had not changed using its SHA-256 hash, a computed fingerprint of the file's contents.

Immediately before removing each directory, the process checked five things:

  1. Is this still the same directory? We checked filesystem identity and ownership instead of trusting a path alone, and excluded symbolic links that redirect to other locations.
  2. Does it contain tracked source code? We checked the Git working directory and whether Git tracked the target, limiting removal to generated directories.
  3. Can we see an active job or reservation? We checked open files visible to the executing user and active workspace assignments in our Control Plane—Netsujo's system for tracking which AI job currently owns or has reserved a working directory. A reservation prevents two agents from modifying the same workspace simultaneously.
  4. Can the Mac accept the operation? We required a permissive reading no more than 120 seconds old from Heat Guard, our internal load-monitoring safeguard. If the gate changed to CLOSED, processing stopped.
  5. Did storage usage really fall? We measured the data volume before and after deletion and saved a receipt, meaning an auditable record of the target, result and instructions for recreating it.

The important feature was the fresh check immediately before each removal. On a busy development machine, a workspace unused a few minutes ago may now be active.

What we actually recovered

On narrow screens, scroll the table horizontally to read the measured-space column. The two measured portions are 25 Agent OS directories (16.739 GiB) and 95 other directories (53.224 GiB).

What we actually recovered
Workspace areaDirectories removedMeasured space reclaimed
AI workspaces managed by Agent OS2516.739 GiB
Other Netsujo development workspaces9553.224 GiB
Total12069.963 GiB (about 75 GB)
Measured November 13 storage recovery: 25 Agent OS directories reclaimed 16.739 GiB and 95 other development directories reclaimed 53.224 GiB, totaling 69.963 GiB across 120 removals.
Figure: Sum of per-removal data-volume use deltas, excluding the separate browser-restart swap reduction.

Another 18 entries were skipped: 17 were already absent and one did not pass the load safeguard. Skipped candidates were not counted as removals.

We measured the reduction in used space on the Mac's APFS data volume. APFS is the filesystem macOS uses to store files. A directory's apparent size does not always equal the amount of disk space a deletion makes available, so we did not simply add up folder sizes. The sum of per-removal changes and the net increase in free space between 20:18 and 20:44 represent different measurement intervals; they need not be numerically identical.

A further 15 GiB became available for a different reason

After the generated-file cleanup, free space was approximately 99.76 GiB at 20:44 JST. Later, at 21:57, the Mac's owner restarted the Brave browser. Free space rose to about 115 GiB.

This second increase came from a reduction in swap—disk space macOS uses temporarily when moving data out of memory. Swap usage dropped from around 18.85 GiB to 3.27 GiB after the restart.

We did not add that space to our artifact-cleanup result. Keeping these two effects separate helps explain what actually improved and what needs a different kind of preventive action.

Why we have not enabled automatic mass deletion

This was a one-time, explicitly authorized recovery. Although we are developing an automated cleanup system, its deletion stage was not yet approved for routine production use on November 13.

The safeguards used here also had limits. For example, the 14-day age test came from a Git working directory's index timestamp, not a verified last-use timestamp for every generated file. The open-file check operated within the executing user's permissions; it was not complete proof that no other user was using the directory.

Future automated cleanup needs stronger checks for hidden sensitive files, other users' references, current job ownership and an independently accepted removal mechanism. When evidence is incomplete, leave the candidate untouched.

Making recovery repeatable without making deletion reckless

We already run read-only capacity and load checks every three hours across three development Macs. We have added a weekly Monday review of regenerable files that may be eligible for cleanup.

Download the read-only 10-second Mac observer script to inspect capacity and load without removing files or stopping processes. Review the script before running it.

A weekly review does not mean a weekly mass deletion. Each new candidate still needs fresh evidence, a precisely scoped authorization and an approved execution path. Otherwise it remains a recorded candidate, not an instruction to delete.

By the evening of November 13, the Mac had again exceeded 100 GiB of free space. Twenty-four-hour stability and formal deployment of disk-aware admission controls were still unverified, however.

The wider lesson is that parallel AI development needs lifecycle management for its artifacts: where each one lives, which job may still need it, how it can be recreated and what a removal actually changed. Reclaiming disk space matters. Recording why a deletion was permissible is what makes the next recovery safer.

Source note: Figures are based on Netsujo's November 13, 2026 (JST) internal measurements, pinned removal manifests, per-removal receipts and a separate post-browser-restart reading. The original records include non-public operational details and are not accessible anonymously. This article reports the bounded measurements and their limitations.

Note: This case documents Netsujo's own development environment. It does not authorize readers to delete similarly named files on their machines without checking their use and recovery requirements. AI assisted with the manuscript.