2026-07-17 15:45:25 +08:00
|
|
|
|
---
|
|
|
|
|
|
description: Install grok-build-hud dashboard + same-window multi-line status
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
# grok-build-hud setup
|
|
|
|
|
|
|
2026-07-17 16:48:16 +08:00
|
|
|
|
本仓库是**第三方** Grok 插件(`plugin.json`,非 xAI 官方)。完整体验 = 本地插件 + 同窗口 tmux 状态条。
|
2026-07-17 16:45:10 +08:00
|
|
|
|
|
|
|
|
|
|
## 推荐:一键安装
|
|
|
|
|
|
|
|
|
|
|
|
在插件 / 仓库根目录:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
bash scripts/install.sh
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
会:编译 → `npm link` → `--install-dashboard` → `grok plugin install . --trust`。
|
|
|
|
|
|
|
|
|
|
|
|
## 分步
|
2026-07-17 15:45:25 +08:00
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
npm install && npm run build
|
2026-07-17 16:45:10 +08:00
|
|
|
|
npm link
|
2026-07-17 15:45:25 +08:00
|
|
|
|
node bin/grok-build-hud.js --install-dashboard
|
|
|
|
|
|
node bin/grok-build-hud.js --theme auto
|
|
|
|
|
|
node bin/grok-build-hud.js --preset full
|
2026-07-17 16:45:10 +08:00
|
|
|
|
grok plugin install . --trust
|
|
|
|
|
|
grok plugin enable grok-build-hud
|
2026-07-17 15:45:25 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
2026-07-17 16:45:10 +08:00
|
|
|
|
或:`npm run install-local`(仅 CLI + dashboard,不含插件注册)。
|
2026-07-17 15:45:25 +08:00
|
|
|
|
|
|
|
|
|
|
## Start Grok with HUD (same Terminal tab)
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-07-17 16:45:10 +08:00
|
|
|
|
grok
|
|
|
|
|
|
# 兼容:grok-hud-run
|
2026-07-17 15:45:25 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
You should see **2–3 rows** at the bottom (context + usage bars), not a second window.
|
|
|
|
|
|
|
|
|
|
|
|
## Hooks only (scrollback annotations)
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
node bin/grok-build-hud.js --install-hooks
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Reload in Grok: `/hooks` then press `r`.
|
|
|
|
|
|
|
|
|
|
|
|
## Verify
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
grok-hud status
|
2026-07-17 16:45:10 +08:00
|
|
|
|
grok plugin details grok-build-hud
|
2026-07-17 15:45:25 +08:00
|
|
|
|
```
|