Scheduled agents: exact scope, frequency, AI vs code
Rule: code does everything checkable. AI only where a judgment call is needed. Every AI run starts fresh, strong model first, cheaper model after it has run clean. Never sends, never spends. 11-09.
The week at a glance
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Lead alerts (code)
every 10m
every 10m
every 10m
every 10m
every 10m
every 10m
every 10m
Red/green + watchdog (code)
7:00
7:00
7:00
7:00
7:00
7:00
7:00
Daily client agent (AI)
7:30
7:30
7:30
7:30
7:30
Weekly client agent (AI)
14:00
Tue update drafts (code)
7:40
Nightly systems check (code)
2:00
2:00
2:00
2:00
2:00
2:00
2:00
Systems fixer (AI, only on red)
if red
if red
if red
if red
if red
if red
if red
Green = code (free). Orange = AI run (quota). Weekends skip the daily client agent: code alerts still fire.
AI runs per week: 5 daily + 1 weekly + nightly fixer only when code finds red (expect 0-3) = about 6-9 runs/week, instead of 7+1+7 = 15 if everything were AI.
1. Daily client agent: Mon-Fri 7:30am CT
| Step | Who | Why |
| Pull each client's leads, spend, red/green, failed alerts | code | Already runs 7:00 (lead-watchdog, Ferrum red/green) |
| Skip the agent entirely if every client is green and nothing failed | code | No quota spent on quiet days |
| For each red client: figure out the real cause (ads off? form broken? lead not answered?) | AI | Needs reading messages/ads/pages together; rules can't |
| Fix what's broken: dead form, failed alert, disapproved ad | AI | Each fix is different |
| Put one line per red client on your card: what broke, what it fixed, what needs you | AI | Plain-English summary |
| Never: send to clients, change ad budgets, spend | rule | Your charter |
2. Weekly client agent: Mon 2pm CT
| Step | Who | Why |
| Build each client's report numbers (leads, booked, spend, cost per booked) | code | Pure math from Ferrum |
| Check numbers match Ferrum, no test rows, no zero-data weeks | code | Checkable |
| Write the client update draft + your call prep (wins, problems, next step) | AI | Writing in your voice |
| Save as an artifact per client (report page) + unsent Ferrum draft; card says "4 drafts ready" | code | Artifacts = canonical home for reports; Ferrum = canonical home for client messages |
3. Nightly systems: 2am CT
| Step | Who | Why |
| Check hosts up, disk, backups ran, prod deploy lag, failed timers, stuck factory builds | code | All yes/no checks (fleet probe already does most) |
| All green: write one log line, no AI | code | Zero quota |
| Something red: start an AI fixer for that one item | AI | Debugging needs judgment |
| Fixer can't fix: put it on your card with what it tried | AI | You never find an outage first |
Model plan
| Rule |
| Each run = fresh session, nothing carried over |
| First 5 runs of each agent: strong model (Opus) |
| After 5 clean runs I check its output; if a cheaper model gives the same result on replay, switch (measured, not guessed) |
| Each run logs cost + minutes; this page shows weekly quota burn |
What gets cut
| cut | client-weekly-page.timer + client-report.timer (old copilot scripts) once the Tue Ferrum update + weekly agent run clean: two report paths today, one after |
| cut | lead-watchdog --red-green once Ferrum red/green is trusted (ask#515) |