Watchtower: Keep watch while
you sleep.
Set up monitoring and alerts with your AI coding agent.
Example: the status page you will have
All systems operational
- Website operational
- API operational
- Database operational
- Payments operational
- Email operational
Why it matters in the fog
The bug nobody tells you about.
Many people who hit a bug never report it. They leave. Free hosts also delete logs quickly (the money table below has the exact limits), so the evidence is gone unless you send it somewhere else. Once it is set up, you hear about a crash first, with the file and line that caused it.
Try it
Scrub the incident.
An example outage, one step at a time. Switch parts of the watch on, drag the slider, and see who knows what in each lane.
- A new version goes live.
- The first visitor hits a crash.
- More visitors hit it. Some leave.
- The site stops answering.
- The outage carries on.
- Someone has to notice.
- The fix goes out.
Nothing you type leaves this page. A free uptime check looks on a schedule: 5 minutes check interval (checked 2026-11-15, source)
What this is in the clear
Four lamps, one night watch.
Watchtower is how you find out that something broke before a customer tells you. It has four parts.
Error tracking
A service that records every crash with its details and alerts you.
Logs
A written trail of what your app did.
An uptime monitor
An outside service that visits your site on a schedule and alerts you when it fails.
An incident plan
What you do when the product is down or badly broken for your users.
When to do it
Four sectors, swept in order.
Before launch: error tracking, a source map, an uptime monitor, a health check and one alert that reaches your phone. Launch week: watch the dashboard and tune the noisy alerts. After launch: a public status page, a short write-up after any outage, and a repeat test of your alerts.
- 2Early
- 20Before launch
- 6Launch week
- 4After launch
What the agent does
The agent takes the night shift.
- Installs and sets up error tracking in your code, and uploads a source map (a file that turns compressed production code back into your real file names and line numbers) in the build.
- Tags each error with a release tag (a label for the version that shipped it), so you know which deploy caused it.
- Adds structured logs (log lines written as data, so you can filter them) with a request id (one id that follows a single request through every log line), and removes personal data from them.
- Writes a health check endpoint (a /health address that answers "ok" or "broken") and adds heartbeat pings to your scheduled jobs.
- Writes the runbook (a short checklist for one situation), severity levels and message templates.
- Sends a test error to prove that an alert arrives.
What you do yourself
The parts that need you.
- Create the accounts: an error tracking tool (Sentry or PostHog) and an uptime tool.
- Connect the alerts to your phone or chat.
- Subscribe to your vendors' status pages and keep their support links where you can reach them from your phone.
- Decide what may wake you at night.
- Log in to dashboards when a setting lives there.
The checklist
Every lamp, one tile at a time.
32 of 32
- Error tracking and alerting
- WT-1Error tracking accountYou doEarly
- WT-2Error tracking in the code, front and backAgent doesEarly
- WT-3Source mapsAgent doesBefore launch
- WT-4Release and environment tagsAgent doesBefore launch
- WT-5User context without personal dataAgent doesBefore launch
- WT-6Alerts that reach youYou doBefore launch
- WT-7Noise controlAgent doesLaunch week
- WT-8Background failures capturedAgent doesBefore launch
- WT-9Failed and slow requests, and vendor call failuresAgent doesBefore launch
- WT-10Alert fire drillAgent doesLaunch week
- Logging
- WT-11Structured logsAgent doesBefore launch
- WT-12Request idAgent doesBefore launch
- WT-13Log retention known, logs shipped outAgent doesBefore launch
- WT-14No personal data in logsAgent doesBefore launch
- WT-15Audit trailAgent doesLaunch week
- Uptime and status
- WT-16Health check endpointAgent doesBefore launch
- WT-17Uptime monitorYou doBefore launch
- WT-18Critical flow checkAgent doesLaunch week
- WT-19Scheduled job monitorAgent doesBefore launch
- WT-20Webhook failure monitorAgent doesLaunch week
- WT-21Certificate and domain expiryAgent doesBefore launch
- WT-22Public status pageYou doAfter launch
- WT-23Vendor status subscriptionsYou doLaunch week
- WT-24One health dashboardAgent doesAfter launch
- WT-25Uptime targetAgent doesAfter launch
- Incident response
- WT-26Incident runbookAgent doesBefore launch
- WT-27Severity levelsAgent doesBefore launch
- WT-28Message templatesAgent doesBefore launch
- WT-29Wake-up rule for one personYou doBefore launch
- WT-30Post-incident noteAgent doesAfter launch
- WT-31Emergency access listYou doBefore launch
- WT-32Rollback provenAgent doesBefore launch
What may cost money
Where the light ends.
The guide is free, and so is everything the agent does with it. What can cost money sits around the edges: alerts to chat or phone, longer log storage and a few uptime extras. The table shows each one, the free route, its catch, the paid price and the date it was checked.
| Thing | Free route | The catch | Paid from | Checked | Source |
|---|---|---|---|---|---|
| Error tracking | Sentry Developer, PostHog free | 1 user (checked 2026-11-15, source); 5k errors free plan, events dropped above this (drop behaviour unverified) (checked 2026-11-15, source); 1 project, free plan (checked 2026-11-15, source) | $26 USD per month, billed annually (checked 2026-11-15, source) | 2026-11-15 | https://sentry.io/pricing/ |
| Log storage | Axiom free | 30 days log retention (checked 2026-11-15, source); host logs are short: 1 hour runtime log retention (checked 2026-11-15, source) | $25 USD per month (checked 2026-11-15, source) | 2026-11-15 | https://axiom.co/pricing |
| Uptime monitor | UptimeRobot free | 5 minutes check interval (checked 2026-11-15, source); 50 monitors (checked 2026-11-15, source) | $12 USD per month, billed annually (checked 2026-11-15, source) | 2026-11-15 | https://uptimerobot.com/pricing/ |
| SSL and domain-expiry alerts | Host and registrar reminders | paid plans only SSL monitoring on UptimeRobot (checked 2026-11-15, source); I could not confirm this today: free or paid split not clear on the page domain-expiry alerts on UptimeRobot (unverified, last seen 2026-11-15). Check source before you rely on it. | $12 USD per month, billed annually (checked 2026-11-15, source) | 2026-11-15 | https://uptimerobot.com/pricing/ |
| Scheduled job monitor | Healthchecks.io free | 20 jobs (checked 2026-11-15, source); 1 cron monitor (checked 2026-11-15, source) | $5 USD per month (checked 2026-11-15, source) | 2026-11-15 | https://healthchecks.io/pricing/ |
| Public status page | UptimeRobot, Better Stack, Instatus free | Own domain: paid plans status page on your own domain, UptimeRobot (checked 2026-11-15, source); 25 components (checked 2026-11-15, source) | $29 USD per month (checked 2026-11-15, source) | 2026-11-15 | https://www.atlassian.com/software/statuspage/pricing |
| Night calls and texts | Push through email or ntfy | bought separately as credits SMS and voice alerts, any UptimeRobot plan (checked 2026-11-15, source); PagerDuty free: I could not confirm this today: a $0 plan exists, limits not confirmed PagerDuty free plan (unverified, last seen 2026-11-15). Check source before you rely on it. | $29–34 USD per month, responder plan from (yearly $29, monthly $34) (checked 2026-11-15, source); PagerDuty $2,800 USD per year platform fee (checked 2026-11-15, source) | 2026-11-15 | https://betterstack.com/pricing |
What you have at the end
A board full of green.
Example status board
- Every crash recorded with its file and line.
- Logs you can search, kept somewhere other than your host.
- An outside check that tells you when the site or a scheduled job goes quiet.
- An alert that reaches your phone.
- A public status page (a page that shows whether your service is working).
- A one-page plan for when the site goes down.
Run it
Hand the watch to your agent.
Paste this into your coding agent: Claude Code, Codex, Cursor or any agent that can read a web page. The guide is free and MIT licensed. No account, nothing to install.
Read https://zirkomirko.com/tools/launch-kit/guides/watchtower.md and run it on this project.
What you will be asked
- Whether it may check today's prices and free limits on the web before it starts.
- One yes or no on the whole plan before it touches your code, and every change on its own branch.
- Whether to start a side helper that looks for a free alternative, or note it for later.
- The steps only you can do: the accounts, connecting alerts to your phone, and deciding what may wake you at night.
- Before anything paid: the price, the date it was checked and the free route. Nothing is bought without your yes.
What files appear
LAUNCH-KIT.mdthe board: what is done, what only you can do, costs you agreed to..launch-kit/state.jsonwhere each item stands..launch-kit/reports/watchtower.mdthe report for this guide..launch-kit/evidence/watchtower/proof for each item.
Nothing in .launch-kit/ holds a password or key.
Tested with Claude Code and Codex.
Words on this page
The chart legend.
- Environment variable
- a setting the app reads at run time, kept on the host instead of in the code.
- Error tracking
- a service that records every crash with details, groups duplicates and alerts you.
- Heartbeat
- a scheduled job sends a ping when it finishes. Silence means it failed.
- On-call
- being the person who must respond to alerts at a given time.
- Release tag
- a label (version or commit) attached to each error so you know which deploy caused it.
- Request id
- one id that follows a request through every log line.
- Retention
- how long a tool keeps your data before deleting it.
- Session replay
- a video-like recording of what a user clicked before an error.
- Source map
- a file that turns compressed production code back into your real file names and line numbers.
- Structured log
- a log line written as data (JSON) so you can filter by user, route or result.
- Tracing
- timing records of each step in a request.
- Uptime monitor
- an outside service that visits your site on a schedule and alerts you when it fails.
Before and after
What lights up next.
Before this
Nothing. You can start here.