transcribe

The Greatest AI Coding System I've Ever Used, Forget Codex Vs Claude Code

AI LABS · 11m · transcribed Oct 2026
More from AI LABS Business
𝕏 Share ▶ YouTube 📥 PDF 🤖 .md

Section Insights

# 0:00

Introduction to Claude Code and Goal Command

What is the goal command in Claude code and how does it function?

The goal command in Claude code allows agents to autonomously handle long-running tasks by evaluating whether a task is complete or not. It uses a model called haiku to determine task completion subjectively, unlike previous methods that relied on strict conditions.

  • Claude code's goal command enables continuous task execution until completion.
  • The evaluation of task completion is subjective, which can lead to inefficiencies.
  • Previous tools like Ralph Wigum used strict conditions, while goal command offers a more flexible approach.
# 2:19

Limitations of the Goal Command

What are the shortcomings of the goal command in Claude code?

The goal command does not break tasks into smaller, manageable parts, leading to a lack of structured planning and potential confusion about task completion. It relies heavily on the model's evaluation without clear metrics for success.

  • The goal command may struggle with complex workflows due to its lack of task breakdown.
  • An unclear definition of 'done' can hinder the effectiveness of the goal command.
  • Goal Buddy was introduced to address these limitations and improve task management.
# 4:38

Introduction to Goal Buddy

How does Goal Buddy enhance the functionality of the goal command?

Goal Buddy improves the goal command by ensuring local state preservation, providing a dashboard for tracking progress, and defining clear metrics for task completion. It includes different agent roles to manage tasks effectively.

  • Goal Buddy creates a structured workflow that enhances task management.
  • It includes a dashboard for real-time progress tracking.
  • The system defines clear roles for agents, improving task execution and accountability.
# 6:58

Workflow Management with Goal Buddy

What is the process for managing tasks using Goal Buddy?

Goal Buddy breaks down workflows into smaller, verifiable tasks called slices, which can be executed independently. It tracks project status with a state.yaml file and updates task progress through a structured loop.

  • Tasks are divided into manageable slices for easier execution.
  • The state.yaml file tracks all tasks and their statuses.
  • The structured loop ensures continuous task management and updates.
# 9:17

Testing Goal Buddy with UI Design

How does Goal Buddy perform with tasks that lack clear evaluation criteria?

In testing, Goal Buddy effectively handled a vague prompt for UI design by clarifying intent and defining measurable outcomes. It transformed a non-quantifiable task into a structured workflow with clear goals.

  • Goal Buddy excels in clarifying vague tasks and establishing measurable objectives.
  • It adapts to different workflows by identifying specific completion criteria.
  • The tool demonstrates flexibility in managing both clear and ambiguous tasks.

Transcript

0:00 This is Gary the Snail and he's identified a market gap to build a dating platform for snails. But since he's super slow, he wants Claude code to autonomously handle his long-running tasks. Fortunately for him, agents have gotten really good at long-running tasks. Claude code has a goal command that just keeps the agent running until the task gets completed. But during our testing, we found out a lot of issues with the goal command. Since Gary recently went through a divorce and we want him to be happy, we found this open-source tool that actually fixes the problem. And it doesn't only work with Claude code, but Codex as well, spreading love just like your mom, who I'm sure loves you just as much as your employed sibling. Claude code previously released a command called goal, which keeps the agent working until a certain condition is met. We didn't cover this one on our channel, but you probably already know about it.

