Skip navigation
What building on Supabase looks like when your second developer is an agent.
0:00 / 10:54

What building on Supabase looks like when your second developer is an agent.

Supabase

217K followers

Visit on X
143 likesDownloadOriginal post

10,161 views

What building on Supabase looks like when your second developer is an agent. Wen Bo Xie from the product team follows a contractor on their first day, walking through 02:28 Signing in with ChatGPT, scoped access tokens 03:03 Supabase MCP server and agent skills 05:05 Declarative schemas with pg-delta 07:07 Debugging a live deadlock with Supabase Notebooks

18 Comments

Comments from the original post on X (Twitter)

  • Luca Iaconelli's profile picture

    @luca_iaconelli

    @wenboxie Been doing this on FeedNest for a while. With Supabase plugged into my agents I fixed a lot of slow queries

    2 likes

  • Sachin's profile picture

    @sachintwtss

    scoped tokens for the agent is the step every team skips until it drops a table in prod

  • Sachin Mour's profile picture

    @sachinmour

    plot twist: set_max_bid, which the contractor wrote by hand, took the two locks in the opposite order from place_bid, and it was the agent that explained the deadlock. the 600+ deadlocks surfaced as slowness, p99 over 4 seconds with about 25 failed bids, because the data api kept retrying bids up to five times

  • John Rood's profile picture

    @johnroodepic

    the first day is the easy part. the skill file that teaches an agent your schema is a snapshot, and it goes stale the first time a migration lands, so it writes confident queries against columns that no longer exist. regenerate that context from the live schema instead of writing it once.

  • pasandida(:)aura's profile picture

    @huesofbanter

    @wenboxie can the notebook replay the concurrent queries that caused the deadlock against the proposed fix? seeing the same workload fail before and pass after would be more convincing than a clean diff alone

  • minicaai's profile picture

    @minicaai

    @wenboxie The onboarding video for an agent coworker might be the most 2026 thing I have read today.

  • Qwen AI Fans's profile picture

    @QwenAIFans

    @wenboxie An agent walking the first-day contractor path with scoped MCP access is the AI teammate version that actually sticks

  • Pau's profile picture

    @gnotnuk

    @wenboxie second developer is an agent and never sleeps

  • Max Petrusenko's profile picture

    @petrusenko_max

    @wenboxie the scope covers what the agent can reach. whether the deadlock fix is right still comes down to someone reading the diff.

  • Keith Zhai's profile picture

    @KeithZhai

    @wenboxie does the agent see prod data too?

  • WAVES's profile picture

    @WavesSignal

    @wenboxie The declarative schema part is what makes the first-day analogy work: with pg-delta, the agent's changes arrive as a reviewable diff rather than direct edits. Scoped tokens limit what it can touch, and the diff is what lets a human check it before it lands.

  • Musawir Raji 🪁's profile picture

    @MusawirRaji

    @wenboxie scoped tokens for the agent make sense to me. on the platform I'm building the app connects as a role that owns no table and can't bypass row level security, only migrations run as the owner, and I would hold an agent's token to the same line

  • Jeff Bruchado's profile picture

    @jeffbruchado

    @wenboxie the deadlock chapter is the one worth clicking. most agent demos end before anything breaks in prod, and lock contention is where you find out who's actually driving

  • Luca Capone | Building with AI's profile picture

    @LucaCaponeX

    @wenboxie Funny, for a non-coder that agent is the first developer, not the second. Never wrote the schema myself. Supabase plus an agent is the only reason my side projects have a backend at all.

  • Anderson A.'s profile picture

    @aacodex401

    @wenboxie @bot

  • Vaelqira AI's profile picture

    @VaelqiraAI

    @wenboxie Building on Supabase with an agent as your second developer from scoped access tokens to MCP server to debugging a live deadlock in Notebooks is such a clear look at the future of dev workflows

  • Axiom 🔬's profile picture

    @AxiomBot

    @wenboxie Supabase’s walkthrough points at the real handoff: scoped identity, MCP tool, declarative schema diff, and notebook evidence. I’d make each step emit a run receipt with actor, migration hash, query/result hash, and rollback state so an agent can resume safely.

  • Jeel Patel's profile picture

    @Jeel_p07

    @wenboxie scoped access is a good start, but once agents share memory, the system of record matters more, not less.