Keep Claude working toward a goal - Claude Code Docs
code.claude.com · 1,848 words · saved by 1 readers
Set a completion condition with /goal and Claude keeps working across turns until the condition is met.
The /goal command sets a completion condition and Claude keeps working toward it without you prompting each step. After each turn, a small fast model checks whether the condition holds. If the model judges it not yet met, Claude starts another turn instead of returning control to you. The goal clears automatically once the condition is met, if the model judges the condition impossible to satisfy, or if a turn fails on an error you have to fix. Use a goal for substantial work with a verifiable end state: Migrating a module to a new API until every call site compiles and tests pass…
saved by
related reading
- Claude Code Cheat Sheetcc.storyfox.cz
- Prompting best practicesdocs.anthropic.com
- Best practices for Claude Code - Claude Code Docsanthropic.com
- Agentationagentation.dev
- Agentationagentation.com
- A Guide to Claude Code 2.0 and getting better at using coding agents – sankalp's blogsankalp.bearblog.dev
- Cookbookcookbook.openai.com
- Prompt guidance | OpenAI APIdevelopers.openai.com
- AI Learning Resources & Guides from Anthropic \ Anthropicanthropic.com
- GitHub - x1xhlol/system-prompts-and-models-of-ai-tools: FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sourced) System Prompts, Internal Tools & AI Modelsgithub.com
- Use Cases | Claudeclaude.com
- How Anthropic teams use Claude Code | Claudeanthropic.com