- SpaceXAI के टर्मिनल-आधारित AI coding agent Grok Build को बनाने वाला Rust source और agent runtime जारी कर दिया गया है, और repository को SpaceXAI monorepo से नियमित रूप से sync किया जाता है
- फुल-स्क्रीन TUI में codebase को समझना, फ़ाइलें संशोधित करना, shell commands चलाना, web search, और long-running tasks को manage करना संभव है, और इसे interactive, headless, तथा Agent Client Protocol(ACP) integration मोड में चलाया जा सकता है
- macOS·Linux·Windows के लिए prebuilt binaries उपलब्ध हैं, जबकि source build के लिए Rust और protoc चाहिए, और आधिकारिक build host support केवल macOS·Linux पर है
- कोड को अलग-अलग Rust crates में बाँटा गया है, जो क्रमशः TUI, agent runtime, tool implementation, host file system·VCS·execution·checkpoint को संभालते हैं
- इसका अपना कोड Apache License 2.0 के तहत वितरित किया जाता है, लेकिन बाहरी contributions स्वीकार नहीं किए जाते, और third-party तथा vendored code अपने मौजूदा license बनाए रखते हैं
Grok Build की भूमिका और चलाने के तरीके
- Grok Build SpaceXAI का टर्मिनल-आधारित AI coding agent है, और इसका command name
grok है
- यह फुल-स्क्रीन TUI के रूप में काम करता है और निम्न काम करता है
- codebase को समझना
- फ़ाइलें संपादित करना
- shell commands चलाना
- web search
- long-running tasks को manage करना
- यह तीन execution modes को support करता है
- टर्मिनल में interactive तरीके से उपयोग
- scripts या CI में headless mode में चलाना
- Agent Client Protocol(ACP) के ज़रिए editor में embed करना
- repository में
grok CLI/TUI और agent runtime का Rust source शामिल है, और इसे SpaceXAI monorepo से नियमित रूप से sync किया जाता है
- प्रोडक्ट जानकारी x.ai/cli पर और पूरी documentation docs.x.ai/build/overview पर देखी जा सकती है
Binary installation और authentication
- macOS, Linux, Windows के लिए prebuilt binaries वितरित किए जाते हैं
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
- हर release के बदलाव और feature improvements changelog में संकलित हैं
- source build output का नाम
xai-grok-pager है, जबकि आधिकारिक install package में इसे grok नाम से दिया जाता है
- पहली बार चलाने पर यह authentication के लिए browser खोलता है
Source build की शर्तें
- build के लिए Rust और
protoc चाहिए
- Rust toolchain version
rust-toolchain.toml में pin की गई है, और पहली build के समय rustup इसे अपने आप install कर देता है
- Protocol Buffer code generation पहले
bin/protoc के dotslash launcher का उपयोग करती है, और अगर वह न हो तो PATH या $PROTOC में मौजूद protoc का उपयोग किया जाता है
- macOS और Linux supported build hosts हैं
- Windows source build केवल best-effort आधार पर दी जाती है, और अभी इस source tree पर test नहीं की गई है
cargo run -p xai-grok-pager-bin
cargo build -p xai-grok-pager-bin --release
cargo check -p xai-grok-pager-bin
cargo run TUI को build और run करता है
- release build
target/release/xai-grok-pager binary बनाती है
cargo check तेज़ verification के लिए उपयोग होता है
Repository structure
crates/codegen/xai-grok-pager-bin
- यह configuration root package है और
xai-grok-pager binary build करता है
crates/codegen/xai-grok-pager
- यह scrollback, prompt, modal, rendering सहित TUI को संभालता है
crates/codegen/xai-grok-shell
- यह agent runtime और leader·stdio·headless entry points प्रदान करता है
crates/codegen/xai-grok-tools
- इसमें terminal, file editing, search जैसी tool implementations शामिल हैं
crates/codegen/xai-grok-workspace
- यह host file system, version control system, command execution, checkpoint को संभालता है
- बाकी
crates/codegen/...
- इनमें settings, MCP, Markdown, sandboxing आदि CLI के लिए ज़रूरी crates शामिल हैं
crates/common/, crates/build/, prod/mc/
- ये dependency closure में शामिल छोटे shared leaf crates हैं
third_party/
- इसमें Mermaid diagram stack का vendored upstream source शामिल है
- root
Cargo.toml workspace members, dependency versions, lints, और profiles के आधार पर generated file है, इसलिए इसे read-only माना जाना चाहिए
- बदलाव करते समय हर crate के
Cargo.toml को modify करने का तरीका recommended है
Documentation scope
- user guide
crates/codegen/xai-grok-pager/docs/user-guide/ में शामिल है
- documentation निम्न विषयों को cover करती है
- शुरुआत करना
- keyboard shortcuts
- slash commands
- settings और themes
-
MCP server
- skills और plugins
- hooks
- headless mode
- sandboxing
Development workflow
- पूरा workspace build धीमा होता है, इसलिए हमेशा individual crates को specify करके check करने की सिफारिश की जाती है
cargo check -p <crate>
cargo test -p xai-grok-config
cargo clippy -p <crate>
cargo fmt --all
- tests और Clippy भी crate स्तर पर चलाए जाते हैं
- Clippy settings repository root के
clippy.toml में हैं, और Rust formatting settings rustfmt.toml में हैं
Contribution और license
- repository external contributions स्वीकार नहीं करती
- repository का अपना कोड Apache License 2.0 के तहत वितरित किया जाता है
- third-party और vendored code अपने मूल licenses बनाए रखते हैं
THIRD-PARTY-NOTICES में crates.io·Git dependencies, bundled UI themes, और source tree के अंदर के ports से संबंधित notices शामिल हैं
- internal ports में
openai/codex और sst/opencode की tool implementations शामिल हैं
crates/codegen/xai-grok-tools/THIRD_PARTY_NOTICES.md में Codex·OpenCode ports के license text और Apache §4(b) modification notice शामिल हैं
third_party/NOTICE vendored Mermaid stack के notice index प्रदान करता है
1 टिप्पणियां
Hacker News की राय
Grok code explore करने की प्रक्रिया को blog पर भी और व्यवस्थित किया है: https://simonwillison.net/2026/Jul/15/grok-build/
[thedavidweng/gork-build][1] एक VSCodium-style privacy fork है, जो grok को “gork” में बदलता है और vendor telemetry, default-on data retention, x.ai auto-update को हटाता है
[DigiGoon/digi-grok-build][2] x.ai CDN के बजाय source से build करने वाला multi-provider CLI “dgrok” है, और [victor-software-house/open-grok][3] सभी providers को support करता है
[LukaMucko/grok-build][4] provider-specific request fields के लिए
extra_bodyजोड़ता है, और [RapidAI/grok-build-desktop][5] Tauri desktop GUI जोड़ता है[mazdak/grok-build][6] Catppuccin theme देता है, [thomas9120/grok-build-archival][7] Windows telemetry disable करने की script देता है, और [saqoah/grok-build][8] Kotlin
MemoryBackendदेता है[0]: https://news.ycombinator.com/item?id=48928913
[1]: https://github.com/thedavidweng/gork-build
[2]: https://github.com/DigiGoon/digi-grok-build
[3]: https://github.com/victor-software-house/open-grok
[4]: https://github.com/LukaMucko/grok-build
[5]: https://github.com/RapidAI/grok-build-desktop
[6]: https://github.com/mazdak/grok-build
[7]: https://github.com/thomas9120/grok-build-archival
[8]: https://github.com/saqoah/grok-build
ompइस्तेमाल करने की वजह से हुआ हो, लेकिन यह अभी सबसे stable tool नहीं हैफिर भी जब ठीक से चलता है तो काफ़ी अच्छा है, और $10/month की कीमत को देखते हुए बेहद सस्ता है
जिन कंपनियों से वह जुड़ा है उनकी valuations rational नहीं लगतीं, और बड़े AI companies से competition में पूरी तरह fail होना ही collapse की शुरुआत कर सकता है
check करने पर पता चला कि X Premium family subscriptions भी Grok Build access देती हैं, और कई third-party execution environments को officially support करती हैं
opencodeके बजाय Pi recommend करने की वजह जानना चाहूंगा। मैं देख रहा हूं कि लोग किस open solution की तरफ जा रहे हैं। Codex भी contributions के लिहाज से closed है, लेकिन semi-open रूप में है और काफ़ी ठीक हैompया Claude Code से तेज़ महसूस होता है, लेकिन सही वजह नहीं जानता। code upload disable करने के बाद यह पहले की तरह कुछ milliseconds में तुरंत respond नहीं करता