xAI、ターミナル型コーディングエージェント「Grok Build」公開
SpaceXAI が公開したターミナルベースの AI コーディングエージェント「Grok Build」は、コードベースの理解からファイル編集、シェルコマンド実行、Web 検索までを自律的に行う画期的なツールである。
キーポイント
多機能なターミナルエージェント
フルスクリーン TUI で動作し、コードベースの理解、ファイル編集、シェルコマンド実行、Web 検索、長期間タスクの管理を統合的にサポートする。
多様な運用モード
対話型での利用に加え、スクリプトや CI/CD 向けにヘッドレスで動作可能であり、エディタ内では Agent Client Protocol (ACP) を経由して埋め込み利用できる。
クロスプラットフォーム対応とインストール
macOS、Linux、Windows に対応した事前ビルドバイナリが提供されており、curl や PowerShell スクリプトを用いた簡単なインストールが可能である。
Grok Build の概要と機能
SpaceXAI が開発したターミナルベースの AI コーディングエージェントで、コードベースの理解、ファイル編集、シェルコマンド実行、ウェブ検索、長時間タスク管理を TUI 形式で行います。
インストールとビルド方法
macOS、Linux、Windows 向けに事前構築バイナリが提供されており、Rust と DotSlash ツールを必要とするソースコードからのビルドもサポートしています。
開発環境と構成
プロジェクトは Rust で書かれており、特定の crate を対象としたチェックやテスト、clippy によるリンティングが推奨される開発ワークフローとなっています。
ライセンス構成
リポジトリ内のファーストパーティコードは Apache License Version 2.0 でライセンスされていますが、サードパーティおよびベンダー化されたコードは元のライセンスに従います。
重要な引用
Grok Build is SpaceXAI's terminal-based AI coding agent.
It runs as a full-screen TUI that understands your codebase, edits files, executes shell commands, searches the web, and manages long-running tasks
interactively, headlessly for scripting/CI, or embedded in editors via the Agent Client Protocol (ACP).
Grok Build is SpaceXAI's terminal-based AI coding agent. It runs as a full-screen TUI that understands your codebase, edits files, executes shell commands, searches the web, and manages long-running tasks.
The root Cargo.toml (workspace members, dependency versions, lints, profiles) is generated — treat it as read-only.
First-party code in this repository is licensed under the Apache License, Version 2.0
影響分析・編集コメントを表示
影響分析
SpaceXAI が参入したことで、既存の GitHub Copilot や Cursor などの市場に新たな選択肢が生まれ、特にターミナル環境での開発ワークフローにおける AI エージェントの標準化が進む可能性があります。また、ヘッドレス運用や ACP による拡張性を重視した設計は、CI/CD パイプラインへの統合を加速させ、ソフトウェア開発プロセス全体の自動化レベルを引き上げる契機となるでしょう。
編集コメント
Elon Musk 氏率いる SpaceX の AI チームが、独自のコーディングエージェント「Grok Build」を公開しました。ターミナルベースの TUI に特化し、CI/CD やエディタ埋め込みまで視野に入れた設計は、開発者ワークフローの自動化における新たなパラダイムを示唆しています。
Grok Build は、SpaceXAI が開発するターミナルベースの AI コーディングエージェントです。フルスクリーンの TUI(テキストユーザーインターフェース)として動作し、コードベースの理解、ファイル編集、シェルコマンドの実行、ウェブ検索、そして長時間実行されるタスクの管理を担います。インタラクティブな利用も可能ですが、スクリプトや CI 環境ではヘッドレスモードで、エディター内では Agent Client Protocol (ACP) を介して埋め込むこともできます。
ドキュメント ·
リポジトリ構成 ·
開発について ·
貢献方法 ·
Grok Build については、x.ai/cli で詳しくご覧ください
このリポジトリには、grok CLI/TUI とそのエージェントランタイムの Rust ソースコードが含まれています。これは SpaceXAI のモノレポから定期的に同期されています。
ルートディレクトリにある小さな SOURCE_REV ファイルには、現在のコードツリーに含まれるバージョンに対応する、完全なモノレポコミットの SHA が記録されています。
リリース版バイナリのインストール
macOS、Linux、Windows 向けに事前ビルドされたバイナリが公開されています:
curl -fsSL https://x.ai/cli/install.sh | bash # macOS / Linux / Git Bash
irm https://x.ai/cli/install.ps1 | iex # Windows PowerShell
grok --version
各リリースにおける最新の不具合修正、新機能、改善点は changelog をご確認ください。
ソースからのビルド
必要な要件:
- Rust — ツールチェーンは
rust-toolchain.tomlで固定されており、初回ビルド時に rustup が自動的にインストールします。
- DotSlash のインストール:bin/ディレクトリ内のhermeticツール(特に bin/protoc)がダウンロードや実行を行うために必要です。ビルド前に dotslash をインストールし、PATH に追加してください。
cargo install dotslash
# または事前構築パッケージも利用可能です:https://dotslash-cli.com/docs/installation/
/usr/bin/env dotslash --help # 正常動作の確認用- protoc:プロトコルバッファのコード生成では、DotSlash を経由して bin/protoc が解決されます。もし見つからない場合は、PATH または $PROTOC 環境変数に設定された protoc にフォールバックします。
ビルドホストとしては macOS と Linux が正式サポートされています。Windows でのビルドも試みられていますが、現時点ではこのリポジトリからはテストされていません。
cargo run -p xai-grok-pager-bin # ビルドして TUI を起動
cargo build -p xai-grok-pager-bin --release # リリース版バイナリの作成:target/release/xai-grok-pager
cargo check -p xai-grok-pager-bin # 高速な検証用生成されるバイナリ名は xai-grok-pager です。公式インストールではこれを grok として提供しています。初回起動時にはブラウザが開き、認証画面が表示されます。詳細は 認証ガイド をご覧ください。
ドキュメント
完全なオンラインドキュメントは以下で確認できます:
ユーザーガイドは pager クレートに同梱されています。詳細は以下のリンクから参照可能です:
crates/codegen/xai-grok-pager/docs/user-guide/
ここでは、入門ガイド、キーボードショートカット、スラッシュコマンド、設定方法、テーマ変更、MCP サーバー、スキル、プラグイン、フック、ヘッドレスモード、サンドボックス機能などについて解説しています。
リポジトリの構成
パス | 内容
---|---
crates/codegen/xai-grok-pager-bin | コンポジション・ルートパッケージ。xai-grok-pager バイナリをビルドします。
crates/codegen/xai-grok-pager | TUI(ターミナルユーザーインターフェース)の実装。スクロールバック、プロンプト、モーダル、描画を担当します。
crates/codegen/xai-grok-shell | エージェントのランタイムと、リーダー/stdio/ヘッドレス用のエントリーポイントです。
crates/codegen/xai-grok-tools | ツールの実装(ターミナル操作、ファイル編集、検索など)。
crates/codegen/xai-grok-workspace | ホストファイルシステム、バージョン管理システム(VCS)、実行環境、チェックポイント機能。
crates/codegen/... | CLI クレート群の残りの部分(設定、MCP、マークダウン、サンドボックスなど)。
crates/common/, crates/build/, prod/mc/ | 上記のクローザーで読み込まれる、小規模な共有ライブラリ。
third_party/ | 外部ソースをバンドルしたコード(Mermaid ダイアグラムスタックなど)— 詳細は後述。
重要
ルートディレクトリの Cargo.toml(ワークスペースメンバー、依存バージョン、リンター設定、プロファイルなど)は 生成済み です。読み取り専用として扱い、直接編集しないようにしてください。編集は各 crate の Cargo.toml ファイルで行ってください。
開発環境での使い方
cargo check -p <crate> # 必ず特定の crate を対象に。ワークスペース全体をビルドすると時間がかかります
cargo test -p xai-grok-config # crate ごとのテスト実行
cargo clippy -p <crate> # リント設定はリポジトリルートの `clippy.toml` を参照
cargo fmt --all # 整形設定はリポジトリルートの `rustfmt.toml` を参照コントリビューションについて
ライセンス
このリポジトリ内の自社コードは、Apache License, Version 2.0 に基づいてライセンスされています。詳細は LICENSE をご覧ください。
サードパーティ製およびバンドルされたコードは、それぞれの元のライセンスに従います。詳細は以下を参照してください。
- 第三者の注意書き(THIRD-PARTY-NOTICES):crates.io や git からの依存関係、バンドルされた UI テーマ、およびソースコードの移植版(openai/codex および sst/opencode のツール実装を含む)
- crates/codegen/xai-grok-tools/THIRD_PARTY_NOTICES.md:codex と opencode の移植版に関する crate 固有の注意書き(ライセンステキストと Apache セクション 4(b) の変更通知)
- third_party/NOTICE:Mermaid スタックのインデックスをベンダーした内容
必ず JSON 形式で返してください。translation フィールドのみ。他のフィールドは一切追加しないこと — 余計なフィールドを書こうとして本文がトークン上限で打ち切られる事故を防ぐため:
{"translation": "リライト全文"}
原文を表示
Grok Build is SpaceXAI's terminal-based AI coding agent. It runs as a
full-screen TUI that understands your codebase, edits files, executes shell
commands, searches the web, and manages long-running tasks — interactively,
headlessly for scripting/CI, or embedded in editors via the Agent Client
Protocol (ACP).
Installing the released binary ·
Learn more about Grok Build at x.ai/cli
This repository contains the Rust source for the grok CLI/TUI and its agent
runtime. It is synced periodically from the SpaceXAI monorepo.
A small SOURCE_REV file at the root records the full monorepo commit SHA
for the version of the code present in this tree.
Installing the released binary
Prebuilt binaries are published for macOS, Linux, and Windows:
curl -fsSL https://x.ai/cli/install.sh | bash # macOS / Linux / Git Bash
irm https://x.ai/cli/install.ps1 | iex # Windows PowerShell
grok --versionSee the changelog for the latest fixes,
features, and improvements in each release.
Building from source
Requirements:
- Rust — the toolchain is pinned by rust-toolchain.toml;
rustup installs it automatically on first build.
- DotSlash — required so hermetic tools under
bin/ (notably bin/protoc) can download and run.
Install it and ensure dotslash is on your PATH before building:
cargo install dotslash
# or: prebuilt packages — https://dotslash-cli.com/docs/installation/
/usr/bin/env dotslash --help # sanity check- protoc — proto codegen resolves bin/protoc via DotSlash,
or falls back to a protoc on PATH / $PROTOC.
- macOS and Linux are supported build hosts; Windows builds are best-effort
and not currently tested from this tree.
cargo run -p xai-grok-pager-bin # build + launch the TUI
cargo build -p xai-grok-pager-bin --release # release binary: target/release/xai-grok-pager
cargo check -p xai-grok-pager-bin # fast validationThe binary artifact is named xai-grok-pager; official installs ship it as
grok. On first launch it opens your browser to authenticate — see the
Documentation
Full online documentation is available at
The user guide ships with the pager crate:
crates/codegen/xai-grok-pager/docs/user-guide/
— getting started, keyboard shortcuts, slash commands, configuration, theming,
MCP servers, skills, plugins, hooks, headless mode, sandboxing, and more.
Repository layout
Path
Contents
crates/codegen/xai-grok-pager-bin
Composition-root package; builds the xai-grok-pager binary
crates/codegen/xai-grok-pager
The TUI: scrollback, prompt, modals, rendering
crates/codegen/xai-grok-shell
Agent runtime + leader/stdio/headless entry points
crates/codegen/xai-grok-tools
Tool implementations (terminal, file edit, search, ...)
crates/codegen/xai-grok-workspace
Host filesystem, VCS, execution, checkpoints
crates/codegen/...
The rest of the CLI crate closure (config, MCP, markdown, sandbox, ...)
crates/common/, crates/build/, prod/mc/
Small shared leaf crates pulled in by the closure
third_party/
Vendored upstream source (Mermaid diagram stack) — see below
Important
The root Cargo.toml (workspace members, dependency versions, lints,
profiles) is generated — treat it as read-only. Prefer editing per-crate
Cargo.toml files.
Development
cargo check -p <crate> # always target specific crates; full-workspace builds are slow
cargo test -p xai-grok-config # per-crate tests
cargo clippy -p <crate> # lint config: clippy.toml at the repo root
cargo fmt --all # rustfmt.toml at the repo rootContributing
License
First-party code in this repository is licensed under the **Apache License,
Version 2.0** — see LICENSE.
Third-party and vendored code remains under its original licenses. See:
- THIRD-PARTY-NOTICES — crates.io / git dependencies,
bundled UI themes, and in-tree source ports (including openai/codex and
sst/opencode tool implementations)
- crates/codegen/xai-grok-tools/THIRD_PARTY_NOTICES.md
— crate-local notice for the codex and opencode ports (license texts +
Apache §4(b) change notice)
- third_party/NOTICE — vendored Mermaid-stack index
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み