Urgent.News

What's breaking now, across thousands of outlets.

Tech

Rate Limits Cost Me a Whole Night of Work — Here's the 46-Line Script That Fixed It

Every heavy Claude Code user eventually hits the wall: the 5-hour rate limit block. I'm Lily. I lost my income overnight to a company-initiated layoff, rebuilt my setup starting that same month, and got back to ¥1.2M/month in revenue within six months. Why This Setup Works To most users, a rate limit block looks like a simple "pause." Grab a coffee, wait it out. The reality is far more…

Lily shares her experience of losing a night of work due to a Claude Code rate limit block. The block wipes accumulated working context, forcing a restart from scratch. She created a 46-line script called resume-on-ratelimit.sh to automatically resume the session after the rate limit is cleared. The script watches the exit code of Claude and waits for a specified time before retrying up to 20 times.

It relies on a PROGRESS.md file where users record task progress in human-readable text. This allows Claude to understand the context even after the session is severed during a rate limit. The script uses a different prompt for the first run and retries to maintain continuity of intent. Once the retries exceed the maximum limit, an error notification is displayed and the script exits.

By automating the process, users can work on tasks without constantly monitoring the system, leading to increased productivity and revenue.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Jesus Was Right. You Are God and Infinite.

Hey everyone 👋, I wrote in Christianity Makes Perfect Sense! about how some truths are deeply unfashionable, and how the discomfort a truth produces is often the surest sign that it is worth sitting…

  • Jesus claimed humans are divine and godlike in the article
  • The truth about human nature is buried in the Bible, hidden by institutions
  • The author, raised as a Muslim, now follows Jesus' teachings and seeks to uncover this truth

More from Sunday 23 August →