YouTube podcast40 min
How to write AI agent loops in Claude Code and Codex
Jun 17, 2026
Key learnings
- Loops are scheduled or semi-autonomous automations that let agents prompt themselves without human input, using heartbeats…
- Design loops like onboarding employees: define recurring jobs (e.g., 'every Friday review calendar') and let agents execute…
- Effective loops require five elements: automation trigger, schedule definition, goal setting, work isolation (git worktrees), and…