How to design AI agent loops: schedules, goals, and subagents in Claude Code and Codex
How I AI17 Jun

How to design AI agent loops: schedules, goals, and subagents in Claude Code and Codex

I break down every loop type from scratch—what a heartbeat, cron, hook, and goal loop actually are, when each one fits, and the five things any effective loop needs before it touches production. Then I build two live loops: a daily aging-PR reviewer in Claude Code that schedules itself at 10:15 a.m. and spins off its own subagents, and a weekly skills-identification loop in Codex that spawns goal-based subagents to validate its own output in real time.


What you’ll learn:

  1. The plain-English definition of a loop—and why it’s just an automated prompt, not a scary new paradigm
  2. The four loop types (heartbeat, cron, hook, and goal) and when each one actually fits your workflow
  3. How to think about loop design using the “onboarding an employee” mental model
  4. The five things every effective loop needs: work trees, skills, plugins/connectors, subagents, and state tracking
  5. How to build a scheduled PR-review routine in Claude Code that babysits aging PRs and alerts your team
  6. How to set up a weekly skills-identification automation in Codex that spawns its own validating subagents
  7. Why goal-based loops are the hardest to write well—and where most people burn tokens for nothing
  8. The two warning signs that your loop is going to get expensive before it gets useful

—

Brought to you by:

WorkOS—Make your app enterprise-ready today

Runway—The creative AI platform for images, video, and more

—

In this episode, we cover:

(00:00) Prompts are out and loops are in

(02:30) Defining a loop

(03:03) The four ways to automate a prompt: heartbeat, cron, hooks, and goals

(06:03) Five things every effective loop needs

(09:26) The “onboarding an employee” framework for designing loops

(11:58) Live build #1: Daily aging PR loop in Claude Code

(17:08) Subagents inside loops

(19:00) Live build #2: Weekly skills identification loop in Codex

(22:57) Watching subagents spin up in real time

(25:28) Warning signals around loops

(27:31) What listeners are doing with loops

—

Tools referenced:

• Claude Code: https://claude.ai/code

• Codex: https://chatgpt.com/codex

• OpenClaw: https://openclaw.ai/

—

Other references:

• Claire’s article “Why OpenClaw Feels Alive Even Though It’s Not”: https://x.com/clairevo/article/2017741569521271175

• Addy Osmani’s article on loop engineering: https://addyosmani.com/blog/loop-engineering/

• Using Goals in Codex: https://developers.openai.com/cookbook/examples/codex/using_goals_in_codex

—

Where to find Claire Vo:

ChatPRD: https://www.chatprd.ai/

Website: https://clairevo.com/

LinkedIn: https://www.linkedin.com/in/clairevo/

X: https://x.com/clairevo

—

Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email jordan@penname.co.

Denne episoden er hentet fra en åpen RSS-feed og er ikke publisert av Podme. Den kan derfor inneholde annonser.

Episoder(123)

How Figma’s PMs actually use AI every day | Ezra Mechaber (PM, Figma)

How Figma’s PMs actually use AI every day | Ezra Mechaber (PM, Figma)

Ezra Mechaber is a growth product manager at Figma whose goal is to be “lazy in the right places.” When he joined Figma, he found almost no one outside engineering using AI to get real work done, so h...

2 Nov 42min

Grok vs. Dot vs. Muse vs. Claude Duet: which one crushes the competition?

Grok vs. Dot vs. Muse vs. Claude Duet: which one crushes the competition?

I have personal-agent fatigue, so I ran the first How I AI personal-agent benchmark: Grok Bot, Dot, Muse, and Claude Duet across nine real tasks, from a Slack reply and a Sentry bug to a Figma thumbna...

28 Okt 35min

Why Reddit built its own AI prototyping tool | Blair Metcalf

Why Reddit built its own AI prototyping tool | Blair Metcalf

Blair Metcalf is the principal UX engineer at Reddit and the builder of Reddit Proto, the company’s in-house vibe-coding harness. With a design system MCP that maps Reddit’s product language to produc...

26 Okt 29min

Claude Duet is beautiful. I still forgot to use it

Claude Duet is beautiful. I still forgot to use it

Anthropic's new personal agent, Claude Duet, lives on your phone, inherits all your Claude plugins and connectors, and is pitched at small business owners and busy professionals. It's the most polishe...

21 Okt 16min

“Claude cuts my TikTok”: How this creator is scaling video with AI | Brooke Lacey

“Claude cuts my TikTok”: How this creator is scaling video with AI | Brooke Lacey

Brooke Lacey has been making videos since before Facebook had video, and she built a TikTok audience of more than 290,000 by learning to cut short-form videos herself. With over 25 years in tech, she ...

19 Okt 36min

Meta’s new ‘Muse Wonder’ model: good for AI agents, bad for design

Meta’s new ‘Muse Wonder’ model: good for AI agents, bad for design

I put Meta’s new Muse Wonder (and Wonder Full) frontier models through the How I AI bench, which covers nearly 20 tasks across prototyping, agentic workflows, coding, writing, and creative work. I sco...

14 Okt 24min

How Meta designed Muse: an AI agent people actually want to talk to | Alex Cornell (Design Director)

How Meta designed Muse: an AI agent people actually want to talk to | Alex Cornell (Design Director)

Alex Cornell is a design director at Meta, where he leads design on Muse, Meta’s consumer AI agent. He came to the role with a long background in software product design, including time as a founder, ...

12 Okt 37min

How OpenAI uses ChatGPT Sites (live at DevDay!) | Kath Korevec (Product Lead)

How OpenAI uses ChatGPT Sites (live at DevDay!) | Kath Korevec (Product Lead)

Kath Korevec is a member of the Product staff at OpenAI working on Codex, and she spent over a year building and using ChatGPT Sites internally before its public launch. She’s been on the front lines ...

5 Okt 35min

Populært innen Teknologi

lydartikler-fra-aftenposten
teknisk-sett
energi-og-klima
nasjonal-sikkerhetsmyndighet-nsm
teknologi-og-mennesker
rss-snakk-om-sikkerhet
rss-kunstig-intelligens-med-elisabeth-maren-og-morten
shifter
rss-ai-forklart
tomprat-med-gunnar-tjomlid
rss-alt-som-gar-pa-strom
rss-polypod
fornybaren
rss-heis
rss-teknologioptimistene-en-podkast-om-teknologi-og-mennesker
rss-ki-praten
elektropodden
pedagogisk-intelligens
rss-digital-dros
rss-alt-vi-kan