podqast
How I AIClaire VoAll episodes

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

29 min

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:

—
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:

—
Other references:

—
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.

Episode page ↗
Also about technology and AI
Every episode about Technology & AI
More from How I AI