Keeps Claude usage sessions alive by sending a lightweight heartbeat command at scheduled times, resetting the 5-hour inactivity limit before each work session.
A background loop checks the current time every 60 seconds and runs the configured commands at their scheduled times — once per day each.
06:00 → claude-crossian --model haiku -p 'hi'
08:00 → claude --model haiku -p 'hi'
chmod +x claude-heartbeat.sh
./claude-heartbeat.shRun it in a persistent session (tmux, screen, or a launch agent) so it stays alive across the day.
Edit the JOBS array in claude-heartbeat.sh:
JOBS=(
"HH:MM|command"
)