modes-and-commands.md +41 −2
89 89
90| Command | What it does |90| Command | What it does |
91| ------- | ------------ |91| ------- | ------------ |
92| `/goal <objective>` | Work toward an objective until it is verified complete — see [Goals](#goals) |
92| `/flush` | Flush conversation memory to disk now |93| `/flush` | Flush conversation memory to disk now |
93| `/memory` (alias `/mem`) | Browse, view, and manage your memories |94| `/memory` (alias `/mem`) | Browse, view, and manage your memories |
94| `/dream` | Run memory consolidation |95| `/dream` | Run memory consolidation |
95 96
96These appear when cross-session memory is enabled.
97
98## Skills as commands97## Skills as commands
99 98
100Any user-invocable skill can also appear as a slash command, for example `/<skill-name>`.99Any user-invocable skill can also appear as a slash command, for example `/<skill-name>`.
101 100
102If names collide, use the qualified form, such as `/local:commit`.101If names collide, use the qualified form, such as `/local:commit`.
103 102
103## Goals
104
105`/goal` gives Grok an objective and lets it work toward it across many rounds, without you prompting each step. Goals work best for long-running, hard tasks with measurable success criteria.
106
107### How it works
108
109* **After every round**, Grok checks its progress and decides whether to keep working, stop because it needs something from you, or treat the goal as done.
110* **When the goal looks done**, a panel of reviewer subagents checks the work against the evidence. The goal is marked complete only when most of them agree.
111* **If the reviewers find gaps**, Grok keeps working on them. If it gets stuck on the same gaps, it pauses and shows you what's missing.
112
113### Writing a good goal
114
115Say what "done" looks like, so the reviewers have something concrete to check.
116
117```text
118/goal [objective]. Keep going until [verifiable end state].
119```
120
121**Weak:** no way to tell when it's done.
122
123```text
124/goal Migrate the auth module to the new API
125```
126
127**Strong:** clear finish line and limits.
128
129```text
130/goal Migrate the auth module to the new API, verified by the auth test suite passing, without changing public endpoints.
131```
132
133### Commands
134
135| Command | What it does |
136| ------- | ------------ |
137| `/goal <objective>` | Start a goal. Add `--budget <tokens>` to cap the tokens it may spend. |
138| `/goal` or `/goal status` | Show the goal, its status, tokens used, and time elapsed. |
139| `/goal pause` | Pause the goal. |
140| `/goal resume` | Continue a paused goal. |
141| `/goal clear` | Remove the goal. |
142
104## Workflows143## Workflows
105 144
106Workflows orchestrate a bounded set of [subagents](/build/features/subagents) in the background: fan out work, verify, then return a result. They are on by default.145Workflows orchestrate a bounded set of [subagents](/build/features/subagents) in the background: fan out work, verify, then return a result. They are on by default.