Smash Notes

Back to Why Agents Love Supabase, with Paul Copplestone & Ant Wilson.

Why Can't an AI Agent Read a Folder of SQL Migrations?

Paul Copplestone says an agent cannot see the shape of a database from a folder of SQL migrations. Each change adds another file. A thousand files is a history log, not a picture of the table. The agent has to replay them, or someone has to boot Postgres, run the migrations, and inspect the live database. Both paths are too slow when the agent is editing local files.

Supabase is turning the schema folder in a local project into a declarative description of the database as it is now: tables, policies, and comments. The library is called PG Delta. It works with any Postgres database, with extra hooks for Supabase. Agents mostly read code and need to change it quickly, so the current shape has to be a file rather than a trail of past alters.

Transcript

Why Agents Love Supabase ·

From the transcript

Headless was what we kind of started. Headless 360, Salesforce, all these sort of things. I mean, we had that at the start, like you could use Superbase directly API driven. That's one of the reasons why we succeeded. This year, our big focus is moving from from to code first get native. So basically, when you launch a Superbase instance inside your local machine, you get the Superbase folder and it represents your database.

It has all your functions. Does this exist today? Does this exist today? If you use the LCLI. So it's a virtual file system. Like it's a representation of it's like infrastructure as code. Okay. Yeah. And in fact, what we're announcing tomorrow is like we have done our kind of final change for declarative schemas. This was a really challenging one, actually, covering all of Postgres.

See in transcript

Latent Space: The AI Engineer Podcast

More from this episode

  1. Why Do AI Agents Need Compute Next to the Database?Paul Copplestone says Supabase Edge Functions, which run on Deno, stop at about two seconds.
  2. Why Did Supabase Rewrite the Postgres Operator?Paul Copplestone says every Postgres operator they tested could lose data under some condition.
  3. Why Is Supabase Preparing for Billions of Databases a Month?Paul Copplestone says Supabase already launches about 5 million databases a month, and the agent path they are planning for is billions a month.
  4. Why Do AI Coding Agents Activate Faster Than Human Signups?Paul Copplestone says the latest jump in Supabase signups came from the models getting better, not from a marketing spend.
  5. Why Do AI Coding Agents Keep Choosing Supabase?Shawn Wang says his tracking of model answers shows frontier models recommending Supabase as the default integrated backend: the database, auth, functions…
  6. Does Supabase Track Open Source Adoption?Paul Copplestone says Supabase deliberately does not measure how far the open-source project has spread.
  7. How Does Supabase Pay Its Sales Team?Paul Copplestone says Supabase pays sales only for the growth a help call adds on top of growth the account would have shown anyway.
  8. Why Won't Companies Migrate a Production Database?Paul Copplestone says a move from one production database to another almost never happens, and he would bet it almost never will.
  9. Why Were AI Coding Agents Breaking Postgres?Paul Copplestone says a database is harder to leave than a frontend tool, which is why Supabase can stay stickier than a coding app such as Lovable.
  10. Where Did the Supabase Co-founders Meet?Shawn Wang says Paul Copplestone and Ant Wilson, the Supabase co-founders, went through Entrepreneur First in Singapore, each on a different company, and…
  11. How Much Does Supabase Spend on AI Coding?Paul Copplestone says Supabase does not set one AI coding policy for the whole company.

People

More answers like this

More with Shawn Wang

More with Paul Copplestone

Related episodes

Plays from this note through the rest of the episode.

Weekly highlights

One letter a week.

The notes worth hearing, with the minute they were said.