Answer: Run `/goal` followed by the condition you want satisfied; setting a goal starts a turn immediately with the condition itself as the directive, so you don't need to send a separate prompt. Status: Confirmed Entry: tool/claude-code/commands-and-shortcuts/set-goal-condition Revision: 2 Digest: sha256:bc1cac4be3ef16cf (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:18Z Last changed: 2026-11-20T12:21:05Z (keyboard shortcut for reason: — → Ctrl+O) Last verified: 2026-11-20T12:21:05Z Next check: 2026-11-21T12:21:05Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command syntax | /goal | [1] | 2026-11-20 example condition | /goal all tests in test/auth pass and the lint step is clean | [1] | 2026-11-20 active indicator | ◎ /goal active | [1] | 2026-11-20 keyboard shortcut for reason | Ctrl+O | [1] | 2026-11-20 Sources: [1] Anthropic. "Keep Claude working toward a goal". https://code.claude.com/docs/en/goal.md Role: primary. Accessed: 2026-11-20T12:21:05Z Quote: "Run `/goal` followed by the condition you want satisfied." (Supports: command syntax) Quote: "/goal all tests in test/auth pass and the lint step is clean" (Supports: example condition) Quote: "a `◎ /goal active` indicator shows how long the goal has been running" (Supports: active indicator) Quote: "you can press Ctrl+O to see the reason behind it" (Supports: keyboard shortcut for reason) Published: 2026-11-20T02:55:02Z Snapshot SHA-256: dbf77b3a29ea1ea786f5ba35b031274dc4671cd7f264f0f5a5b2fbf0cf1ed78b (captured 2026-11-20T12:21:05Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:21:05Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:05Z Last attempt: 2026-11-20T12:21:05Z Notes and limitations: Extracted automatically from a single official source (section "Set a goal"). Related: https://latestn.com/tool/claude-code/commands-and-shortcuts/start-remote-control-session How do I start a Remote Control session in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/stop-loop How do I stop a loop in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/system-prompt-flags What CLI flags does Claude Code support for customizing the system prompt? https://latestn.com/tool/claude-code/commands-and-shortcuts/rewind-and-summarize How do I rewind or summarize Claude Code's edits and conversation? https://latestn.com/tool/claude-code/commands-and-shortcuts/run-ultrareview-from-cli How do I run an ultrareview of my branch or pull request in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/scroll-conversation-fullscreen How do I scroll the conversation in Claude Code fullscreen mode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:21:05Z | changed | keyboard shortcut for reason: — → Ctrl+O | [1] 2026-11-20T12:21:05Z | changed | turn behavior: Setting a goal starts a turn immediately, with the condition itself as the directive. → — | [1] 2026-11-20T12:21:05Z | changed | behavior when goal already active: the new one replaces it → — | [1] 2026-11-13T03:04:18Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/commands-and-shortcuts/set-goal-condition/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/set-goal-condition POST: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/set-goal-condition with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/set-goal-condition?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set a completion condition with /goal in Claude Code? Revision 2, last verified 2026-11-20T12:21:05Z. https://latestn.com/tool/claude-code/commands-and-shortcuts/set-goal-condition (accessed 2026-11-21T10:04:12Z). @misc{LatestN_tool_claude_code_commands_and_shortcuts_set_goal_condition_r2, title = {How do I set a completion condition with /goal in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/commands-and-shortcuts/set-goal-condition}}, note = {Revision 2; digest sha256:bc1cac4be3ef16cf; last verified 2026-11-20T12:21:05Z; accessed 2026-11-21T10:04:12Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/commands-and-shortcuts/set-goal-condition