SpyBara
Go Premium

Documentation 2026-10-08 23:58 UTC to 2026-10-09 23:59 UTC

2 files changed +43 −2. View all changes and history on the product overview
2026
Fri 9 23:59 Thu 8 23:58
Details

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.

Details

33| `GROK_WEB_FETCH_PROXY` | — | Egress proxy URL for `web_fetch`. |33| `GROK_WEB_FETCH_PROXY` | — | Egress proxy URL for `web_fetch`. |

34| `GROK_MEMORY` | `0` | Enable cross-session memory (`1`/`0`). |34| `GROK_MEMORY` | `0` | Enable cross-session memory (`1`/`0`). |

35| `GROK_SUBAGENTS` | `0` | Enable subagents / the task tool (`1`/`0`). |35| `GROK_SUBAGENTS` | `0` | Enable subagents / the task tool (`1`/`0`). |

36| `GROK_GOAL` | `1` | Enable `/goal` (`1`/`0`). Set `0` to remove `/goal`, for example to block long, open-ended runs on shared machines. Same as `[goal] enabled`. |

36| `GROK_AGENT` | `grok-build` | Built-in agent name, profile, or absolute path to an agent definition. |37| `GROK_AGENT` | `grok-build` | Built-in agent name, profile, or absolute path to an agent definition. |

37| `GROK_WRITE_FILE` | `1` | Disable the `write` tool with `0` (read-only sessions). |38| `GROK_WRITE_FILE` | `1` | Disable the `write` tool with `0` (read-only sessions). |

38| `GROK_TOOL_SEARCH` | `1` | On-demand MCP tool discovery for large toolsets (`1`/`0`). |39| `GROK_TOOL_SEARCH` | `1` | On-demand MCP tool discovery for large toolsets (`1`/`0`). |


280| `toggle` | `[subagents.toggle]` | map of subagent → bool | Enable or disable individual subagent types. |281| `toggle` | `[subagents.toggle]` | map of subagent → bool | Enable or disable individual subagent types. |

281| `models` | `[subagents.models]` | map of subagent → model id | Per-subagent model routing. |282| `models` | `[subagents.models]` | map of subagent → model id | Per-subagent model routing. |

282| `enabled` | `[memory]` | `true` / `false` (default off) | Cross-session memory master switch. |283| `enabled` | `[memory]` | `true` / `false` (default off) | Cross-session memory master switch. |

284| `enabled` | `[goal]` | `true` / `false` (default on) | Enable `/goal`. |

283 285 

284### `[skills]`, `[plugins]`, and `[compat.*]`286### `[skills]`, `[plugins]`, and `[compat.*]`

285 287