Safe Paths Reference

Used by the disk-cleanup skill to decide what can be scanned and what must never be deleted.


Paths that are safe to scan

The following directories are good starting points when looking for recoverable space:

PathPlatformNotes
~/DownloadsBothMost common source of recoverable space
~/DesktopBothOften accumulates large files
~/DocumentsBothCheck for large PDFs, archives, old projects
~/MoviesmacOSLarge video files
~/MusicBothLarge audio libraries
~/PicturesBothRaw photo libraries
~/.npmBothnpm cache — safe to delete, npm rebuilds on demand
~/.yarn/cacheBothYarn offline cache — safe to delete
~/.cachemacOS/LinuxGeneral application caches
~/Library/CachesmacOSPer-app cache folders — individual sub-folders are usually safe
%LOCALAPPDATA%\TempWindowsWindows temp files
%APPDATA%\npm-cacheWindowsnpm cache on Windows

Paths that must NEVER be deleted

macOS — blocked at skill level

The delete_files skill enforces this list and will return an error if any of these paths are targeted:

PathReason
/Filesystem root
/SystemCore macOS system files
/LibrarySystem-wide libraries and frameworks
/ApplicationsInstalled applications
/usrUnix system binaries
/binEssential shell commands
/sbinSystem administration binaries
/etcSystem configuration files
/varVariable system data (logs, spool)
/privateSymlink targets for /etc, /tmp, /var
/private/etcSystem network / host configuration
~ (home dir itself)The home directory itself — only its contents

Windows — blocked at skill level

PathReason
C:\WindowsCore Windows OS
C:\Program Files64-bit installed applications
C:\Program Files (x86)32-bit installed applications
C:\ProgramDataShared application data
C:\System Volume InformationSystem Restore / VSS snapshots

Directories skipped automatically by get_large_files

The get_large_files tool never descends into these directories during recursive scans:

node_modules        — npm/yarn packages (per project)
.git                — Git repository objects
.npm                — npm cache
.yarn               — Yarn cache and PnP files
.cache              — Generic cache directory
Library             — macOS system/app library (top-level)
__pycache__         — Python bytecode cache
.venv / venv        — Python virtual environments
$Recycle.Bin        — Windows Recycle Bin
System Volume Information
Windows             — Windows OS directory
Program Files
Program Files (x86)

If the user specifically wants to clean one of these directories (e.g. node_modules inside a project they are deleting), they must provide the explicit path to delete_files and confirm the action.


Rules enforced by delete_files

  1. Absolute paths only — relative paths are rejected
  2. Inside home directory only — paths outside os.homedir() are rejected
  3. Home directory itself is blocked~ as a target is rejected
  4. Blocked system paths (listed above) are rejected with an error message
  5. dryRun: true must be shown first — always present dry-run output to the user before calling with dryRun: false

When guiding a disk-cleanup session, work through locations in this order (most recoverable first):

  1. ~/Downloads — large, user-owned, rarely needed after download
  2. ~/.npm / ~/.yarn/cache — developer caches, safe and fast to clear
  3. ~/Library/Caches (macOS) — per-app caches; clear sub-folders individually
  4. ~/Movies / ~/Music — large media, confirm with user each item
  5. ~/Documents — only delete files the user explicitly identifies
  6. Trash / Recycle Bin via empty_trash — final step after file deletions