Dev Tools · 1h ago
Self-deleting script auto-migrates Claude Code model before shutdown
A developer created a launchd job that automatically updates Claude Code's settings.json to switch from the Fable 5 model to Opus before Fable 5 shuts down on July 7, 2026. The script includes a date guard, jq-based model replacement, a notification, and self-destructs by unloading its own plist after execution. This ensures a one-time migration without leaving behind a recurring no-op job.
Meridian48 take
Clever automation for a niche problem, but the self-destruct pattern is a neat trick worth noting for any one-shot maintenance task.
Read the full reporting
Auto-Migrating Claude Code with a Throwaway launchd Job — a Script That Deletes Itself When Its Work Is Done →
DEV Community
claude-codeautomation