Last active
May 2, 2026 21:39
-
-
Save sbeckeriv/f13e558ac234d4c823ff693f9a85f2a7 to your computer and use it in GitHub Desktop.
Claude auto resume kitty terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Using kitty terminal to tell Claude to continue after the limit has been reached and is available again. | |
| # claude-resume 02:20 2 | |
| # claude-resume 02:20 2 "continue planning the best.." | |
| # End of LM Studio CLI section | |
| claude-resume() { | |
| if [[ ! "$1" =~ ^[0-9]{2}:[0-9]{2}$ ]]; then | |
| echo "Usage: claude-resume HH:MM WINDOW_ID [message]" | |
| return 1 | |
| fi | |
| if [[ -z "$2" ]]; then | |
| echo "Usage: claude-resume HH:MM WINDOW_ID [message]" | |
| return 1 | |
| fi | |
| local MSG="${3:-continue}" | |
| local SECS=$(( $(date -j -f "%Y-%m-%d %H:%M" "$(date +%Y-%m-%d) $1" +%s) - $(date +%s) )) | |
| [ $SECS -lt 0 ] && SECS=$(( SECS + 86400 )) | |
| echo "Resuming Claude window $2 at $1 in ~$(( SECS / 60 )) minutes with message: \"$MSG\"" | |
| ( sleep $SECS && kitten @ send-text --match id:$2 "${MSG}"$'\r' ) & | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment