Read the summary

Transcript: Claude Code /goal vs /loop Explained (When to Use Which)

by CloudYeti | Practical AI Engineering

The video's transcript, taken from its captions. Click a timestamp to play the video from that moment.

0:00 So, people are talking about loop engineering right now, but I think one thing is getting mixed up. Some people hear {slash} loop and they just think that loop engineering is just a {slash} loop portion. Other people look at {slash} goal and say, "Wait, isn't that already a loop? And isn't {slash} goal already loop engineering?" And honestly, yes, {slash} goal is a loop. It's just a different kind of loop than {slash} loop.

0:30 In this video, I'll talk about the difference between {slash} goal and {slash} loop and how you can combine them together to do loop engineering, which everyone is talking about on YouTube and Twitter and whatnot. So, {slash} loop is useful when you want to do something on a schedule. Let's say you want to do something every hour, every 30 minutes, every 5 minutes, or every day, every week. You can use {slash} loop to set up a uh loop that Claude Code will run on a

1:02 schedule, right? So, one day or 1 hour. And this is a simple loop. This is just like a cron job, right? It is just following a schedule to run a command or run a prompt or run a {slash} command. So, this is a really simple loop. This is basically a cron job. Now, {slash} goal is interesting, right? With {slash} goal what you get is you get to write a prompt with a condition. You can say

🔒 The rest of the transcript is available with Pro.

🔒 Unlock Premium Features

Access to Transcript is a premium feature. Upgrade now to unlock unlimited studying tools.