Scripts2026年7月25日·1 分钟阅读

Grok Build — xAI Coding Agent with Fullscreen TUI

A Rust-based coding agent harness from xAI with a fullscreen terminal UI, mouse interaction, and extensible architecture for building and editing code.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 29/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Stage only
信任
信任等级:Established
入口
Grok Build
安全暂存命令
npx -y tokrepo@latest install 0fdf993c-8823-11f1-9bc6-00163e2b0d79 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

Introduction

Grok Build is xAI's open-source coding agent that runs in a fullscreen terminal UI with mouse support. Built in Rust for speed, it provides an interactive environment for AI-assisted code generation, editing, and project management directly from the terminal.

What Grok Build Does

  • Provides a fullscreen TUI for interactive AI-assisted coding sessions
  • Supports mouse interaction for selecting files, navigating output, and managing context
  • Connects to xAI's Grok models for code generation, review, and refactoring
  • Offers an extensible architecture for adding custom tools and workflows
  • Handles multi-file edits with diff previews and approval workflows

Architecture Overview

Grok Build is a single Rust binary that renders a rich terminal interface using a custom TUI framework. It communicates with xAI's API for model inference while maintaining a local project context graph. The extensibility layer allows developers to register custom tools that the agent can invoke during coding sessions. All rendering happens locally with minimal latency.

Self-Hosting & Configuration

  • Install via the one-line shell script or download a prebuilt binary
  • Set your xAI API key via the GROK_API_KEY environment variable
  • Configure keybindings and theme in ~/.config/grok-build/config.toml
  • Add custom tool definitions in the tools directory for extensibility
  • Runs on macOS, Linux, and Windows with full terminal support

Key Features

  • Fullscreen TUI with mouse support for a native desktop-like experience
  • Built in Rust for sub-millisecond rendering and low memory usage
  • Extensible tool system for custom agent capabilities
  • Multi-file editing with inline diffs and approval gates
  • Session persistence for resuming work across terminal restarts

Comparison with Similar Tools

  • Claude Code — Anthropic's CLI agent; Grok Build adds a fullscreen graphical TUI with mouse support
  • Codex CLI — OpenAI's terminal agent; Grok Build offers richer visual interaction
  • Aider — terminal pair programming; Grok Build provides a GUI-like TUI rather than a conversational CLI
  • Cursor — IDE with AI; Grok Build is terminal-native with no editor dependency
  • Zed — fast editor with AI built in; Grok Build is a standalone agent, not an editor

FAQ

Q: Does Grok Build work with models other than Grok? A: The primary integration is with xAI's Grok models. Check the repository for any community provider extensions.

Q: Is mouse support required? A: No. Keyboard-only navigation is fully supported, but mouse interaction is available for terminals that support it.

Q: Can I use Grok Build on remote servers via SSH? A: Yes. The TUI renders over any terminal connection, though mouse support depends on your SSH client.

Q: Is it open source? A: Yes. Grok Build is released as open-source software by xAI.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。