The Agentic CEO
All editionsEdition 8 of 22

March 30, 2026 · 8 min read

AI Ran My Production Website for a Week. Here's What Actually Happened.

By Venkatesh Rao · first published on the web

I pointed AI at aikaara.com — the production website of my company — and told it to make it better. Not "draft changes for review." Not "suggest improvements." Make changes. Push to production. Deploy live.

No approval workflow. No staging environment. No human in the loop.

Here's what happened.


What I Built

The system is called the Factory. It's an 80-line bash script running in a tmux session on a $24/month server. The loop is simple:

  1. Pick a task from BACKLOG.md — a markdown file with checkboxes
  2. Spawn a coding agent (Claude Sonnet) via OpenClaw
  3. Build and verify — npm run build must pass or the change gets thrown away
  4. Push to production — git commit, git push, Netlify auto-deploys
  5. Smoke test the live site — HTTP status, JS bundle loads, CSS loads, all routes return 200
  6. If the smoke test fails → auto-rollback — hard reset to previous commit, force push
  7. Cooldown 2 minutes, then repeat

The guardrail is the smoke test. If the site breaks, the system heals itself.

Here's the core loop:

Pick next [CODE] task — skip [BLOCKED] and [CONTENT]

TASK=$(get_next_task)

Send task to the coding agent

openclaw agent --agent main --message "$AGENT_MSG"

Wait for agent to complete (poll git for BACKLOG changes)

while [ $WAIT_COUNT -lt $MAX_WAIT ]; do sleep 20 git fetch origin production NEW_COUNT=$(count_remaining) if [ "$NEW_COUNT" -lt "$BEFORE_COUNT" ]; then break fi done

Verify the live site still works

if verify-deploy.sh "$SITE_URL"; then log "🟢 CYCLE COMPLETE — verified live" else rollback_production fi

The daemon checks if the task count in BACKLOG.md decreased — that's how it knows the agent finished. No webhooks. No API calls. Git as the coordination protocol.


The Numbers

The factory started on March 24th at 6:55 PM UTC. Here's what the git log shows after six days of running.

234 - Git Commits

130- Factory Cycles

0- Prolonged Outages

The commit breakdown by day:

  • March 24: 49 commits — factory bootstrap, first cycles, initial backlog burned through
  • March 26: 91 commits — the big sprint day. Competitor teardowns, blog posts, SEO work
  • March 27: 88 commits — continued sprint. Case studies, pricing, BFSI positioning
  • March 28-30: 12 commits — backlog ran dry, factory polling every 10 minutes with nothing to do

The First Night

Within the first hour, the factory had completed multiple cycles:

18:55 🏭 FACTORY DAEMON STARTED

18:56 🔨 Case studies section — ✅ 20s

19:02 🔨 Blog/insights page — ✅ 140s

19:07 🔨 CTA optimization — ⏳ working...

19:20 🔄 Factory daemon crashed. Auto-restarted.

19:29 🟢 SMOKE TEST PASSED — all checks OK

19:29 🏭 FACTORY v2 STARTED — staging → verify → production

19:34 🔨 Loading speed optimization — ✅ 240s, verified live

19:41 🔨 Tech stack showcase — ✅ 220s, verified live

19:46 🔨 Favicon and brand assets — ✅ 100s, verified live

21:27 🔨 Accessibility audit (WCAG 2.1 AA) — ✅ verified live

The daemon crashed at 19:20. A cron job (ensure-running.sh) detected it was gone and restarted it. The factory didn't just run autonomously — it self-healed when its own process died.

But here's the interesting part. Around 19:20, the factory added case studies for TaxBuddy and Centrum Broking. It hallucinated the details instead of using verified data. Then it caught itself — the CLAUDE.md guardrails explicitly say "do not fabricate project data" — and reverted its own commit:

Mar 24 🏭 case-studies: add detailed case studies for TaxBuddy, Centrum, Shopify

Mar 24 🏭 revert: remove fabricated case studies — waiting for verified data

Mar 24 🏭 guardrails: add content verification rules, block case studies until verified

It built the case studies. Realized they were fabricated. Reverted. Then added a guardrail to prevent itself from doing it again. Nobody told it to do that third step.

The Sprint — March 26-27

On day two the factory went from executing tasks to something more like a positioning sprint. It researched competitors, analyzed their websites, and rewrote Aikaara's positioning based on what it found.

In a single 24-hour window:

  • 9 competitor teardowns — Factory.ai, Devin.ai, Arya.ai, HyperVerge, Accenture AI, Heizen, Poolside, Rippling, Mercury
  • 4 blog posts written and deployed — "Why Your AI POC Failed," "Why Big 4 AI Projects Take 8 Months," "AI-Native Is Dead," "AI Talent Shortage"
  • CTO buyer personas — researched and used to rewrite contact page copy
  • SEO infrastructure — sitemap, robots.txt, llms.txt for AI search engines, FAQ schema, structured data
  • Pricing page — ROI calculator, Big 4 cost comparison, tier restructuring
  • India BFSI market positioning — $2B → $16B market sizing with regulatory analysis

91 commits on March 26. The factory was running research cycles — teardown a competitor, extract insights, implement changes — then immediately testing them on the live site.


What Actually Got Built

