Security / DevTools / Open Source
Grok Build 開源:xAI 的 Rust AI Coding Agent Harness 與 TUI
Threads 指出 xAI 將 Grok Build 開源;實查 xai-org/grok-build 為 Apache-2.0、Rust terminal AI coding agent,支援 fullscreen TUI、shell/file tools、MCP、skills、plugins、hooks、headless/ACP、sandbox 與 permission controls。值得研究 harness 設計,但導入前要嚴格控管 repo 上傳、secret、sandbox 與外部服務資料流。
2026年7月16日3 分鐘閱讀👁 5
AI Coding Agent / Open Source Harness
Grok Build 開源:xAI 把 coding agent 的 harness / TUI 放出來了
Threads 這則分享提到 xai-org/grok-build 短時間衝上數千 stars。實查 GitHub 後,它是 xAI / SpaceXAI 釋出的 terminal-based AI coding agent:包含 Rust 寫的 CLI/TUI、agent runtime、tool implementations、workspace / sandbox / permissions、MCP、skills、plugins、hooks、headless mode,以及 Agent Client Protocol(ACP)支援。
Kate 判斷:這個 repo 對 Allen / Hermes 最有價值的不是「換用 Grok 寫 code」,而是研究 agent harness 怎麼把 TUI、tool approval、sandbox、MCP、skills、headless、session、usage monitoring 組成一個產品。可以 fork 下來讀架構;但不要直接在含公司 secrets 的 repo 裡裸跑。
實查 metadata
| 項目 | 內容 |
|---|---|
| GitHub repo | xai-org/grok-build |
| 官方描述 | SpaceXAI's coding agent harness and TUI. Fullscreen, mouse interactive, extensible. |
| Stars / forks | 查詢時約 8,969 stars、1,421 forks;Threads 原文的 4k stars 已被後續成長超過。 |
| License | Apache-2.0。商用與改作相對友善,但仍需遵守 NOTICE / attribution / patent terms。 |
| 主要技術 | Rust workspace;binary artifact 名為 xai-grok-pager,官方安裝後命令為 grok。 |
| 更新狀態 | GitHub API 顯示 2026-07-16 仍有 push / update。 |
README 顯示的核心能力
- Full-screen TUI:終端機全螢幕介面,支援互動與滑鼠操作。
- Codebase-aware agent:可理解 codebase、編輯檔案、執行 shell command、搜尋網路、管理長時間任務。
- 多種執行型態:互動 TUI、headless scripting / CI、或透過 ACP 嵌入 editor / agent client。
- MCP servers:可透過 stdio / HTTP / SSE 接外部工具。
- Skills / plugins / hooks:把 repeatable procedures、外掛能力與 tool 前置檢查接進 harness。
- Sandbox / permissions:提供 OS-level sandbox profiles、permission rules、allow / deny / ask、hooks 等多層控制。