More The Changelog: Software Development, Open Source episodes

Building what's next (Interview) thumbnail

Building what's next (Interview)

Published 22 Oct 2026

Duration: 2:00:21

Resend optimizes its email infrastructure for AI agents by implementing markdown pricing pages, RFC-compliant headers, and granular permissions to support three million users.

Episode Description

This week I'm talking with Zeno Rocha, CEO of Resend, about scaling "boring" email to 3 million users, the secret Go rewrite behind it, and building f...

Overview

Zeno Rocha, founder and CEO of Resend, explains how AI agents misread his company's pricing page because they "cannot drag a pricing slider," leading him to serve a markdown version through content negotiation. He argues that building for agents means following established standards - RFC rate-limit headers, publishing the Open API spec as JSON in the.well-known folder - rather than inventing proprietary formats. Agents, he notes, "couldn't care less" about animated icons or keyboard shortcuts that matter for human developer experience.

Rocha walks through Resend's architecture: starting with a TypeScript/Node stack on AWS, then rewriting the email-sending pipe in Go to handle concurrency when customers send multi-million-email broadcasts simultaneously. He describes the company's growth to "three million users total 100 000 paying customers," the ongoing battle against spam gangs exploiting the free tier, and a shift in the user base from traditional developers to "builders" using tools like Lovable and Bolt.

The conversation frames agent experience as a distinct discipline from developer experience. Rocha describes a closed-loop system where down-votes on Resend's in-app agent trigger draft PRs that update tool calls and evals, and he emphasizes that error messages, CLI output shapes, and granular API permissions are the primitives that determine whether an agent can self-correct or gets stuck.

What If

  • What if you served a machine-readable version of your pricing page to agents?

    • Move: Add a markdown or JSON endpoint for your pricing page, served via content negotiation (e.g., Accept: text/markdown), so agents can read exact tiers and costs without interacting with UI sliders.
    • Why Now? Rocha discovered that both Claude and ChatGPT misidentified Resend's pricing because agents "cannot drag a pricing slider." As agent-driven comparison and purchasing grow, inaccurate pricing signals will misroute potential customers away from your product.
    • Expected Upside: Agents can correctly recommend your product in comparisons, reducing lost signups from false "most expensive" labels. This is a low-effort, high-leverage fix that Rocha implemented in a single Saturday afternoon.
  • What if you followed the RFC for rate-limit headers instead of inventing your own?

    • Move: Implement the three standard rate-limit headers (remaining count, time unit, retry-after) on every API response, then test that an agent can auto-retry without human intervention.
    • Why Now? Rocha notes "if you follow the rfc agents will know they will know how to auto retry." Proprietary headers leave agents stuck, forcing them to escalate to a human operator and breaking unattended automation loops.
    • Expected Upside: Agents handle throttling autonomously, reducing support tickets and enabling longer unattended workflows. This is a proposal grounded in the source's observation that standardized primitives are "the most important thing that matters right now."
  • What if you published your Open API spec as JSON in the.well-known directory?

    • Move: Add a CI step that converts your YAML Open API spec to JSON and deploys it to /.well-known/openapi.json so agent tools can discover your API without manual configuration.
    • Why Now? Rocha found that agent-experience scoring tools were "searching for the dot json version of the open api spec Not the dot yaml," and his own agent couldn't locate the spec until he added the JSON endpoint.
    • Expected Upside: Agents can self-discover your API surface, reducing onboarding friction for agent-driven integrations. This is a practical, one-time infrastructure change with compounding discoverability benefits for every agent that encounters your service.

Takeaway

  • Serve a markdown or JSON version of your pricing page via content negotiation so agents can read exact costs without UI interaction; Rocha fixed a mispricing issue this way in one afternoon.
  • Implement RFC-standard rate-limit headers (count, unit, retry-after) on all API responses so agents can auto-retry without escalating to a human operator.
  • Publish your Open API spec as JSON in the.well-known folder and add a CI job to keep it in sync with your YAML source, because agent tools search for the JSON variant specifically.
  • Design your CLI with a non-interactive mode for every command and flat JSON output (not nested arrays) so agents can pipe results through jq without parsing confusion.
  • Write specific, actionable error messages that tell an agent what went wrong and what the next step is, rather than generic codes that leave it stuck; Rocha is "revisiting the error messages now because the error messages are crucial."

Recent Episodes of The Changelog: Software Development, Open Source

9 Oct 2026 From zero to NanoClaw (Interview)

"AI agents are transforming software development and business operations by automating tasks, rewriting code, and disrupting workflows, while raising challenges like license enforcement, governance, and the future of knowledge work in an AI-driven world."

3 Sept 2026 Forking Cal.com to closed source (Interview)

"AI-generated code floods open source projects, obscuring vulnerabilities and overwhelming maintainers, prompting shifts to private repositories and cloud-based development as security risks escalate."

25 Aug 2026 Postgres at PlanetScale (Interview)

"PlanetScale launched a $5 PostgreSQL plan, detailed metal deployment for performance, previewed sharded PostgreSQL product Niki, and discussed AI workloads, CI/CD challenges, and engineering-driven scaling strategies."

21 Jul 2026 Canary tokens and digital tripwires (Interview)

"Thinkst, a 50-person cybersecurity firm, specializes in Canary honeypots and Canary Tokens, offering simple, no-maintenance detection tools with $22.5M ARR, no price hikes in a decade, and AI-driven threat awareness."

5 Jun 2026 From open source hits to OpenAI (Interview)

A deep dive into open source contributions, AI-driven developer roles, challenges in maintaining projects like Spectrum and GitHub's acquisitions, balancing altruistic work with career growth, technical topics such as GraphQL and database scalability, and the evolving landscape of cloud environments and plugin ecosystems.

More The Changelog: Software Development, Open Source episodes