Not demos. Not mockups. Changes live on production at aikaara.com:

  • Performance: Bundle split from 514KB monolith to lazy-loaded chunks (main app: 48KB)
  • SEO: Canonical URLs, Open Graph, Twitter Cards, FAQ schema, Article structured data, sitemap, robots.txt, llms.txt
  • 4 blog posts: 2000+ words each, SEO-targeted, cross-linked with case studies
  • Competitive positioning: "Why Aikaara" comparison table vs Big 4, AI platforms, and in-house teams
  • Case study pages: TaxBuddy, Centrum Broking — with verified data after the self-revert
  • Pricing overhaul: ROI calculator, Big 4 cost anchoring, tier restructuring
  • Contact form: Wired to Netlify Forms for actual lead capture
  • BFSI landing pages: /solutions/kyc, /vs-big4
  • Accessibility: WCAG 2.1 AA — skip navigation, ARIA labels, focus indicators

Every one deployed to production, smoke-tested, and verified live — without me touching it.


Where It Broke

Three failure modes worth knowing about.

1. The blank screen. The factory attempted a "micro-interactions" task — hover effects, scroll transitions. The build passed. The smoke test passed (it only checks HTTP status and bundle loading). But the site rendered a blank screen at runtime because of a JavaScript error the build step doesn't catch. I woke up to a broken site.

One commit to revert and block. But it exposed a gap: the smoke test checks if the bundle loads, not if it renders. This led to Factory v2, which added deep verification — checking that every page in src/pages/ has a corresponding chunk in the bundle, that every nav link has a matching route, that every lazy import resolves to a real file.

2. The self-feeding backlog. I started with about 13 tasks. The factory burned through them in the first few hours. Then a separate script — task-planner.sh — kicked in. It reads the current state of the website (VISION.md, CODEBASE.md, a live site audit), sends everything to Claude, and asks: "what should we build next?"

The constraints are strict: tasks must be completable in a single commit, verifiable by npm run build, specific to exact files, and never involve credentials or new dependencies.

So the system became a closed loop. The planner generates tasks. The factory builds them. The planner sees what changed and generates new tasks. This worked until it didn't — the planner eventually started generating tasks the agent couldn't complete in the 10-minute timeout window, which led to the third problem.

3. The timeout loop. This one happened today. The factory tried to add canonical links — a simple task. The agent timed out at 10 minutes. "Timed out" means the daemon moved on. But "moved on" means picking the next task from BACKLOG.md — which was the same task, because it was still unchecked. Three timeouts in a row on the same task before the backlog was manually updated:

12:53 🔨 Add canonical links — ⏳ waiting...

13:04 ⚠️ TIMEOUT — agent didn't complete in 600s. Skipping.

13:06 🔨 Add canonical links — ⏳ waiting... (same task again)

13:17 ⚠️ TIMEOUT — agent didn't complete in 600s. Skipping.

13:19 🔨 Add canonical links — ⏳ waiting... (same task, third time)

13:31 ⚠️ TIMEOUT — agent didn't complete in 600s. Skipping.

13:33 📭 No [CODE] tasks. Sleeping.

These aren't "AI wrote bad code" bugs. They're orchestration bugs. The gap between "the agent did its job" and "the system knows the agent did its job." That's a different class of problem, and it's the one nobody talks about.


What I Learned

Four things that I trust now that I didn't before starting this.

Build gates work. If npm run build fails, the change is discarded. This caught several bad changes that never made it to production. Simple and reliable.

Smoke tests are necessary but not sufficient. They catch dead sites. They don't catch broken rendering. You need both layers — automated checks for "is the site up" and deeper verification for "does it actually work."

Auto-rollback is the thing that lets you let go. The psychological barrier isn't "what if AI writes bad code." It's "what if the site breaks and I don't notice for hours." Auto-rollback removes that concern.

Guardrails in the codebase beat guardrails in the prompt. Writing "don't fabricate data" in CLAUDE.md — a file the agent reads before every task — worked better than putting it in the prompt template. The agent treats it as a hard rule, not a suggestion. It didn't just follow the rule — it enforced it on itself and added new guardrails proactively.


The Pattern

Every autonomous system needs four things.

  • A heartbeat. The daemon loop. Every 2 minutes + task time, it wakes up, looks for work, does it, goes back to sleep. A bash while true that's been running for six days.
  • Direction. VISION.md + BACKLOG.md. The factory compares "where we are" to "where we want to be" and closes the gap. Without this, autonomous systems generate random work.
  • Guardrails. Build gates + smoke tests + auto-rollback + CLAUDE.md rules. The system can't push broken code. It can't fabricate data. It can't add dependencies. It can't touch credentials. Hard gates, not suggestions.
  • Memory. CODEBASE.md. After every cycle, the agent updates this file with what it did and what to watch out for. The next agent reads it before starting. The system gets smarter over time.

This pattern isn't specific to websites. It works for any codebase where you can define "build passes" and "site works" as verification criteria.


Where It Stands Now

The factory is still running. Right now it's polling the backlog every 10 minutes, looking for work. When it finds a [CODE] task, it builds it. When the backlog is empty, the planner generates new tasks from the gap between vision and reality.

234 commits. 130 factory cycles. Six days. I wrote zero of them.

The question everyone asks about AI autonomy is "can you trust it?" I think that's the wrong question. You don't trust the AI. You trust the system — the build gates, the smoke tests, the auto-rollback, the guardrails. You build a system where failure is cheap and recovery is automatic, and then you let the AI work within it.

The whole thing is an 80-line bash script, a markdown backlog, and git.


Venkatesh Rao, The Agentic CEO

Thanks for reading

Liked this? Get the next one by email.

One email a week, written by me. Reply to any of them and it reaches me. Unsubscribe in one click.

More like this

  1. 20The Agentic CEO: 35 billion parameters, 3 billion switched on4 Jul 2026 · 10 min
  2. 19I Tried to Kill My AI Agent. It Said "No Worries, Venky!"24 Jun 2026 · 7 min
  3. 17What Nobody Told Me About Running Agents in Production10 Jun 2026 · 4 min