COORD_X:005 // POST
Back to blogНазад в блог
case study | 2026-08-25 | 2 minмин | Telegram originalоригинал

How AI Helped Me Free Up 24 GB on My MacКак AI помог освободить 24 ГБ на Mac

How AI Helped Me Free Up 24 GB on My Mac

How I accidentally found 11 GB of forgotten cache on my Mac and freed up 24 GB in 15 minutes with AI

If you have a MacBook with 256 or 512 GB of storage, you probably know the problem: space disappears before your eyes. Install a couple of apps, work with media, test some AI tools, or open a few projects—and the disk is already in the red.

In situations like this, I used to open CleanMyMac, look at folder-size charts, and manually go through large files. It takes a while, and more importantly, standard cleaners often miss hidden system leftovers and developer caches.

A few days ago, I had only 1.4 GB of free space left, and the laptop started struggling. Instead of cleaning everything manually, I decided to bring in AI and ran the task in Claude / Codex.

Here’s what it found and how the safe cleanup process works:

1️⃣ An 11 GB hidden npm cache Honestly, I had no idea how much had piled up there. If you’ve ever run frontend projects or installed packages through Node, this cache can sit there as dead weight for years. AI found it in a couple of seconds.

2️⃣ Cold archives in Google Drive (Stream Mode) We moved large dumps, old backups, and rarely used archives to Google Drive. In Streaming mode, the files are visible right in Finder but don’t physically take up space on the local SSD. AI uploaded the files to the cloud, verified their MD5 checksums, and deleted the local copies only after a 100% successful check.

3️⃣ The APFS Snapshots trap in macOS A classic: you delete 15 GB of files, but the system shows no extra free space. Time Machine often creates local disk snapshots that keep deleted blocks around. AI found them and carefully freed up the space.

⚠️ Safety disclaimer: Any model can make a mistake or glitch, so you do all of this at your own risk. You should never blindly trust AI to delete files. The main rule: start with a Read-Only audit, and only delete anything manually or with your explicit confirmation.

🛠 Ready-to-use prompt and step-by-step guide: To keep the post from getting too cluttered, I put the universal prompt and instructions for Claude Code / Cursor / Codex into a public document.

Как AI помог освободить 24 ГБ на Mac

Как я случайно нашёл 11 ГБ забытого кэша на Mac и освободил 24 ГБ за 15 минут с помощью AI

Если у вас MacBook на 256 или 512 ГБ, вы наверняка знаете эту проблему: память тает на глазах. Стоит поставить пару программ, поработать с медиа, протестировать AI-инструменты или открыть пару проектов — и диск уже красный.

Раньше в таких ситуациях я открывал CleanMyMac, смотрел на графики размеров папок и вручную перебирал тяжёлые файлы. Это долго, а главное — стандартные клинеры часто не видят скрытые системные залежи и кэши разработчиков.

На днях у меня осталось всего 1.4 ГБ свободного места, и ноутбук начал задыхаться. Вместо ручной чистки я решил подключить AI и запустил задачу в Claude / Codex.

Вот что нашлось и как устроен безопасный процесс уборки:

1️⃣ Скрытый кэш npm на 11 ГБ Честно, я сам не подозревал, сколько там скопилось. Если вы хоть иногда запускали фронтенд-проекты или ставили пакеты через Node, этот кэш годами лежит мёртвым грузом. AI нашёл его за пару секунд.

2️⃣ Холодные архивы в Google Drive (Stream Mode) Тяжёлые дампы, старые бэкапы и архивы, которые нужны редко, мы выгрузили на Google Диск. В режиме Streaming файлы видны прямо в Finder, но физически не занимают локальный SSD. AI залил файлы в облако, сверил контрольные суммы MD5 и только после 100% проверки удалил локальные копии.

3️⃣ Ловушка APFS Snapshots в macOS Классика: удалили 15 ГБ файлов, а свободного места в системе не прибавилось. Time Machine нередко создаёт локальные снапшоты диска, которые удерживают удалённые блоки. AI нашёл их и аккуратно освободил место.

⚠️ Дисклеймер по безопасности: Любая модель может ошибиться или заглючить, поэтому все действия вы делаете на свой риск. Слепо доверять AI удаление файлов нельзя. Главное правило: сначала только Read-Only аудит, а любые удаления — строго руками или под вашим подтверждением.

🛠 Готовый промпт и пошаговый гайд: Чтобы не загромождать пост, я вынес универсальный промпт и инструкцию для Claude Code / Cursor / Codex в открытый документ.