Cmd. /goal
Persist work until a completion condition is met.
Key takeaways
- Persist work until a completion condition is met.
- Check the input surface and availability before using the examples below.
Purpose
Persist work until a completion condition is met.
/goal [condition|clear]Availability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Claude Code 2.1.278 |
The installed command menu and account or organization settings determine availability.
Examples
/goal Finish the migration and keep the tests greenEffects and persistence
Attaches an objective to the thread across turns. Update or clear it when the task scope changes.
Cautions
State observable completion criteria, and update or clear the goal when the requested scope changes.