yylwdyx-commits

Claude Code Auto Continue — Development skill for Claude Code

Development community

Auto-continue for Claude Code: when a session stops on an API error (connection lost, sleep, ECONNRESET, rate limit, 500), type "continue" so overnight runs keep going.

How to install Claude Code Auto Continue

This entry records only its repository, not the path inside it, so there is no exact command to give. Open yylwdyx-commits/claude-code-auto-continue and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Auto Continue does

Auto-continue for Claude Code: when a session stops on an API error (connection lost, sleep, ECONNRESET, rate limit, 500), type "continue" so overnight runs keep going. Plugin, zero deps, tmux / Terminal / iTerm2.

Alternatives in Development

  • Part 1 — Deep Research Prompt Builder — I'm going to help you create a research prompt for your project 2.1k ★
  • Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
  • OpenSquirrel — For people who get distracted by agents 1.3k ★

README

claude-code-auto-continue

**Auto-continue for Claude Code.** When a long or overnight Claude Code session stops on an API error, this plugin types `continue` into that terminal, so the session picks up where it stopped without anyone at the keyboard.

You leave Claude Code running on a big task overnight. At 3 a.m. the Wi-Fi drops for ten seconds, or the laptop dozes off, and the session stops with:

API Error: Connection lost mid-response.
API Error: Your computer went to sleep mid-response.
API Error: Connection dropped (ECONNRESET).
API Error: Can't reach the API server
API Error: 500 Internal server error
You've hit your session limit · resets 4:00am

In the morning it is still sitting there waiting for you to type "continue". This plugin types it for you.

It does that and nothing else. It does not wrap Claude Code, proxy your traffic, change your prompts or install a daemon that runs forever. It's one small Node file with no dependencies.

How it decides

It types `continue` into a session only when all of these are true:

  • the Claude Code session is alive and has been idle for 60 seconds
  • the last message in its transcript is an API error written by Claude Code itself (isApiErrorMessage)
  • the error is less than 6 hours old

A session that finished its work normally is **never** touched.

If the session errors again after the nudge, it waits longer before the next try (1, 2, 4, 8, 16, 30 minutes), and gives up after 8 consecutive failures. At most 3 sessions are being nudged at the same time. While the network is down it keeps backing off; once the network is back, the next nudge goes through.

Terminals

Terminal How it types Tested
tmux (macOS / Linux) tmux send-keys to the pane that owns the session's tty yes
macOS Terminal.app AppleScript do script into the tab with that tty, without stealing focus yes
iTerm2 AppleScript write text into the session with that tty not yet, PR