!bash "${CLAUDE_SKILL_DIR}/arm.sh" "$ARGUMENTS"
Follow the output above.
If the output contains AWAY_PING_CRON= and AWAY_EXPIRY_CRON= lines (away mode starts):
- Call
CronCreatetwice- cron: the
AWAY_PING_CRONvalue, prompt:[away ping], recurring: true - cron: the
AWAY_EXPIRY_CRONvalue, prompt:[away expired], recurring: false
- cron: the
- Relay the first line of the output ("Away mode: …") to the user verbatim and stop. Say nothing else.
If the output contains an AWAY_DISARM line (disarm):
- Run
CronListandCronDeleteevery job whose prompt is[away ping]or[away expired] - Relay the first line of the output to the user verbatim and stop
Rules from then on:
- Turn whose prompt is
[away ping]: reply with exactly "ack". No reasoning, no tools - Turn whose prompt is
[away expired]: runCronListandCronDeleteevery job whose prompt is[away ping]or[away expired](a fired one-shot job still appears in the list, so delete this job itself too), then reply with exactly "Away mode ended" - Turn where the hook says
[away] The user is back…: follow it, delete the[away ping]/[away expired]jobs withCronListandCronDelete, then handle the user's input as usual. Do not mention away mode