In short.
Grok’s Background Tasks guide is for developers who want work to continue alongside an AI conversation, with seven-day expiry for recurring prompts. It documents background commands, recurring agent turns, script-based notifications and queued prompts. The controls are specific enough to guide use, but installation, pricing, permissions and behavior after a session closes are undocumented here. Nothing was executed, so runtime behavior and reliability remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://docs.x.ai/build/features/background-tasks.md], including background commands, scheduled prompts, monitors and the prompt queue. Linked pages, including the sessions and todos documentation, are excluded. No licensing notice appears in the supplied page. Installation, pricing, service terms and release history are not established. Nothing was executed; all described behavior comes from the documentation.
The overview
Identity
Background Tasks is a feature guide in xAI’s documentation for Grok, available at [https://docs.x.ai/build/features/background-tasks.md]. It describes how commands, subagents and monitors can run while a conversation continues. Subagents are mentioned, but this page does not explain how to configure or manage them separately.
Assessment
The guide is useful for someone already using Grok who needs concrete controls for long-running work. It distinguishes periodic checks from event notifications and gives explicit scheduling limits. It provides limited help with initial installation, troubleshooting or dependable unattended operation because those topics are not covered.
Users
The documented examples suit developers running development servers, builds and repeated test checks, or watching CI activity and deployment logs. Beginners get direct keyboard shortcuts and a scheduling example. Experienced developers get details about notification behavior and recurring agent turns, although process isolation and session persistence are unknown.
Capabilities
The agent can start long-running commands in the background and collect their output when needed. Ctrl+B moves a running foreground command into the background. Ctrl+G opens the tasks pane, /tasks prints a snapshot in the conversation history, and selecting a background task there and pressing x kills it.
The page also documents recurring prompts through /loop, monitors that turn script output into conversation notifications, and a queue for prompts submitted during an active turn. Ctrl+; toggles the queue panel, and /queue lists queued prompts.
Using it
Requirements
The instructions assume access to Grok’s agent interface. Monitoring requires a script whose output represents the events to watch. Supported operating systems, installation steps, required account plans, compatible versions and command permission boundaries are not specified.
Mechanism
A /loop prompt fires immediately and then repeats at the requested interval; every firing starts a new agent turn. Intervals accept Ns, Nm, Nh and Nd for seconds, minutes, hours and days. The seconds form has a minimum of 60. Loops expire after seven days, and at most 50 scheduled tasks may be active simultaneously.
A monitor attaches to a script and converts each printed line into a notification that interrupts the conversation. Prompts submitted while a turn is running enter a queue. The page does not specify queue ordering, retry behavior or overlap handling for scheduled turns.
Setup
With Grok already available, ask it to run a command in the background, or press Ctrl+B while a foreground command is running. Inspect active work with Ctrl+G or /tasks. Create recurring work with /loop followed by an interval and a prompt; cancel it from the tasks pane or ask the agent to cancel it.
For event monitoring, ask the agent to watch the relevant stream through a script. The page gives no monitor script template. It advises selective output because every emitted line interrupts the conversation.
Example
The documented example is: /loop 5m Check if the test suite passes and report any failures. According to the guide, it fires immediately and repeats every five minutes until cancelled or expired. This illustrates scheduling syntax; it does not establish which test command the agent will choose, whether tests pass, or whether overlapping checks are prevented. Nothing was executed.
Assessment & evidence
Limitations
Recurring work has a seven-day expiry and a limit of 50 active scheduled tasks. Monitor output can disrupt an ongoing conversation because each line triggers an interruption. These are material constraints when planning frequent checks or watching noisy logs.
The page does not establish whether tasks survive closing Grok, disconnection or a machine restart. Execution location, resource limits, failure recovery and notification delivery guarantees are also unknown. No runtime reliability or performance results are provided.
Reasoning
The documented mechanisms support different needs: a background command keeps an ongoing process available, /loop requests repeated agent work, and a monitor surfaces events as a script emits them. This makes the guide useful for choosing how to follow work during a conversation. Its undocumented persistence and recovery behavior limits what can be concluded about unattended operation.
Alternatives
Within Grok, choose /loop for periodic checks and a monitor for an event stream. The page distinguishes running tasks from todos, which track planned multi-step work and are accessible with Ctrl+T on the agent screen. Queuing handles prompts submitted during an active turn. External schedulers and other coding assistants are not compared here.
Evidence
The findings rest on the complete Background Tasks documentation page at [https://docs.x.ai/build/features/background-tasks.md]. It supplies interface controls, scheduling syntax, explicit limits and examples. These are documented product behaviors; independent execution results, benchmarks and reliability measurements are unavailable.
Access & freshness
Costs
The page provides no subscription prices, billing rules, included usage or plan eligibility. It states that each scheduled firing is a new agent turn, but does not explain how those turns or monitor activity are charged. Total operating cost is unknown.
Rights
The supplied page contains no licence or redistribution terms for the documentation. It also does not establish service terms, ownership of generated output or data-handling rights for monitored content. These terms are unknown from this page.
Freshness
The supplied page was captured on 23 November 2026 at 02:42:52 UTC. It contains no publication date, update date or associated Grok release number. The capture establishes when this text was obtained, but does not establish when the features changed or whether later versions behave identically.
Actions
If you already use Grok, start with one background command and inspect its status through the tasks pane. Use /loop for a periodic check and remember its immediate first firing and seven-day expiry. Keep monitor scripts selective to control interruptions.
Before depending on unattended checks, confirm session persistence, failure handling and billing in the applicable product documentation or account terms. Those details are not established by this guide.
