Skip to content

Grok Build

Lattis supports xAI’s official Grok Build coding agent, whose executable is grok. Install the official CLI, then select Grok Build in the agent picker. This integration supports release 1.0.70 and refuses other versions until their routing and tool restrictions have been validated. See the upstream documentation for installation and platform requirements.

Grok runs in the branch’s Lattis worktree. Desktop tabs and remote web sessions use the same daemon launch path. Select models from the providers connected to Lattis; inference, discovery, and auxiliary requests go through its gateway, with project and session attribution. To use xAI models directly, add an xAI account in Settings → Accounts, then choose an available Grok model. API keys use metered billing. Experimental Grok Build subscription sign-in is also available and can incur additional-usage charges; see xAI accounts for setup, quota information and the limits of dev-channel verification.

Lattis discovers the text models available to the account. API catalogs include aliases, context limits, cached-input prices, and long-context pricing. Models without a published context limit are omitted. It supports Chat Completions and native Responses; Grok uses Responses when offered by the selected provider. Responses requests set store: false, so clients carry their own conversation history. This does not change xAI’s account-level retention or training policy.

Each conversation gets a persistent home under Lattis’s data directory, grok/<session-uuid>. Lattis writes its gateway and MCP configuration there. It does not overwrite ~/.grok or copy vendor credentials. The MCP bearer token is scoped to the launch and supplied through the process environment, so two conversations do not share credentials in a configuration file.

Lattis inherits the user’s theme/fullscreen settings. Grok retains its native repository instructions, repository skills, and ~/.agents/skills discovery. User ~/.grok plugins, executable hooks, per-model endpoints, and authentication are deliberately not inherited. Move shared skills to ~/.agents/skills when you want both standalone Grok and Lattis to discover them.

The Share with launched agents setting attaches Lattis tools. The Allow agent-installed MCP servers setting governs external Claude/Cursor and project MCP discovery. Lattis inspects the effective configuration before launch; an unexpected executable hook, disabled required Lattis server, or conflicting managed policy stops the launch with an explanation. Managed Grok configuration requires administrator review before this isolated integration can run.

Lattis disables Grok’s shared leader and automatic updates for its launches. Model-visible native subagents, web search, and scheduler/monitor tools are excluded. Use Lattis’s scoped worktree and coordination tools to create registered work. Upstream terminal commands such as /fork --worktree remain available; they bypass Lattis registration and are unsupported. Use Lattis’s worktree and history fork actions instead.

Grok supports Assist review passes and Auto Fix. Review passes expose file reading/search and the scoped review reporters; shell and file-writing tools are excluded. Auto Fix additionally exposes editing and shell tools and its own progress/outcome reporters. Headless prompts use temporary files, allowing large diffs without command-line length limits. Streamed tool activity appears in the pass output.

The optional TLA+ formal-checking pass is not yet validated for Grok. If enabled, Lattis records a skipped formal check and still runs the regular review.

Lattis saves Grok’s complete resumable session directory, including chat, updates, summary, and supporting artifacts. History sync restores that bundle into the destination worktree; a Markdown export is not used as a resume file.

Grok also supports Auto Execute, including issue planning, Canvas plans, requesting changes, and approval before implementation. Before approval, a Lattis tool hook permits repository inspection, the designated HTML plan file, and the approval tools. Shell commands, other edits, and other MCP calls stay blocked until approval. Waiting plans and saved approvals survive resume. Grok’s native plan controls remain disabled so approval happens in Lattis.

Interactive sessions use the terminal UI; ACP-based rich chat controls are not part of this integration. OS sandbox capabilities depend on the upstream CLI and operating system; the review tool whitelist is not an OS filesystem sandbox.