-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Build Remote Agent phone pairing (gbr/1) #3482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| sidebar_position: 1.95 | ||
| id: "gbr" | ||
| title: "Build Remote Agent pairing" | ||
| --- | ||
|
|
||
| # Pair a phone with Build Remote Agent | ||
|
|
||
| Wave can use **Build Remote Agent** as a pairing device: the paid iOS/Android app spectates (and can inject into) this desktop Wave session through the free MIT [`gbr-agent`](https://github.com/LinespottingOrg/GrokBuildRemote-Agents). Phone and PC never open ports to each other. | ||
|
|
||
| Website: [grokbuildremote.com](https://grokbuildremote.com/) | ||
| Protocol: `gbr/1` · need agent **v0.6.0+** | ||
|
|
||
| Independent product by Linespotting AB. Not affiliated with xAI or SpaceX. | ||
|
|
||
| This does **not** replace Wave AI, durable SSH, or [Claude Code tab badges](./claude-code). The phone is spectator + veto. Orchestration stays in Wave. | ||
|
|
||
| ## Install + pair | ||
|
|
||
| ```bash | ||
| # macOS / Linux | ||
| curl -fsSL https://grokbuildremote.com/install.sh | bash | ||
| gbr-agent version # must print v0.6.0 or newer | ||
| gbr-agent pair # QR in browser + printed 8-char code | ||
| gbr-agent run # leave running | ||
| ``` | ||
|
|
||
| ```powershell | ||
| # Windows | ||
| irm https://grokbuildremote.com/install.ps1 | iex | ||
| gbr-agent version | ||
| gbr-agent pair | ||
| gbr-agent run | ||
| ``` | ||
|
|
||
| Phone: open Build Remote Agent → **Scan QR from computer** (or type the 8-char code). **Unpair** in Settings before changing PCs. Force-close is not enough. | ||
|
|
||
| ## Attach | ||
|
|
||
| After `gbr-agent run`: | ||
|
|
||
| | How | Where | | ||
| |-----|--------| | ||
| | Bot API | `http://127.0.0.1:8788` | | ||
| | MCP | stdio `gbr-mcp` | | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: git clone https://github.com/LinespottingOrg/GrokBuildRemote-Agents.git
cd GrokBuildRemote-Agents/mcp/gbr-mcp
npm install
node bin/gbr-mcp.js --diagnoseRepository: wavetermdev/waveterm Length of output: 6296 🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT
curl -fsSL https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/package.json \
> "$tmp/package.json"
curl -fsSL https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/bin/gbr-mcp.js \
> "$tmp/gbr-mcp.js"
grep -F '"node": ">=20"' "$tmp/package.json"
grep -F '"gbr-mcp": "bin/gbr-mcp.js"' "$tmp/package.json"
grep -F 'gbr-mcp entry point' "$tmp/gbr-mcp.js"Repository: wavetermdev/waveterm Length of output: 233 🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
printf '%s\n' '--- docs/docs/gbr.mdx ---'
sed -n '1,90p' docs/docs/gbr.mdx
printf '%s\n' '--- installer references ---'
rg -n -i 'gbr-agent|gbr-mcp|MCP|Wave|command|args' docs/docs/gbr.mdx docs 2>/dev/null | head -200
printf '%s\n' '--- upstream MCP and setup references ---'
tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT
curl -fsSL https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/README.md > "$tmp/README.md"
curl -fsSL https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/package.json > "$tmp/package.json"
curl -fsSL https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/bin/gbr-mcp.js > "$tmp/gbr-mcp.js"
rg -n -i -C 3 'Wave|command|args|gbr-mcp|node|install|clone' "$tmp/README.md" "$tmp/package.json" "$tmp/gbr-mcp.js" | head -240Repository: wavetermdev/waveterm Length of output: 46330 🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
printf '%s\n' '--- Wave MCP configuration syntax ---'
rg -n -i -C 4 'mcp|mcpServers|server.*command|\"args\"|command.*args' docs pkg frontend 2>/dev/null | head -240 || true
printf '%s\n' '--- upstream repository files mentioning Wave or MCP client configuration ---'
tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT
curl -fsSL 'https://api.github.com/repos/LinespottingOrg/GrokBuildRemote-Agents/git/trees/main?recursive=1' \
| jq -r '.tree[] | select(.type == "blob") | .path' \
| grep -Ei '(^|/)(README|INSTALL|TROUBLE|.*mcp.*|.*client.*|.*config.*)' \
| head -200
printf '%s\n' '--- upstream configuration examples ---'
for file in INSTALL.md README.md TROUBLESHOOTING.md; do
url="https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/$file"
body="$(curl -fsSL "$url" 2>/dev/null || true)"
if [ -n "$body" ]; then
printf '%s\n' "--- $file ---"
printf '%s\n' "$body" | rg -n -i -C 5 'Wave|command|args|claude|cursor|stdio|gbr-mcp|node' | head -220
fi
doneRepository: wavetermdev/waveterm Length of output: 31274 Document the separate The agent installer does not install a standalone 🤖 Prompt for AI Agents |
||
| ```bash | ||
| curl -sS http://127.0.0.1:8788/health | ||
| curl -sS http://127.0.0.1:8788/v1/sessions | ||
| ``` | ||
|
|
||
| Optional: `wsh` stays Wave's workspace CLI. GBR attach is only `:8788` / `gbr-mcp`. | ||
|
|
||
| Do not commit mailbox keys. Phone **Settings → Bot API** is the only place the relay key is copied. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Handle the macOS/Linux
PATHafter installation.When
~/.local/binis not already in the current shell'sPATH, the installer cannot update that shell. The documentedgbr-agent versioncommand at Line 23 then fails withcommand not found. Add the export or instruct the user to open a new terminal before running the version check. (grokbuildremote.com)Proposed documentation fix
# macOS / Linux curl -fsSL https://grokbuildremote.com/install.sh | bash +export PATH="$HOME/.local/bin:$PATH" # or open a new terminal gbr-agent version📝 Committable suggestion
🤖 Prompt for AI Agents