{"slug": "xai-launches-goal-in-grok-build-adding-long-running-autonomous-execution-with-in", "title": "xAI Launches /goal in Grok Build, Adding Long-Running Autonomous Execution With Built-In Verification for Multi-Step Coding Tasks", "summary": "XAI launched /goal in Grok Build, a mode for long-running autonomous coding tasks with built-in verification. The agent plans, executes, and verifies multi-step objectives like module migration, reducing back-and-forth. Available to SuperGrok or X Premium Plus subscribers.", "body_md": "xAI shipped a new mode [called /goal inside Grok Build](https://x.ai/news/introducing-goal), its terminal coding agent. The feature targets long-running, autonomous task execution. You hand the agent a larger implementation task, then step back.\n\nMost coding sessions require back-and-forth execution and verification. You prompt, the agent acts, and you verify each step. `/goal`\n\nchanges that loop. The agent keeps working until a task is completed and verified. Verification can mean reviewing code, inspecting webpages, or executing scripts.\n\nThe mode packages that autonomy behind one command and a visible progress checklist.\n\n**TL;DR**\n\n`/goal`\n\nruns long, autonomous tasks inside Grok Build’s terminal agent.- It plans an approach, builds a checklist, executes, and verifies until complete.\n- Verification can review code, inspect webpages, or execute scripts.\n`status`\n\n,`pause`\n\n,`resume`\n\n, and`clear`\n\nsteer the live run.- Access needs a SuperGrok or X Premium Plus subscription.\n\n**What is **`/goal`\n\n`/goal`\n\n`/goal`\n\nis a mode within Grok Build, not a separate product. Grok Build is xAI’s coding agent and CLI for software engineering. A CLI is a command-line tool that runs in your terminal. It works against your local codebase, reading files and running commands.\n\nGrok Build already ships several agent features. It has a plan mode that blocks edits until you approve a plan. It delegates larger work to specialized subagents that run in parallel. It reads your `AGENTS.md`\n\n, plugins, hooks, skills, and MCP servers out of the box. MCP is a protocol that connects agents to external tools and data.\n\nAccess requires a SuperGrok or X Premium Plus subscription. You install the CLI with one command:\n\n```\ncurl -fsSL https://x.ai/cli/install.sh | bash\n```\n\nYou then sign in with your account and invoke `/goal`\n\n. The mode is built for handoff. You describe one objective, and the agent owns the multi-step work.\n\n**Why Long-Running Execution Matters**\n\nAn agent is given a goal, not just a single prompt. It plans steps, executes them, observes results, and replans when reality diverges. That is the observe–plan–act loop. The trade-off is observability: long runs produce many actions you must monitor. `/goal`\n\nanswers that with a progress checklist and steering commands.\n\n**How **`/goal`\n\nWorks\n\n`/goal`\n\nWorksYou set a goal in a single line. You type it inside the Grok Build session, not your system shell. For example:\n\n```\n/goal Migrate the auth module to the new API\n```\n\nGrok Build plans an approach for that objective. It breaks the work into a progress checklist. It then starts executing the checklist items one by one.\n\nYou are not locked out during the run. You can keep sharing additional instructions as it works. When the goal is finished, the panel flips to **Complete**. Every checklist item then shows as checked.\n\n**The Verification Step**\n\nThe detail worth noting is verification. `/goal`\n\ndoes not stop at writing code. It continues until the task is completed and verified.\n\nVerification, per xAI, can take three forms. The agent may review the code it produced. It may inspect webpages to confirm behavior. It may execute scripts to test the result.\n\nThis matters for autonomous runs. An agent that only edits files may report success before the change works. Building verification into the run means the agent tests its own output before it finishes.\n\n**Interactive Demo**\n\n**Use Cases With Examples**\n\nModule migration is the main example. `/goal Migrate the auth module to the new API`\n\ncovers a multi-file change. The task is long, mechanical, and testable.\n\n**Other practical handoffs fit the same shape:**\n\n- Refactor a service, then run its test suite to confirm a green build.\n- Add an endpoint, then inspect the rendered page for runtime errors.\n- Upgrade a dependency, execute the build, and fix the breakages.\n- Port a config across files, then run a script to validate it.\n\nEach task suits an autonomous goal better than a quick one-line edit. The payoff comes when the work spans many steps you would otherwise supervise.\n\n**Steering a Long-Running Goal**\n\n`/goal`\n\nadds commands to monitor and steer the run. You type them inside the Grok Build session:\n\n```\n/goal status     # see the live progress panel\n/goal pause      # stop work, keep the goal\n/goal resume     # pick back up\n/goal clear      # drop the goal entirely\n```\n\n`status`\n\nsurfaces the live progress panel. `pause`\n\nhalts work but keeps the goal intact. `resume`\n\ncontinues from where it stopped. `clear`\n\ndrops the goal entirely and starts fresh.\n\nThese controls are important for unattended runs. You can pause work or drop the goal at any point. That helps when an agent edits files and runs scripts on its own.\n\n**How **`/goal`\n\nCompares\n\n`/goal`\n\nCompares`/goal`\n\nsits among terminal coding agents that already run multi-step work. What it adds is an explicit, steerable goal object. The named lifecycle commands and the built-in verification step are the new parts.\n\n| Dimension | Grok Build `/goal` | Claude Code | OpenAI Codex CLI | Cursor Agent Mode |\n|---|---|---|---|---|\n| Handoff model | One-line goal object | Conversational + task list | Prompt with approval mode | Chat instruction in IDE |\n| Progress view | Auto checklist + live panel | Internal to-do list | Step-by-step log | Inline edit stream |\n| Steering controls | `status` / `pause` / `resume` / `clear` | Interrupt and reprompt | Approve / reject steps | Accept / reject edits |\n| Verification | Runs until completed and verified | Runs tests when instructed | Runs tests when instructed | Runs tests when instructed |\n| Where it runs | Terminal (TUI, headless, ACP) | Terminal | Terminal | IDE-integrated |\n| Access | SuperGrok / X Premium Plus | Subscription or API | Subscription or API | Subscription |\n\n**Key Takeaways**\n\n`/goal`\n\nruns long, autonomous tasks inside Grok Build’s terminal agent.- It plans an approach, builds a checklist, executes, and verifies until complete.\n- Verification can review code, inspect webpages, or execute scripts.\n`status`\n\n,`pause`\n\n,`resume`\n\n, and`clear`\n\nsteer the live run.- Access needs a SuperGrok or X Premium Plus subscription.\n\n**Community Reactions**\n\nCheck out the ** Technical details. **Also, feel free to follow us on\n\n**and don’t forget to join our**[Twitter](https://x.com/intent/follow?screen_name=marktechpost)\n\n**and Subscribe to**\n\n[150k+ML SubReddit](https://www.reddit.com/r/machinelearningnews/)**. Wait! are you on telegram?**\n\n[our Newsletter](https://www.aidevsignals.com/)\n\n[now you can join us on telegram as well.](https://t.me/machinelearningresearchnews)Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? [Connect with us](https://forms.gle/wbash1wF6efRj8G58)\n\nMichal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.", "url": "https://wpnews.pro/news/xai-launches-goal-in-grok-build-adding-long-running-autonomous-execution-with-in", "canonical_source": "https://www.marktechpost.com/2026/06/22/xai-launches-goal-in-grok-build-adding-long-running-autonomous-execution-with-built-in-verification-for-multi-step-coding-tasks/", "published_at": "2026-06-22 20:34:48+00:00", "updated_at": "2026-06-24 00:26:23.749914+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "developer-tools", "generative-ai"], "entities": ["xAI", "Grok Build", "SuperGrok", "X Premium Plus"], "alternates": {"html": "https://wpnews.pro/news/xai-launches-goal-in-grok-build-adding-long-running-autonomous-execution-with-in", "markdown": "https://wpnews.pro/news/xai-launches-goal-in-grok-build-adding-long-running-autonomous-execution-with-in.md", "text": "https://wpnews.pro/news/xai-launches-goal-in-grok-build-adding-long-running-autonomous-execution-with-in.txt", "jsonld": "https://wpnews.pro/news/xai-launches-goal-in-grok-build-adding-long-running-autonomous-execution-with-in.jsonld"}}