Developer builds self-deleting launchd script to auto-migrate Claude Code model settings
A developer has shared a macOS automation script designed to automatically update Claude Code's settings.json when the Fable 5 model is retired on July 7, 2026. The script uses macOS's launchd scheduler to run a one-time job that replaces the 'fable-5' model identifier with 'opus' using the jq command-line tool. To prevent accidental early execution or catch-up firing on boot, the script includes a date guard that exits immediately if run before the target date. Once the migration is complete, the job unregisters itself via launchctl unload, ensuring it does not persist as a recurring no-op process. The script also creates a backup of the original settings file and sends a macOS notification to inform the user that the unattended change was made.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in