Run hourly ops checks on a live TV site and repair what breaks

A Redditor built a 29-channel Internet Archive TV site with Claude Code in a week, then had it run hourly checks that pulled seven removed items and rescheduled channels in its first week.

Done withClaude Code· Nov 23, 2026

What they did

The poster built Afterglow, a free browser TV network with 29 channels of old film, TV and radio from the Internet Archive, using Claude Code over about a week: 57 commits and around 21,000 lines of Python and TypeScript, with a FastAPI backend on Railway and a React admin console. After launch they had Claude Code write a check script that prints one coded line per problem (missing media, schedule drift, dead air, failed agent runs and so on) or an all clear. A /loop runs that script every hour with a runbook prompt mapping each code to an action: mark taken-down items unplayable and reschedule the channel, wait an hour on transient errors, cap reschedules per hour, retry transient run failures once, and fix real bugs locally with a regression test and a commit. Deploying stays manual.

How it went

In the first week the loop removed seven items the Archive had taken down, some with a dozen episodes, rescheduled the affected channels and moved several drifting blocks back onto their slots. Most hours it reported all clear. It also changed its own check script a few times, for example to tell a permanently restricted file apart from a timeout and to retry connections dropped while the laptop slept. During the build it traced a daily late-start bug to the scheduler filling a short gap with a full film.

Worth knowing

The poster credits the limits written into the runbook (caps, waiting periods, things it must never do) for most of the value, and keeps commit separate from deploy. A /loop on a laptop stops when the laptop sleeps, so they are moving it to a scheduled cloud routine. Commenters praised the site but gave no independent account of the ops loop.

Try it

With Claude Code· 7 parts to fill in

Every hour, run [my check script] for [my site] and read its output. Each line has a code. For [code for removed content], mark the item unavailable with a dated note and reschedule what depended on it. For [code for transient errors], log it and act only if the same item fails again next hour. For [code for drift], fix at most [number] items per hour and never the same one twice in [hours]; if it recurs, look for the cause in the code instead. For a real bug, fix it locally with a regression test, run the tests and commit, then tell me. Never deploy and never print secrets. Log every action with a timestamp, and if everything is fine answer in one line.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related