Video summary
The New AI prompting Method Everyone Is Talking About: Loops (And How To Use Them)
Main summary
Key takeaways
Overview: “Loop engineering” / loops for AI agents
- The video introduces loop engineering (“loops”) as a new way top AI programmers use agents.
- Instead of one-shot prompting or hand-coding, loops use agent-driven iterative cycles where the AI prompts itself (and other agents) until a goal is reached.
- The video frames this as “the future,” but also notes it can be confusing—so it breaks down definitions, usage, pros/cons, and examples.
Core loop structure (how it works)
A high-level loop typically includes:
- Goal (set by human once)
- Discovery / Planning
- Agents determine what needs doing and break it into steps.
- Agents can run in parallel (e.g., “spin out 15 different agents”).
- Execution
- Agents carry out the planned steps.
- Verification
- A verification agent checks whether the goal was achieved.
- If not, the loop iterates.
- Optional post-ship planning
- After shipping, an agent decides what to do next and loops again.
Memory outside the chat
- Loops use a memory layer outside the conversation (e.g., files/logs like
/outputs/next_steps) to track:- what steps already completed
- what still needs work
- how to avoid repeating earlier actions
Orchestration model (multi-agent workflow)
- An orchestrator agent:
- oversees the workflow
- delegates tasks to specialized sub-agents
- synthesizes outputs into a unified action plan
- Sub-agents each perform their own discovery/execution components, and results are combined.
Two loop types: Open vs Closed
-
Open loop
- Broad, exploratory: the agent “goes out and finds” what to do.
- Pros: can discover unexpected ideas.
- Cons: can burn massive tokens because it may roam in many directions.
-
Closed loop
- More constrained: the human sets a bounded goal.
- Pros: clearer evaluation each step; budget/token usage is more controlled.
- Recommendation: usually prefer closed loop unless you have high budget.
What loops are good for (and not)
-
Good for:
- coding-agents
- content creation
- research
- teaching yourself a skill
- (generally, anything that benefits from iterative improvement and verification)
-
Not as good for:
- areas requiring perfect judgment in open-ended discovery
- the video emphasizes you should still think critically and not assume the AI is always correct (example later with YouTube topic selection)
Real-world demo scenario (Pickleball e-commerce growth)
Goal
“Grow the Pickleball e-commerce site automatically” via looping agents on a weekly cadence.
Three specialized agents running in parallel
-
Builder agent
- Creates a BuzzFeed-style quiz (“Harry Potter x pickleball personality quiz”)
- Output: a single self-contained HTML file saved to
/outputs/quiz - Includes:
- 6 questions
- 4 possible results
- email capture form before revealing the result
-
Scout agent (research/content discovery)
- Searches for what pickleball buyers/enthusiasts are discussing:
- Reddit/subreddits, search trends, competitor sites, YouTube, etc.
- Scores opportunities using criteria like:
- audience size
- purchase intent
- content gap
- quiz/lead magnet potential
- Output: ranked list of top 8 content opportunities, saved to logs
- Loop condition example:
- continue until there are 3+ fresh ideas not yet acted on
- Searches for what pickleball buyers/enthusiasts are discussing:
-
Growth agent (post-launch marketing execution)
- Runs “smart marketing hire” tasks for first 48 hours after launch
- Tasks include:
- Site link audit: where the quiz should be linked, with exact copy/reason
- Launch email: subject, preview, full body, CTA
- Social captions: 3 platform-specific captions (Instagram/Reddit/Facebook group)
- Next lead magnet recommendation: best next offer based on research
- Adds a looping evaluation step to flag diminishing returns/repetition:
- writes notes to
output/growthagentnotes
- writes notes to
- Outputs saved to:
/outputs/social captions/outputs/nextquizrecommendation- and other relevant log files
Orchestrator + “next steps” memory (automation mode)
- The video also shows an alternative where an orchestrator agent:
- checks for
/outputs/next_steps(previous-cycle memory) - spawns builder/scout/growth prompts as sub-agents
- synthesizes results
- writes new “next steps” (top 3 actions + what the next loop cycle should focus on)
- checks for
- It evaluates loop conditions such as:
- at least 3 unacted content ideas
- site fully linked to the quiz
- next lead magnet defined
- If not satisfied, it keeps iterating.
- Runs on a weekly cadence to keep improving growth.
Additional use-case scenarios (4 examples)
The video generalizes loops beyond e-commerce:
-
Freelancer (weekly status updates)
- Automate weekly client updates by reading project folders + a “client memory/skill file”
- Draft personalized updates and save them to a review folder
- Loop condition: did every active client get an update?
-
Student studying fast-moving AI field
- Weekly automated search for top developments
- Score and filter by relevance
- Write plain-English briefings
- Loop condition: are there at least 2+ genuinely new developments?
-
Shop owner updating SKUs
- Monthly run:
- read sales data
- identify products with high traffic but low conversion
- rewrite descriptions + improve hooks/CTAs
- promote top performers
- Log changes and reasoning
- Monthly run:
-
YouTube creator
- Weekly idea selection based on:
- last 90 days performance
- what topics overperformed vs flopped
- trending signals
- competitor coverage checks
- Output: ranked top 5 ideas + flags duplicates/competitor-recovered topics
- Weekly idea selection based on:
Important caution: AI isn’t perfect
- The video stresses:
- loops still require human judgment
- AI can misjudge what will perform well (explicitly mentioned for YouTube topic success)
- Practical takeaway: use loops to generate/organize ideas, then critically review.
Tools mentioned / where this is used
- Examples are run with coding-agent interfaces such as:
- Claude Code (requires Claude Pro or higher in the demo)
- Codex
- Earlier references include Claude Code creator Boris Cherney
- and OpenClaw by Peter Steinberger
Main speakers / sources (as stated)
- Boris Cherney — created Claude Code (mentioned as discussing loops)
- Peter Steinberger — created OpenClaw (mentioned as discussing loops)