Skip to content
RILD.
All articles

Nov 14, 2026 · 11 min read

Rebuilding this site in one night with an AI agent

From a "hacker terminal" one-pager to a bilingual blog and portfolio, live on its domain, in about an hour and a half — pairing with an AI agent. What worked, what broke and where I stayed in the loop.

AI EngineeringNext.jsCase studyLer em português →

Tonight I rebuilt rldsoftware.com.br from scratch. The old site was a one-page "hacker terminal" — Matrix rain, green monospace text, a typewriter effect. Fun, but it didn't say what RILD does or who it's for, and there was nowhere to write.

I did the whole thing pairing with an AI coding agent. Not as a demo: as the actual way the work got done, from finding the repository to pointing the DNS. Here's an honest account, organized by the same method I use with clients.

Observe: find out what's actually there

I didn't even remember where the repository lived. The agent listed my GitHub repos, found two candidates — the site and a separate OpenTofu infrastructure repo — cloned both and summarized them in a few minutes.

The summary was more useful than I expected:

  • The site was a Next.js 15 one-pager with a pile of unused UI components.
  • Its build config ignored TypeScript and lint errors, so broken code could ship silently.
  • There was no deployment config anywhere, and the infra repo didn't host the site at all.

That's the point of observing first: the plan changes once you see the real state.

Automate: decide the boring things once

Before writing code, the agent asked me three questions that would be expensive to get wrong: which stack, which languages, and how content would be edited. I answered in one go:

  • Next.js 16 on Vercel, because that's where I want to host it.
  • Bilingual, English at the root and Portuguese under /pt, because I work with teams in Brazil and abroad.
  • A headless CMS. We went with Keystatic: content lives in the Git repo, and an admin panel commits straight to GitHub. No database, no extra service.

Everything else followed from a design system I had already defined ("Observe to Scale"): one dark background, one accent color, two typefaces. Having those decisions written down meant the agent didn't have to guess at taste.

Augment: where the agent did the heavy lifting

The rebuild — layout, i18n routing, CMS schema, SEO metadata, sitemap, RSS, seed content — came together quickly. But the interesting parts were the problems, because that's where you learn whether you can trust the process:

  • The first production build failed. Keystatic's GitHub mode requires credentials that didn't exist yet. The fix was to enable GitHub mode only when those environment variables are present, so the site deploys now and the CMS gets switched on later.
  • A screenshot lied. While checking the mobile layout, the agent captured the old design. A previous dev server was still running and serving stale files. It noticed the mismatch, found the leftover process and restarted cleanly instead of "fixing" code that wasn't broken.
  • A real layout bug. On a 390px screen the page scrolled sideways. The cause was a hidden header button whose display utility was being overridden. Small, but exactly the kind of thing that makes a site feel cheap on a phone.

Scale: shipping it, with a human in the loop

The last mile is usually the slowest: a new Vercel project (I had lost access to the old one), and DNS at GoDaddy.

The agent worked directly in my browser. It added the domain in Vercel, read the required records, edited the A and CNAME records at GoDaddy, and added the TXT records that move a domain away from a Vercel account you can no longer reach. It left the email (MX) records untouched. A minute later both domains showed a valid configuration and the new site was live.

What I kept for myself:

  • Approving the scope. The stack and the languages were my calls.
  • Merging to main. The agent opened the pull request; I reviewed the preview and merged.
  • Anything with secrets. The CMS credentials go in through a checklist I follow myself, never through the agent.

What I take from it

The speed is real, but it's not the main lesson. What made this work was the same thing that makes any AI system work in production: clear decisions up front, visibility at every step and a human on the irreversible actions. When something broke, it broke loudly and got diagnosed instead of papered over.

This post itself is the first one written after the rebuild. If you want this kind of workflow on your team's software, let's talk.