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

How I AI
Jun 17
Shownote
Shownote
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 Cla...
Highlights
Highlights
This episode explores the shift from manual prompting to automated AI agent loops, breaking down how to design and implement them for recurring tasks. The host explains the core concepts and then demonstrates two live builds, showing how these loops can autonomously manage workflows like code review and skills identification.
Chapters
Chapters
Prompts are out and loops are in
00:00Defining a loop
02:30The four ways to automate a prompt: heartbeat, cron, hooks, and goals
03:03Five things every effective loop needs
06:03The “onboarding an employee” framework for designing loops
09:26Live build #1: Daily aging PR loop in Claude Code
11:58Subagents inside loops
17:08Live build #2: Weekly skills identification loop in Codex
19:00Watching subagents spin up in real time
22:57Warning signals around loops
25:28What listeners are doing with loops
27:31Transcript
Transcript
Claire Vo: prompts are out and loops are in. If your agent isn't able to prompt itself through an automation, what are you even doing? In today's episode, I'm going to teach you what a prompt is in normal person speak, how to write one, when it's useful, a...