xAI shipped a brand new mode known as /objective inside Grok Construct, its terminal coding agent. The characteristic targets long-running, autonomous process execution. You hand the agent a bigger implementation process, then step again.
Most coding periods require back-and-forth execution and verification. You immediate, the agent acts, and also you confirm every step. /objective modifications that loop. The agent retains working till a process is accomplished and verified. Verification can imply reviewing code, inspecting webpages, or executing scripts.
The mode packages that autonomy behind one command and a visual progress guidelines.
TL;DR
/objectiveruns lengthy, autonomous duties inside Grok Construct’s terminal agent.- It plans an method, builds a guidelines, executes, and verifies till full.
- Verification can assessment code, examine webpages, or execute scripts.
standing,pause,resume, andclearsteer the reside run.- Entry wants a SuperGrok or X Premium Plus subscription.
What’s /objective
/objective is a mode inside Grok Construct, not a separate product. Grok Construct is xAI’s coding agent and CLI for software program engineering. A CLI is a command-line instrument that runs in your terminal. It really works in opposition to your native codebase, studying recordsdata and operating instructions.
Grok Construct already ships a number of agent options. It has a plan mode that blocks edits till you approve a plan. It delegates bigger work to specialised subagents that run in parallel. It reads your AGENTS.md, plugins, hooks, expertise, and MCP servers out of the field. MCP is a protocol that connects brokers to exterior instruments and information.
Entry requires a SuperGrok or X Premium Plus subscription. You put in the CLI with one command:
curl -fsSL https://x.ai/cli/set up.sh | bash
You then sign up together with your account and invoke /objective. The mode is constructed for handoff. You describe one goal, and the agent owns the multi-step work.
Why Lengthy-Operating Execution Issues
An agent is given a objective, not only a single immediate. It plans steps, executes them, observes outcomes, and replans when actuality diverges. That’s the observe–plan–act loop. The trade-off is observability: lengthy runs produce many actions it’s essential to monitor. /objective solutions that with a progress guidelines and steering instructions.
How /objective Works
You set a objective in a single line. You sort it contained in the Grok Construct session, not your system shell. For instance:
/objective Migrate the auth module to the brand new API
Grok Construct plans an method for that goal. It breaks the work right into a progress guidelines. It then begins executing the guidelines objects one after the other.
You aren’t locked out through the run. You may maintain sharing extra directions as it really works. When the objective is completed, the panel flips to Full. Each guidelines merchandise then exhibits as checked.
The Verification Step
The element price noting is verification. /objective doesn’t cease at writing code. It continues till the duty is accomplished and verified.
Verification, per xAI, can take three varieties. The agent could assessment the code it produced. It could examine webpages to substantiate conduct. It could execute scripts to check the outcome.
This issues for autonomous runs. An agent that solely edits recordsdata could report success earlier than the change works. Constructing verification into the run means the agent checks its personal output earlier than it finishes.
Interactive Demo
// controls
cPause.onclick=perform(){
if(!operating) return;
paused=true; setState(‘PAUSED’);
emit(“Work paused. The objective is saved.”, ‘sys’);
cPause.disabled=true; cResume.disabled=false;
};
cResume.onclick=perform();
cClear.onclick=perform(){
if(timer){clearInterval(timer);timer=null;}
operating=false; paused=false; objects=[]; idx=0;
con.innerHTML=”; setState(‘IDLE’); statusBox.classList.take away(‘full’);
checks.innerHTML=’
No lively objective.
Sort a objective above or decide an instance, then run.
‘;
setProgress();
emit(“Objective dropped. Prepared for a brand new goal.”, ‘sys’);
runBtn.disabled=false; gi.disabled=false;
cPause.disabled=true; cResume.disabled=true; cClear.disabled=true;
gi.focus();
};
cStatus.onclick=perform(){
var achieved=objects.size?objects.filter(perform(i){return i.achieved;}).size:0;
emit(“/objective standing — “+stateEl.textContent+” · “+achieved+”/”+objects.size+” steps full”, ‘you’);
statusBox.scrollIntoView({conduct:’clean’,block:’nearest’});
};
runBtn.onclick=startGoal;
gi.addEventListener(‘keydown’,perform(e){ if(e.key===’Enter’){ startGoal(); }});
// auto-resize for WordPress srcdoc iframe (part peak + ~40px)
perform resize(){
strive{
var h = root.offsetHeight + 40;
guardian.postMessage({sort:’mtp-goal-resize’, peak:h}, ‘*’);
}catch(e){}
}
var ro = window.ResizeObserver ? new ResizeObserver(resize) : null;
if(ro) ro.observe(root);
window.addEventListener(‘load’,resize);
setInterval(resize, 1200);
})();
