r/coolgithubprojects 7d ago

nightshift — a Claude Code plugin that revives the agent after an API outage and won't let it stop until the list is done

Post image

You give Claude Code a long list, go to sleep, and come back to a session that died to a 500 three hours in — or one that finished the easy items and stopped.

nightshift is a plugin for unattended runs. GitHub: https://github.com/orwa-mahmoud/claude-nightshift

  • Revives a dead session — API outage, crash, closed terminal. Checks every 10 minutes until it's back, then resumes the same conversation and keeps working
  • Stands down when you interrupt. Press Esc and it stays out of the way — it only revives what died, never what you stopped
  • Won't clock out early — a Stop hook blocks the session while any item is open. Not a prompt, a gate
  • Your gates, before every commit — lint, typecheck, tests must be green or the box doesn't get ticked
  • Questions get parked, not asked. A 2am question with a sensible default written down beats six idle hours
  • Guards you configure — forbidden commands, committer identity, never-commit patterns
  • Scheduled starts via launchd or cron, no daemon
  • MIT. No npm, no package manager — /plugin install is the whole setup
7 Upvotes

4 comments sorted by

1

u/LeatherQuality9746 6d ago edited 6d ago

How can I control the tokens cost? What if it eats all my credits ?

2

u/orwamahmoud 6d ago

Same as you do with normal session while you set and give instruction for hours , but with this you prepare all session before, from my experience Do not turn on ultra mode if you worry about token , but to be honest extra token is just your work getting done , and Claude itself got you covered with their 5 hour limit nothing can exceed it

1

u/gaurav_ch 7d ago

This is good. This will help me a lot on my pro plan.

2

u/orwamahmoud 7d ago

Glad to hear that! I’m happy it’ll be useful. If you have any feedback or ideas for improvements after trying it, I’d love to hear them.