Skip to content

mantrandev/heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

heartbeat

Keeps Claude usage sessions alive by sending a lightweight heartbeat command at scheduled times, resetting the 5-hour inactivity limit before each work session.

How it works

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'

Usage

chmod +x claude-heartbeat.sh
./claude-heartbeat.sh

Run it in a persistent session (tmux, screen, or a launch agent) so it stays alive across the day.

Configuration

Edit the JOBS array in claude-heartbeat.sh:

JOBS=(
    "HH:MM|command"
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages