I guess we're writing loops now? — Summary & Key Points

Theo - t3․ggJun 18, 202624:4559K views

TL;DR

The speaker argues that the future of coding with AI agents involves designing 'loops' where agents prompt themselves rather than humans prompting agents. After struggling with the 'Ralph loop' and static workflows, he implemented a dynamic system where agents monitor PRs, create PRs, review them, and merge them autonomously. This approach saved significant time and allowed him to offload the 'boring' steps of code review and iteration to the AI, though it requires careful management of token costs.

Key Quotes

"The shape of the loop, the shape of the structure, the shape of how work happens can be dynamically generated based on the shape of the work that you're doing."
Speaker

The arc

Starting point

The speaker shifted from prompting agents to designing loops after finding the 'Ralph loop' error-prone and realizing he was still doing the handholding work of copy-pasting results into the codebase.

The critique

He dismissed the trend of creating hardcoded sub-agent personas like 'adversarial reviewer' or 'security checker,' arguing that agents should dynamically build their own context rather than following rigid templates.

The workflow

He implemented a system where agents monitor PRs, create threads, and trigger reviews automatically, moving away from manual copy-pasting of code review comments.

The breakthrough

During a Lakebed isolate layer refactor, he asked the model to create a workflow that would spin up threads to make PRs, review them, and merge them, resulting in four stacked PRs merged at 6:50 AM after being set up Sunday night.

The philosophy

He argues that the structure of the loop should dynamically match the shape of the work, contrasting this with static agile sprints.

The cost reality

He notes that while loops burn more tokens, using Opus on a $200 plan allowed him to complete massive refactors without hitting limits, whereas Fable would have exhausted the 5-hour limit instantly.

Use this with an agent

Copy or download either the structured summary or the full transcript.

Have your own business or tech recording?

Turn demos, webinars, strategy calls, and tech talks into transcripts, summaries, and agent-ready briefs.

Try Typist free
Related

Keep exploring

More summaries from the Typist library — picked for the same category