People & Blogs

How to use Claude Goal. Best practices, how it works, and why you need it!

by Don’t Sleep On AI

Share:

📚 Main topics

  • How Goals worksThe Goals command lets Claude Code work autonomously on a task, while a separate Claude session independently reviews whether the task is complete. This helps catch incomplete work and keeps Claude working until the goal is verified. 1:01
  • Preparing Claude CodeUpdate Claude Code to the latest version, then enable auto mode or bypass permissions so Claude can work without repeated interruptions. 1:31
  • Planning before startingFirst have Claude turn your ideas into phases and tasks, and save the plan in long-term memory so it can refer back to the project’s goals and details. 2:34
  • Getting tasks and verification criteriaAsk Claude for the next two tasks from the plan, with criteria to verify each one. Keep each task and its verification list under 3,500 characters to stay below the command’s 4,000-character limit. 3:04
  • Keeping the project on trackAfter every few tasks, ask Claude to review the plan and recent project notes to check that the work still supports the project’s high-level goals. 4:39

✨ Key takeaways

  • Independent review mattersA separate Claude session checks the work instead of relying on the primary session’s claim that it is finished. 0:30
  • Feed Claude a few tasks at a timeTwo tasks, or at most three, gives Claude room to adapt the plan as it encounters bugs, blockers, or configuration changes. 4:07
  • Memory supports continuityA long-term memory system helps Claude retain the project plan, its rationale, and the intended deliverables. 5:42

🧠 Lessons learned

  • Use clear, verifiable goalsGive Claude both a well-defined task and specific criteria for determining whether it works. 2:01
  • Revisit the plan as you goClaude may need to change the order of tasks or revise the plan as it learns more about the project, helping prevent drift and avoid later refactoring. 5:11

🧠 Conclusion/next steps

  • Repeat the workflowAsk Claude for the next two tasks and their verification criteria, then submit them through the Goals command and repeat as work is completed. 6:13
  • Set up long-term memoryEstablish a memory system before relying on this workflow to help Claude remember project details and goals. 5:42

Transcript excerpt

0:00 Hey Claude Code users, here's the best tip you'll receive today on coding with Claude. Anthropic just released a new goal slash command in Claude Code and it will significantly improve your AI coding if you start using it properly. I'll explain exactly why you want to use it and I'll show you exactly how to use it and I promise this will be a tool you will happily use daily because it's about to save you so much time and catch bugs in your coding before they ever exist. So, really quick, what is goals? This is a new command that gives Claude Code the ability to autonomously operate

0:30 on completing your coding tasks and Claude will keep working on a task until the goal of that task is achieved. In order to know if Claude achieved that task goal, he'll run a separate independent Claude session who will review the results to ensure the goal was met rather than simply having your primary Claude say that it's done. And guys, this is massive and solves a major problem which is Claude hallucinating that he finished the task or worse, Claude just wants to be lazy and never actually completes the task at all even

🔒 The full, searchable transcript is available with Pro.

🔒 Unlock Premium Features

This is a premium feature. Upgrade to unlock unlimited Q&A, transcripts, mindmaps, and translations.

Questions & Answers

Common questions about this video

What does the /goals command do in Claude Code?

It lets Claude Code work autonomously on a task until its goal is achieved. A separate Claude session independently reviews the results to check whether the goal was met. 0:30

Why is the independent review in /goals useful?

It helps catch cases where Claude claims a task is finished even though it is not. The independent session reviews the work adversarially, and Claude keeps working until the goal is verified. 1:01

What should you do before using /goals?

Update Claude Code to the latest version, then exit and log back in. Also enable auto mode or bypass permissions so Claude can work without repeatedly asking for permission. 1:31

What information should you provide for a goal?

Give Claude a clear task—such as what to build, fix, debug, or refactor—and explicit criteria for verifying that the task is complete. 2:01

How should you prepare a project plan before using /goals?

Work with Claude through a detailed planning phase: break brainstorming ideas into independent phases and tasks, and save the plan in long-term memory so Claude can refer to its details and verification criteria. 2:34

What prompt does the speaker recommend for getting tasks from a project plan?

Ask: “Give me the next 2 tasks from our project plan. Include verification criteria to ensure each task is completed and working. Do not exceed 3,500 characters for any single Task + Verification list.” The character limit leaves a buffer because /goals cannot exceed 4,000 characters. 3:04

Why does the speaker recommend giving Claude only two or three tasks at a time?

As development progresses, Claude may discover bugs, blockers, or configuration needs that change the plan or task order. Feeding it a few tasks at a time makes it easier to adapt. 4:07

How can you keep Claude aligned with your project's high-level goals?

After every few completed tasks, ask Claude to review the plan and recent project notes or session logs in its Obsidian memory system, and check whether it is still on track to meet the project's deliverables. 4:39

🔒 Unlock Premium Features

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

🔒 Unlock Premium Features

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

🔒 Unlock Premium Features

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

Get unlimited summaries, Q&A, transcripts and more with Pro

Upgrade to Pro

Suggestions

🔒 Unlock Premium Features

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