Search the documentation
15 pages for /goal.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…, as in the table above. * **Across a session**: set the check as a [`/goal` condition](/docs/en/goal). A separate evaluator re-checks it after every turn and Claude keeps working until the goal resol…
Claude Code changelog
Claude Code CLI · in the page
changelog
…gateway, and when telemetry or non-essential traffic is disabled * `/goal`: Changed idle sessions to start at most three check-ins on long-running background work per goal; your next message allows…
Commands
Claude Code CLI · in the page
commands
…| | `/goal [condition\|clear]` | Set a [goal](/docs/en/goal): Claude…
Manage costs effectively
Claude Code CLI · in the page
costs
…oal check-ins**: while background work keeps an active [goal](/docs/en/goal) waiting, Claude Code [asks Claude to check on that work](/docs/en/goal#background-work-defers-evaluation) even when the ses…
Environment variables
Claude Code CLI · in the page
env-vars
…goal waiting before Claude Code [asks Claude to check on it](/docs/en/goal#background-work-defers-evaluation). Default `30`. Set `0` to turn check-ins off. Give whole minutes in plain digits, at most…
Glossary
Claude Code CLI · in the page
glossary
…ping after one attempt. A verification loop is the prerequisite for [`/goal`](/docs/en/goal), unattended runs, and [dynamic workflows](/docs/en/workflows): without one, the only thing deciding the age…
Keep Claude working toward a goal
Claude Code CLI · in the page
goal
…Keep Claude working toward a goal > Set a completion condition with /goal and Claude keeps working until it's met, a model judges it impossible, or an error you have to fix clears the goal. The `/g…
Hooks reference
Claude Code CLI · in the page
hooks
…. API errors fire [StopFailure](#stopfailure) instead. <Tip> The [`/goal`](/docs/en/goal) command is a built-in shortcut for a session-scoped prompt-based Stop hook. Use it when you want Claude to…
Model configuration
Claude Code CLI · in the page
model-config
…he path. To keep it working toward that outcome, [set a goal](/docs/en/goal). * **Hand it ambiguous problems**: root-cause investigations, outage debugging, and architecture decisions are where the ex…
Prompt library
Claude Code CLI · in the page
prompt-library
…mpare it to the original, and fix any differences', nextHref: '/en/goal', src: 'best-practices' }, { id: 'follow-an-existing-pattern', sdlc: 'build', cat: 'Implement', roles:…
Run prompts on a schedule
Claude Code CLI · in the page
scheduled-tasks
…turn after turn toward a condition rather than on an interval, see [`/goal`](/docs/en/goal). Tasks are session-scoped: they live in the current conversation and stop when you start a new one. Resumi…
Manage sessions
Claude Code CLI · in the page
sessions
…sions` to override the restored mode. * Active goal: a [goal](/docs/en/goal#resume-with-an-active-goal) that was still active when the session ended carries over; its turn count, timer, and token-spen…
Week 20 · May 11–15, 2026
Claude Code CLI · in the page
whats-new/2026-w20
…e="digest-feature-header"> <span className="digest-feature-title">/goal</span> <span className="digest-feature-pill">v2.1.139</span> </div> <p className="digest-feature-lede">Set a comple…
Week 34 · August 17–21, 2026
Claude Code CLI · in the page
whats-new/2026-w34
…urn</div> <div>When background tasks keep a <a href="/docs/docs/en/goal#background-work-defers-evaluation"><code>/goal</code></a> waiting, Claude checks in on them after 30 minutes instead of wait…
What's new
Claude Code CLI · in the page
whats-new/index
…unning, what's blocked on you, and what's done. Also this week: **`/goal`** keeps Claude working across turns until a completion condition holds; **fast mode** now runs on Opus 4.7 by default; and…