gateway-resume
Installation
SKILL.md
Gateway Resume
Gateway restarts kill the current agent process. If you need to restart mid-task, you must create a durable wakeup before restarting.
This skill uses cron + isolated agentTurn + explicit delivery route (not systemEvent) so it:
- survives restarts (cron is persisted to disk)
- replies back to the same place (Discord channel, Telegram DM/topic, etc)
- can pin the cron run to the same model/thinking that was active in the requesting session
Procedure (recommended)
0) Tell the user you’re about to go down (own message)
Send a short message in the current chat before you schedule the restart:
- "Heads up — restarting the gateway for ~10–20s. I’ll be back momentarily and will resume automatically."
Keep this as its own message (don’t bundle it with other info).