-
Notifications
You must be signed in to change notification settings - Fork 247
Add Build Remote Agent phone pairing (gbr/1) #1357
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,71 @@ | ||||||||||||||||||
| # Pair a phone with Build Remote Agent | ||||||||||||||||||
|
|
||||||||||||||||||
| Zoo Code can use **Build Remote Agent** as a pairing device: the paid | ||||||||||||||||||
| iOS/Android app spectates (and can inject into) this desktop agent through the | ||||||||||||||||||
| free MIT `gbr-agent`. Phone and PC never open ports to each other. | ||||||||||||||||||
|
|
||||||||||||||||||
| Website: https://grokbuildremote.com/ | ||||||||||||||||||
| Agent: https://github.com/LinespottingOrg/GrokBuildRemote-Agents (MIT) | ||||||||||||||||||
| Protocol: `gbr/1` · need agent **v0.6.0+** | ||||||||||||||||||
|
|
||||||||||||||||||
| Independent product by Linespotting AB. Not affiliated with xAI or SpaceX. | ||||||||||||||||||
|
|
||||||||||||||||||
| This does **not** replace Zoo Code's MCP hub, marketplace servers, or modes. | ||||||||||||||||||
| It is one extra MCP/stdio attach so a phone can spectate the session. | ||||||||||||||||||
|
|
||||||||||||||||||
| ## 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). Sessions appear in the app. **Unpair** in Settings before changing PCs. | ||||||||||||||||||
| Force-close is not enough. | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Attach this agent | ||||||||||||||||||
|
|
||||||||||||||||||
| After `gbr-agent run`: | ||||||||||||||||||
|
|
||||||||||||||||||
| - HTTP Bot API: `http://127.0.0.1:8788` | ||||||||||||||||||
| - MCP stdio: add a server named `gbr` in Zoo Code MCP settings | ||||||||||||||||||
|
|
||||||||||||||||||
| ```json | ||||||||||||||||||
| { | ||||||||||||||||||
| "mcpServers": { | ||||||||||||||||||
| "gbr": { | ||||||||||||||||||
| "command": "node", | ||||||||||||||||||
| "args": [ | ||||||||||||||||||
| "GrokBuildRemote-Agents/mcp/gbr-mcp/bin/gbr-mcp.js" | ||||||||||||||||||
| ], | ||||||||||||||||||
| "disabled": false, | ||||||||||||||||||
| "alwaysAllow": [] | ||||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
| ``` | ||||||||||||||||||
|
Comment on lines
+36
to
+43
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. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Add a language to the checksum fence. Markdownlint reports MD040 for the fence that starts on Line 36. Mark this block as Proposed fix-```
+```text📝 Committable suggestion
Suggested change
🧰 Tools🪛 markdownlint-cli2 (0.23.2)[warning] 36-36: Fenced code blocks should have a language specified (MD040, fenced-code-language) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||||||
|
|
||||||||||||||||||
| ```bash | ||||||||||||||||||
| git clone https://github.com/LinespottingOrg/GrokBuildRemote-Agents.git | ||||||||||||||||||
| cd GrokBuildRemote-Agents/mcp/gbr-mcp && npm install | ||||||||||||||||||
| node bin/gbr-mcp.js --diagnose | ||||||||||||||||||
|
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. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -u
printf '%s\n' '--- docs/features/mcp/gbr.md ---'
sed -n '1,90p' docs/features/mcp/gbr.md
printf '%s\n' '--- upstream INSTALL.md (relevant lines) ---'
curl -L --fail --silent --show-error \
https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/INSTALL.md |
nl -ba | sed -n '1,100p'
printf '%s\n' '--- upstream package.json engine metadata ---'
curl -L --fail --silent --show-error \
https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/package.json |
jq '{name, version, engines, scripts}'Repository: Zoo-Code-Org/Zoo-Code Length of output: 2729 🏁 Script executed: #!/bin/bash
set -u
curl -L --fail --silent --show-error \
https://raw.githubusercontent.com/LinespottingOrg/GrokBuildRemote-Agents/main/mcp/gbr-mcp/INSTALL.md |
awk '{printf "%4d %s\n", NR, $0}' | sed -n '1,120p'Repository: Zoo-Code-Org/Zoo-Code Length of output: 3933 Document the Node.js prerequisite.
🤖 Prompt for AI AgentsSource: MCP tools |
||||||||||||||||||
| curl -sS http://127.0.0.1:8788/health | ||||||||||||||||||
| curl -sS http://127.0.0.1:8788/v1/sessions | ||||||||||||||||||
| ``` | ||||||||||||||||||
|
|
||||||||||||||||||
| Phone is spectator + veto. Orchestration stays in Zoo Code. | ||||||||||||||||||
|
|
||||||||||||||||||
| 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 | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Zoo-Code-Org/Zoo-Code
Length of output: 27338
🏁 Script executed:
Repository: Zoo-Code-Org/Zoo-Code
Length of output: 2144
🏁 Script executed:
Repository: Zoo-Code-Org/Zoo-Code
Length of output: 49701
🏁 Script executed:
Repository: Zoo-Code-Org/Zoo-Code
Length of output: 483
Use an absolute path for
gbr-mcp.If the clone is outside the first workspace, set
cwdto the clone directory or use an absolute script path.🤖 Prompt for AI Agents
Source: MCP tools