lennysnewsletter.comHow to design AI agent loops: schedules, goals, and subagents in Claude Code and CodexWhy goal-based loops are the hardest to write well—and where most people burn tokens for nothingShareSave5mo ago