[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-93341":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":14,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":17,"topics":19,"createdAt":9,"pushedAt":9,"updatedAt":20,"readmeContent":21,"aiSummary":22,"trendingCount":14,"starSnapshotCount":14,"syncStatus":23,"lastSyncTime":24,"discoverSource":25},93341,"grok-build","xai-org\u002Fgrok-build","xai-org","SpaceXAI's coding agent harness and TUI. Fullscreen, mouse interactive, extensible.",null,"Rust",20485,3738,73,0,70,"Apache License 2.0",false,"main",[],"2026-07-22 04:02:08","\u003Cdiv align=\"center\">\n\n\u003Ch1>\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fmedia.x.ai\u002Fv1\u002Fwebsite\u002Fspacexai-symbol-white-transparent-0c31957f.png\">\n    \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fmedia.x.ai\u002Fv1\u002Fwebsite\u002Fspacexai-symbol-black-transparent-6435cf42.png\">\n    \u003Cimg alt=\"SpaceXAI logo\" src=\"https:\u002F\u002Fmedia.x.ai\u002Fv1\u002Fwebsite\u002Fspacexai-symbol-black-transparent-6435cf42.png\" width=\"96\">\n  \u003C\u002Fpicture>\n  \u003Cbr>\n  Grok Build (\u003Ccode>grok\u003C\u002Fcode>)\n\u003C\u002Fh1>\n\n**Grok Build** is SpaceXAI's terminal-based AI coding agent. It runs as a\nfull-screen TUI that understands your codebase, edits files, executes shell\ncommands, searches the web, and manages long-running tasks — interactively,\nheadlessly for scripting\u002FCI, or embedded in editors via the Agent Client\nProtocol (ACP).\n\n[Installing the released binary](#installing-the-released-binary) ·\n[Building from source](#building-from-source) ·\n[Documentation](#documentation) ·\n[Repository layout](#repository-layout) ·\n[Development](#development) ·\n[Contributing](#contributing) ·\n[License](#license)\n\n![Grok Build TUI](https:\u002F\u002Fmedia.x.ai\u002Fv1\u002Fwebsite\u002Funiverse-tui-screenshot-6f7a0837.png)\n\n**Learn more about Grok Build at [x.ai\u002Fcli](https:\u002F\u002Fx.ai\u002Fcli)**\n\nThis repository contains the Rust source for the `grok` CLI\u002FTUI and its agent\nruntime. It is synced periodically from the SpaceXAI monorepo.\n\nA small `SOURCE_REV` file at the root records the full monorepo commit SHA\nfor the version of the code present in this tree.\n\n\u003C\u002Fdiv>\n\n---\n\n## Installing the released binary\n\nPrebuilt binaries are published for macOS, Linux, and Windows:\n\n```sh\ncurl -fsSL https:\u002F\u002Fx.ai\u002Fcli\u002Finstall.sh | bash   # macOS \u002F Linux \u002F Git Bash\nirm https:\u002F\u002Fx.ai\u002Fcli\u002Finstall.ps1 | iex          # Windows PowerShell\ngrok --version\n```\n\nSee the [changelog](https:\u002F\u002Fx.ai\u002Fbuild\u002Fchangelog) for the latest fixes,\nfeatures, and improvements in each release.\n\n## Building from source\n\nRequirements:\n\n- **Rust** — the toolchain is pinned by [`rust-toolchain.toml`](rust-toolchain.toml);\n  `rustup` installs it automatically on first build.\n- **[DotSlash](https:\u002F\u002Fdotslash-cli.com)** — required so hermetic tools under\n  [`bin\u002F`](bin\u002F) (notably [`bin\u002Fprotoc`](bin\u002Fprotoc)) can download and run.\n  Install it and ensure `dotslash` is on your `PATH` **before** building:\n\n  ```sh\n  cargo install dotslash\n  # or: prebuilt packages — https:\u002F\u002Fdotslash-cli.com\u002Fdocs\u002Finstallation\u002F\n  \u002Fusr\u002Fbin\u002Fenv dotslash --help   # sanity check\n  ```\n\n- **protoc** — proto codegen resolves [`bin\u002Fprotoc`](bin\u002Fprotoc) via DotSlash,\n  or falls back to a `protoc` on `PATH` \u002F `$PROTOC`.\n- macOS and Linux are supported build hosts; Windows builds are best-effort\n  and not currently tested from this tree.\n\n```sh\ncargo run -p xai-grok-pager-bin              # build + launch the TUI\ncargo build -p xai-grok-pager-bin --release  # release binary: target\u002Frelease\u002Fxai-grok-pager\ncargo check -p xai-grok-pager-bin            # fast validation\n```\n\nThe binary artifact is named `xai-grok-pager`; official installs ship it as\n`grok`. On first launch it opens your browser to authenticate — see the\n[authentication guide](crates\u002Fcodegen\u002Fxai-grok-pager\u002Fdocs\u002Fuser-guide\u002F02-authentication.md).\n\n## Documentation\n\nFull online documentation is available at\n[docs.x.ai\u002Fbuild\u002Foverview](https:\u002F\u002Fdocs.x.ai\u002Fbuild\u002Foverview).\n\nThe user guide ships with the pager crate:\n[`crates\u002Fcodegen\u002Fxai-grok-pager\u002Fdocs\u002Fuser-guide\u002F`](crates\u002Fcodegen\u002Fxai-grok-pager\u002Fdocs\u002Fuser-guide\u002F)\n— getting started, keyboard shortcuts, slash commands, configuration, theming,\nMCP servers, skills, plugins, hooks, headless mode, sandboxing, and more.\n\n## Repository layout\n\n| Path | Contents |\n|------|----------|\n| `crates\u002Fcodegen\u002Fxai-grok-pager-bin` | Composition-root package; builds the `xai-grok-pager` binary |\n| `crates\u002Fcodegen\u002Fxai-grok-pager` | The TUI: scrollback, prompt, modals, rendering |\n| `crates\u002Fcodegen\u002Fxai-grok-shell` | Agent runtime + leader\u002Fstdio\u002Fheadless entry points |\n| `crates\u002Fcodegen\u002Fxai-grok-tools` | Tool implementations (terminal, file edit, search, ...) |\n| `crates\u002Fcodegen\u002Fxai-grok-workspace` | Host filesystem, VCS, execution, checkpoints |\n| `crates\u002Fcodegen\u002F...` | The rest of the CLI crate closure (config, MCP, markdown, sandbox, ...) |\n| `crates\u002Fcommon\u002F`, `crates\u002Fbuild\u002F`, `prod\u002Fmc\u002F` | Small shared leaf crates pulled in by the closure |\n| `third_party\u002F` | Vendored upstream source (Mermaid diagram stack) — see below |\n\n> [!IMPORTANT]\n> The root `Cargo.toml` (workspace members, dependency versions, lints,\n> profiles) is **generated** — treat it as read-only. Prefer editing per-crate\n> `Cargo.toml` files.\n\n## Development\n\n```sh\ncargo check -p \u003Ccrate>        # always target specific crates; full-workspace builds are slow\ncargo test -p xai-grok-config # per-crate tests\ncargo clippy -p \u003Ccrate>       # lint config: clippy.toml at the repo root\ncargo fmt --all               # rustfmt.toml at the repo root\n```\n\n## Contributing\n\n> [!NOTE]\n> External contributions are not accepted. See [`CONTRIBUTING.md`](CONTRIBUTING.md).\n\n## License\n\nFirst-party code in this repository is licensed under the **Apache License,\nVersion 2.0** — see [`LICENSE`](LICENSE).\n\nThird-party and vendored code remains under its original licenses. See:\n\n- [`THIRD-PARTY-NOTICES`](THIRD-PARTY-NOTICES) — crates.io \u002F git dependencies,\n  bundled UI themes, and **in-tree source ports** (including openai\u002Fcodex and\n  sst\u002Fopencode tool implementations)\n- [`crates\u002Fcodegen\u002Fxai-grok-tools\u002FTHIRD_PARTY_NOTICES.md`](crates\u002Fcodegen\u002Fxai-grok-tools\u002FTHIRD_PARTY_NOTICES.md)\n  — crate-local notice for the codex and opencode ports (license texts +\n  Apache §4(b) change notice)\n- [`third_party\u002FNOTICE`](third_party\u002FNOTICE) — vendored Mermaid-stack index\n","Grok Build 是一个基于终端的 AI 编程智能体运行时与交互界面，由 SpaceXAI 开发。它提供全屏 TUI（文本用户界面），支持代码库理解、文件编辑、Shell 命令执行、网络搜索及长时任务管理；具备交互式操作、无头模式（适用于 CI\u002F脚本）和通过 Agent Client Protocol（ACP）嵌入编辑器的能力。核心采用 Rust 实现，强调可靠性、可扩展性与跨平台支持（macOS\u002FLinux\u002FWindows）。适用于开发者日常编码辅助、自动化开发流程集成及 IDE 插件后端等场景。",2,"2026-07-17 02:30:03","CREATED_QUERY"]