0:45 Before this, there was a plugin called Ralph Wigum that gained a lot of traction, which essentially did the same thing. It used hooks to feed the prompt back to Claude code until the condition was actually met. But the thing is, these conditions need to be an exact match because the Ralph loop uses a shell script for the condition literally, like the airport guard who doesn't let you through because your manly body spray is over the baggage limit. The goal command works differently. It takes the condition and the conversation so far and gives it to a small model, which is haiku. And this model intelligently evaluates if the task is done or not. It returns a yes or no decision and a no tells Claude to keep iterating on the same task, like when your boss tells you to improve the user experience because he just can't find a button on the page. So, this makes the evaluation subjective and for things that we cannot quantify on their own, that's a real improvement. The goal does work well for a lot of tasks, but it still has a lot of issues. The first issue is that it does not use any knowledge base or file system that tracks the progress of the task. And since it's not doing that, the only source of truth for the agent becomes the chat context. This might trigger you since it was your dad who wrote the crypto fortune on a sticky note that fell off the fridge back in 2017. Once the session ends for any reason and the goal wasn't completed, you sure can resume it using the Claude resume command. The goal will not be lost. But the only way it knows where it left off is the chat context. And since this command is meant for long-running tasks, not simple ones, things can get messed up in between. And of course, with the goal running for hours, context bloat and hitting compaction is bound to become a real problem at some point.

2:15 After compaction, the agent's output gets worse. It's going to start behaving like my grandma, who because of her dementia is starting to forget this channel's name. I need you guys to watch the last video for her. Another problem is that it doesn't break task down into smaller ones. Instead, it just uses the main agent and does the task breakdown on its own, the way Claude code normally does. So, there's no structured plan and the agent may lose track of what's left to do. And even though this might work well for some cases, an unclear definition of what done looks like for agents is never the right thing. The goal relies entirely on the model to evaluate completion, so it might not be as effective in some cases. It is better than Ralph Wigum being completely strict by using scripts, but at least there should be some metric that tells the agent what done might look like, just like your wedding photographer that kept saying one more shot until the whole event was over. So, this is where the goal falls short and these things might not look like much, but when put into real heavy workflows, they can bring some serious issues. Now, Goal Buddy is a tool that was built with one purpose, to make the goal command actually work the way it should. It solves all the problems we just talked about, but it's not really getting as much attention as it should, given how useful it is. It's like the hot babysitter, except instead of flirting with you, she's just babysitting your long-running tasks. Goal doesn't preserve the state of the work locally.

3:31 So, this tool fixes that and actually forces the goal to read and update local state instead of relying on chat history. And it also finishes with proof, so the agent actually knows what done looks like before it starts. In order to track progress, it also includes a whole dashboard where you can watch your agent work while it's working. And to handle all this, it's built upon three agents, which are the scout, the worker, and the judge.

3:53 Basically, a Y Combinator startup team where one does all the work, one watches him do it, and one judges both of them on Twitter. The installation is pretty straightforward. Just copy the install command and paste it into your project folder. It will be installed as a plugin available for both Claude Code and Codex. Once you start a new session, you can see the command available for use. So, these three agents each have a strictly defined role and access level.

4:15 Since this tool is built for Codex as well, the agents are defined in TOML instead of the standard markdown. The first agent is the judge, which only has read access. It skeptically analyzes hard decisions like risky scope, contradictory sources, and other patterns to make sure the task is completed safely. Its instructions forbid editing because it exists only for making judgments, nothing else. And since its task is highly critical, this agent's reasoning is set to the highest so that decisions are made properly.

4:42 It's exactly like when you've been composing that one text to your crush for 4 hours straight in the middle of the night. After it finishes working, it returns a JSON structure with the approved and rejected decisions along with the rationale. The scout is another read-only agent that maps an active task and creates a compact evidence receipt for it. Since its job is just to check the state of the task, its reasoning effort is kept low. Just like your favorite strip club's bouncer, it doesn't actually care that much. And then there's the worker agent, the only one with edit access. It does the actual work and it's only allowed to execute one task at a time. There's also the PM role, which is the main thread that coordinates the workflow. It behaves like an actual project manager doing the minimal work possible. It's the only authority that can actually mark the task as done. The core workflow starts by expressing the intent of the task in proper words, not vaguely the way us Homo sapiens usually do, but in a way the agent can properly understand. And then the oracle is defined. The oracle is basically an observable signal that identifies the outcome. It is what the system iterates against to see if the task can be marked as done or not. It could be anything, a test suite, a browser rundown, any artifact, benchmarks, or the code that turns my microwave into a time machine, because why not? AI agents are doing anything at this point. Then the next step is surface. It breaks down the task into actionable steps, creates the dashboard, and maps the tasks into a visual format.

