Repository navigation
Releases
v0.1.0 — first public release
Run tasks on multiple Cursor Grok Bots in parallel, with a flat local memory footprint — the work happens on the cloud machine, your laptop only hosts the UI shell.
What it does
gbq ask -b my-bot "What are the notable crypto stories this week? Cite sources."
gbq run "audit error handling in src/api" "summarize test gaps" "check unused deps"Measured: two Bots running 30s tasks overlapped for 28 of those seconds — 1.88x wall-clock speedup, verified by timestamp. A 4-task batch finished in 26 seconds. Local RAM stayed at ~400 MB throughout.
How
Cursor ships no public API for Grok Bot, so gbq drives it through two channels:
- SSH to the cloud machine for task bodies and results
- Electron CDP (
SIGUSR1→ Node inspector →webContents.executeJavaScript) for the wake-up message
Dispatch cost scales with the number of Bots, not tasks — 100 tasks across 4 Bots still dispatches in ~16 seconds.
Because this rides on UI internals that any Cursor release can change, there are three fallback levels: exact selectors → heuristics that touch no sand-* class → computer use. gbq doctor reports which one is live.
Honest limitations
- Dispatch is serial (~4s per Bot); practical ceiling is 4–8 Bots
- All Bots share one machine — CPU, RAM and
/workspace - Bots keep persistent memory, so context carries across tasks
- Closing the Grok Bot desktop app takes the cloud node offline, killing both channels
sshddoes not survive container restarts
See SETUP.md to install, AGENTS.md if you drive it from an AI agent, and INTERNALS.md for the architecture plus 19 gotchas found while building it.