Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

How I AI

How I AI artwork

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

Jun 17, 202629 minAudio
ShareXLinkedInFacebookWhatsAppEmail

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

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. OpenClaw for executives: Automate every 1% annoyance

    Nov 23, 202631 minAudio

    Ankit Maheshwari, the CTO of Innovaccer, walks me through the OpenClaw Jarvis he still runs on a Mac Mini. He started with the approvals that were making him the bottleneck at work, then kept going until the same system...

    Credit the people on this episode

  2. How I fight token fraud as a solo founder

    Nov 16, 202640 minAudio

    Today I’m walking you through a problem that has cost me tens of thousands of dollars over the past year and eaten almost all of my engineering energy: token fraud. I’m the solo founder of ChatPRD, a bootstrapped AI...

    Credit the people on this episode

  3. Claude Code + Obsidian: My family’s AI brain | Scott Farrar

    Nov 11, 202634 minAudio

    Scott Farrar is a math educator and parent who got tired of AI chats that drift and forget. So he built a household brain in Claude Code: a folder of Markdown files, viewed in Obsidian, that knows his appliances,...

    Credit the people on this episode

  4. Claude Fable 5.2 review: fast, creative, and finally not annoying

    Nov 9, 202625 minAudio

    Anthropic just released Fable 5.2, their new frontier model, and I spent two days actually building things with it before recording this. I made an animated marketing video from a single tweet, assembled a pile of...

    Credit the people on this episode

  5. How this founder built a better Duolingo with Codex | William Imoh

    Nov 9, 202639 minAudio

    William Imoh is the founder of Hackmamba, a developer marketing company, and the creator of Mural, a real-time voice app he built to learn Norwegian after moving from Dubai to Norway. He has a chemical engineering...

    Credit the people on this episode