6:02 The last piece is the PM. He's the manager in this case and keeps the goal running until the final audit marks the goal as met. To use Goal Buddy, you just run the goal prep command. This is the one that initializes the workflow, and you define the goal that you wanted to achieve. It first ensures the agents are installed and ready to be used. It then initiates the workflow, but unlike the native goal command, it's extremely self-conscious, and it first removes its own ambiguities by asking you questions so that you can clearly define the implementation. And just like your suspicious wife, it will keep asking questions until it has understood. The first step focuses on creating the goal files. It places the original request along with our answers, and then maps it to the proper objective in agent understandable language. It contains the summary of all the information and then defines the oracle, which is the most important part. The oracle for this task is straightforward. All tests must pass with proper behavior. This kind of goal is specific because it can be programmatically evaluated, unlike your cover story last night that your wife is totally not buying. Goal Buddy breaks down the whole workflow into small doable tasks. These are called slices, but unlike the real world, size doesn't matter here, because a small slice doesn't mean a small task. It means something that is safe, can be verified easily, and can be run individually. It explicitly defines the safe slicing size in the document as well. It creates the state.yaml, which tracks the project and tasks, and defines how the PM loop would look. The state.yaml consists of all the goals and rules, with all the tasks broken down by their IDs and the assigned agent. It contains a field for tracking the active task, too. It also mentions the linked dashboard. It lists all the to-do tasks and the in-progress tasks. In our case, the scout agent is currently in progress and is mapping all the files and endpoints. So, to start the loop, you just copy this command and run it. It instructs Claude to set the goal of doing everything in the goal.md file. From there, it will pick up the first active task like a king and then call out its subordinate agents to perform it. Once the scout has completed the work, it updates the progress file with all its findings and documents them in a separate directory. It also updates the board from active to completed. Then the loop picks up the next task, marks it as active, and starts the judge agent. The judge critically reviews the findings and sequences the report into the fewest possible vertical slices, which is the task breakdown for the worker to carry out independently. It then updates the slice count and updates the state file accordingly. Each task explicitly lists the allowed files, how to verify them, and when to stop. This is how it defines each slice so that agents have a clear expected output, checks, and all the necessary details.

8:32 Then one by one, it initializes the worker agent and begins with the first slice. The progress of each agent can be tracked using the dashboard. You'll know what each task is doing, which agent is active, what tasks are queued, and which ones are completed. So, you don't have to monitor things yourself and can actually give your kids the time that they need. Once all the tasks have been completed, it performs the last audit as PM, making sure that all the tests have been properly conducted. Once the audit is done, it marks the judge agent's final audit task as done and then marks the goal as completed. After this, you have to start the prayers and hope that those agents didn't hallucinate.

9:06 Overall, this worked considerably well given the complexity and scale of the app we gave it, but we think more effective parallelization could be added because it did everything sequentially. It handled one task at a time and didn't make use of Claude code's parallelization capabilities at all. Daria would have been actually disappointed to see this, but given how well it planned the workflow, it did work pretty well. Also, if you are enjoying our content, consider pressing the hype button because it helps us create more content like this and reach out to more people. We also wanted to test GoalBuddy on something more generic like designing a UI to see how it handles tasks that can't be evaluated programmatically. The previous test was on a specific workflow with clear pass and fail criteria, but just like you getting that fresh cut from your barber, some tasks just don't have that. So, we first gave the usual Gold command a vague prompt. It initialized the Gold tasks, consulted the advisor, and gave a website in no time. Being lazy, it just created a simple HTML page and didn't go for any framework, but the landing page didn't look bad. So, we gave the same exact prompt to Gold Buddy as well. Once it started, it followed the same workflow and gave a similar questioning session to clarify the intent with us. Here, Gold Buddy actually asked for the tech stack as well. Normally, I'd call this kissing ass, but since I take my AI agents seriously, I'll call it being thorough.

