What they did
The author, who writes a series under the name HomoFuturus about a Mac kept on around the clock, asked Claude Code to generate about 800 images overnight and report when done. Polling with a one-minute loop woke Claude, and spent tokens, on every check, and a background watch was reaped when memory ran low. So the author had Claude write a plain shell script that counts the output files, logs each count, and drops an alarm file plus a Mac notification at the target. Claude also registered it with launchd to run every minute. Claude then waited on a sleep loop for the alarm file and was told to inspect the images once it appeared. Later Claude built a small windowless Swift supervisor app to get past macOS folder permissions, plus a queue where timed jobs such as post publishing are dropped as files.
How it went
The real run produced 846 images in one night. In a test with a fake generator, Claude woke exactly once and spotted that all six files were the same image. The scheduler has run more than 60 jobs. While debugging slow images Claude listed the memory hogs; closing two apps cut swap from 49 GB to 20 GB and time per image from 739 seconds to 100 to 160.
Worth knowing
On macOS a launchd script cannot read ~/Documents and fails silently, with find returning 0, so the author moved to a tiny app that asks for permission once. Setting CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP=1 before starting Claude stops the waiting shell from being cleaned up under memory pressure.