What
The state behind /goal (its condition, iteration count, tokens at start and last reason) is now emitted as a streamed event, so any view showing a goal indicator updates as the goal advances. The value is null once the goal is cleared.
Details
- Emitted when the
/goalStop hook reports the condition met, which clears it, or not yet met, which bumps the iteration count and last reason.
Evidence
Emitted when the user's /goal Stop hook reports met (clears) or not-yet-met (bumps iterations + last_reason).
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundle/goal
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up /goal, on Claude Code changelog.
* Fixed `/goal` runs silently stalling after API errors, network drops, or token limits: the goal now retries with backoff, or pauses and says why, including until a usage limit resetschangelog see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up /goal, on Claude Code changelog.