10:19 Similarly, it created the board and the gold.md file and translated our original request into a proper objective. It also properly identified the oracle, but the oracle in the previous task was simple. It just needed to pass all the tests. This one had different goals. It defined the task as complete when the dev server would be up and running, and browser walkthroughs confirm all the sections work as defined. This is how it turned a non-quantifiable task into something quantifiable. It also created the state.yaml again with the oracle, rules, agents, and all the tasks listed out, and then started working in the same way. It took a longer time than the normal Gold command, but it ended up implementing the app properly. This won't be a problem for Gary the snail, but you should do some push-ups in the meantime. I can see you've gotten fat.

11:02 Comparatively, the whole website performed significantly better than what the simple Gold command created. If you actually want to be an AI B2B SaaS founder who likes to build instead of just watching tutorials, then you should be an AI Labs Pro. You'll actually get like-minded nerds like our team in there with resources from the videos and lots of other goodies as well. The link's going to be in the description, and you can check that out. That brings us to the end of this video. If you'd like to support the channel and help us keep making videos like this, you can do so by using the Super Thanks button below.

11:32 As always, thank you for watching and I'll see you in the next one.

Summary

Gary the Snail has identified a niche for a dating platform for snails and seeks to utilize Claude code for long-running tasks. However, issues with the existing goal command led to the development of Goal Buddy, an open-source tool designed to enhance task management by providing better state tracking and task breakdown.

- Gary the Snail aims to create a dating platform but requires efficient task management due to his slow nature.
- The goal command in Claude code is intended for long-running tasks but has limitations, including reliance on chat context and lack of structured task breakdown.
- Goal Buddy addresses these issues by tracking local state, defining clear completion criteria, and providing a dashboard for monitoring progress.
- It employs three agents: the worker (executes tasks), the scout (maps tasks), and the judge (evaluates outcomes), ensuring a structured workflow.
- Goal Buddy allows for clearer task definition and breakdown, improving the efficiency of complex workflows.
- The tool can handle both Claude code and Codex, making it versatile for various applications.
- Testing showed that Goal Buddy performed better than the native goal command, especially in non-quantifiable tasks, by creating actionable objectives.
- The development of Goal Buddy highlights the need for improved task management tools in AI workflows, particularly for complex projects.

Questions Answered

What is the goal command in Claude code and how does it function?

The goal command in Claude code allows agents to autonomously handle long-running tasks by evaluating whether a task is complete or not. It uses a model called haiku to determine task completion subjectively, unlike previous methods that relied on strict conditions.

What are the shortcomings of the goal command in Claude code?

The goal command does not break tasks into smaller, manageable parts, leading to a lack of structured planning and potential confusion about task completion. It relies heavily on the model's evaluation without clear metrics for success.

How does Goal Buddy enhance the functionality of the goal command?

Goal Buddy improves the goal command by ensuring local state preservation, providing a dashboard for tracking progress, and defining clear metrics for task completion. It includes different agent roles to manage tasks effectively.

What is the process for managing tasks using Goal Buddy?

Goal Buddy breaks down workflows into smaller, verifiable tasks called slices, which can be executed independently. It tracks project status with a state.yaml file and updates task progress through a structured loop.

How does Goal Buddy perform with tasks that lack clear evaluation criteria?

In testing, Goal Buddy effectively handled a vague prompt for UI design by clarifying intent and defining measurable outcomes. It transformed a non-quantifiable task into a structured workflow with clear goals.

© transcribe · For agents Built with care and craft by Gokul Rajaram