Grok Build 推出 /goal 模式,支持长时间自主任务执行
Introducing /goal Jun 22, 2026 # Introducing /goal Use /goal for long-running autonomous task execution in Grok Build. Read More
xAI 在 Grok Build 中引入 `/goal` 新模式。用户只需用一行命令设定目标,agent 便会自动规划方案、分解任务为进度清单并持续执行,直至目标完成且通过验证,期间可额外下达指令。该模式支持监控与引导命令,任务完成时清单全部勾选。即日起可用,用户可通过 `curl -fsSL | bash` 安装 CLI 并登录账号即可使用。
把Grok Build从单步指令升级成可长期自主执行任务的Agent,对习惯把代码扔给AI就跑开的开发者很友好,但目前只有CLI,生态还没铺开。
Today we're introducing /goal in Grok Build. This new mode yields long-running, autonomous execution, helping you hand off larger implementation tasks to the agent.
Available now in Grok Build. Install the CLI with a single command and sign in with your account:
$ curl -fsSL https://x.ai/cli/install.sh | bash
❯/goal Migrate the auth module to the new API 4:21 PM
Most coding sessions require back-and-forth execution and verification. With /goal, the agent continues until a task is completed and verified, whether that means reviewing code, inspecting webpages, or executing scripts.
Set a goal in one line
Give /goal an objective and Grok Build takes it from there:
/goal Migrate the auth module to the new API
It plans an approach, breaks the work into a progress checklist, and starts executing. You can keep sharing additional instructions with the agent as it works.
The new mode offers additional commands for monitoring and steering long-running tasks:
/goal status # see the live progress panel
/goal pause # stop work, keep the goal
/goal resume # pick back up
/goal clear # drop the goal entirely
When the goal is finished, the panel flips to Complete with every checklist item checked.
Getting started
Install Grok Build with the command above, then invoke /goal to hand off your first long-running task.
来源:xAI:News(网页) · x.ai