How I AI cover image

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

How I AI

00:00

Three Ways To Automate Agent Prompts

  • Claire distinguishes manual message prompting (human-initiated chat turns) from automated loops that prompt agents without human input.
  • She defines three loop form factors: heartbeats (regular intervals, e.g., every 5 minutes), crons (time-specific schedules like 9am or Sundays), and hooks (triggered by internal events like a tool call or session start).
  • Heartbeats are useful for frequent polling tasks (e.g., check JIRA every 5 minutes and triage new tickets).
  • Crons are for less frequent, fixed-timing tasks (daily reports, weekly jobs).
  • Hooks tie prompts to lifecycle events, enabling reactive, event-driven agent runs.
Play episode from 03:04
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app