We're making orbs hot-swappable and temporary, for flexibility and security.
Hot-swappable means you can switch a thread to a different orb size or provider mid-flight, one of our biggest requests. Temporary means Amp deletes an orb's file system after 7 days of inactivity.
Either way, Amp saves your Git changes and the files the agent needs before deleting the old orb. On your next message, Amp starts a fresh orb and restores your saved workspace so the agent picks up right where it left off.
Swapping an Orb
Need a bigger machine mid-flight, or want to move a thread between Amp and your own infrastructure? Open the thread's Orb menu and choose Change Orb…, or ask the agent to swap it for you.
Your uncommitted Git changes and the files in .amp/in/orb-backup/ are restored into the new orb. Everything else (running servers, installed packages, and files outside your repository or ignored by git) is not kept. Read Swapping an Orb for the details.
Orb Cleanup
An orb holds a copy of your repository and the secrets your setup put on it. When a vulnerability hits, patching an old orb means booting it up on the vulnerable image first, and only 2% of orbs are woken after 7 days anyway. Cleaning up idle orbs means your threads always land on fresh, patched environments instead of aging disks.
Three days before an idle orb expires, the thread shows a notice above the message box. Send a message (or let a scheduled automation run) to keep the orb. After 7 days, Amp deletes it and restores your workspace on your next message, the same way as a swap.
Read When an Orb Is Deleted for the full details.
Self-Hosted Orbs
Self-hosted orbs are not cleaned up by default. To delete idle self-hosted orbs too, turn on Idle Orb Cleanup in your workspace or personal settings, and Amp will send your dispatch program a delete job for each idle orb.
