← Commit history
SKILL.md+3−2
@@ -1,7 +1,7 @@ --- name: grok user-invocable: true-description: "Use this when driving Grok Bot on the user's desktop from the cloud via the grok_* Adom Bridge verbs. Host app is Grok Bot.exe (standalone Electron; Cursor is last-resort fallback only if Grok Bot.exe is missing). Open/close/resize/screenshot/record the app, report thinking vs idle (grok_chat_status), read the visible transcript (grok_chat_read), queue a message (toast + inbox), bind the Grok Bridge webhook and create bots/channels. Sub-skills: grok-app-control, grok-chat, grok-record, grok-webhook, grok-account, grok-anywhere. No public Grok HTTP API — the spawned Python runtime talks back to ab over desktop_* callbacks. Trigger words: grok, grok bot, grok_open, grok_close, grok_chat_status, grok_chat_read, grok_webhook_ensure, grok_webhook_bind, talk to grok, send to grok bot, grok screenshot, screenshot_computer, screenshot grok bot computer."+description: "Use this when driving Grok Bot on the user's desktop from the cloud via the grok_* Adom Bridge verbs. Host app is Grok Bot.exe (standalone Electron; Cursor is last-resort fallback only if Grok Bot.exe is missing). Open/close/resize/screenshot/record the app, report thinking vs idle (grok_chat_status), read the visible transcript (grok_chat_read), queue a message (toast + inbox), bind the Grok Bridge webhook and create bots/channels. Sub-skills: grok-app-control, grok-chat, grok-record, grok-webhook, grok-account, grok-anywhere. No public Grok HTTP API — the spawned Python runtime talks back to ab over desktop_* callbacks. Trigger words: grok, grok bot, grok_open, grok_close, grok_chat_status, grok_chat_read, grok_webhook_ensure, grok_webhook_bind, talk to grok, send to grok bot, grok screenshot, grok_computer_screenshot, screenshot_computer, screenshot grok bot computer." ---  # grok — talk to Grok Bot from Adom Bridge@@ -47,7 +47,8 @@ adom-bridge --ai-thread "<your thread>" grok_readiness '{}' | `grok_open` / `grok_close` / `grok_resize` / `grok_screenshot` / `grok_list_windows` / `grok_status` | Window + host | see **grok-app-control** | grok-app-control | | `grok_chat_status` / `grok_chat_read` / `grok_send` | Thinking vs idle, transcript, toast+inbox | see **grok-chat** | grok-chat | | `grok_record_start` / `stop` / `status` | Window recording | **`reason` required** on start | grok-record |-| `grok_webhook_ensure` / `bind` / `fire` / `status`, `grok_bot_*`, `grok_channel_create` | Wake this session, create bots/channels, `screenshot_computer` for the agent box | never log the key | grok-webhook |+| `grok_webhook_ensure` / `bind` / `fire` / `status`, `grok_bot_*`, `grok_channel_create` | Wake this session, create bots/channels | never log the key | grok-webhook |+| `grok_computer_screenshot` | Screenshot grok-bridge's computer (the agent box), not Grok Bot.exe. One verb; unique nonce; do not bash-poll | optional `nonce`, `timeoutSeconds` | grok-webhook | | `grok_login` / `grok_logout` / `grok_plugin_install` | Sign-in UI + plugins | never type passwords | grok-account | | `grok_uninstall` | Tells you to `bridge_uninstall {"name":"grok"}`. Does **not** kill Grok Bot or Cursor. | — | this skill | 
package.json+5−4
@@ -1,8 +1,8 @@ {   "slug": "grok-bridge",-  "version": "1.2.5",+  "version": "1.2.6",   "type": "app",-  "description": "Grok Bridge lets Adom talk to Grok Bot. Adom's AI environment is for electrical engineers: any provider (Claude, Codex, Grok, Gemini, \u2026), any desktop power tool, through Adom Bridge. grok_* open/close/resize/screenshot/record the app, read the thread, and create bots/channels via webhook.",+  "description": "Grok Bridge lets Adom talk to Grok Bot. Adom's AI environment is for electrical engineers: any provider (Claude, Codex, Grok, Gemini, …), any desktop power tool, through Adom Bridge. grok_* open/close/resize/screenshot/record the app, read the thread, and create bots/channels via webhook.",   "keywords": [     "grok",     "grok-bot",@@ -88,7 +88,8 @@     "open grok dashboard",     "screenshot_computer",     "screenshot grok bot computer",-    "grok computer screenshot"+    "grok computer screenshot",+    "grok_computer_screenshot"   ],   "sample_prompts": [     {@@ -125,7 +126,7 @@     },     {       "label": "Screenshot Grok Bot's computer",-      "prompt": "Ask Grok Bot for a screenshot of grok-bridge's computer (the agent box, not Grok Bot.exe). Fire event screenshot_computer with a nonce, then poll grok_chat_read on thread grok-bridge for that nonce. Do not wait on the webhook HTTP body."+      "prompt": "Call grok_computer_screenshot {}. Do not poll grok_chat_read. Do not reuse a nonce. That verb screenshots grok-bridge's computer (the agent box), not Grok Bot.exe."     }   ],   "hero": {
page.json+4−3
@@ -4,7 +4,7 @@   "type": "app",   "title": "Grok Bot",   "brief": "Grok Bridge lets Adom talk to Grok Bot. Adom's AI environment is for electrical engineers: any provider, any desktop power tool, one place.",-  "version": "1.2.5",+  "version": "1.2.6",   "hero": {     "type": "image",     "path": "screenshots/hero.png"@@ -58,7 +58,7 @@     },     {       "label": "Screenshot Grok Bot's computer",-      "prompt": "Ask Grok Bot for a screenshot of grok-bridge's computer (the agent box, not Grok Bot.exe). Fire event screenshot_computer with a nonce, then poll grok_chat_read on thread grok-bridge for that nonce. Do not wait on the webhook HTTP body."+      "prompt": "Call grok_computer_screenshot {}. Do not poll grok_chat_read. Do not reuse a nonce. That verb screenshots grok-bridge's computer (the agent box), not Grok Bot.exe."     }   ],   "discovery_triggers": [@@ -95,7 +95,8 @@     "open grok dashboard",     "screenshot_computer",     "screenshot grok bot computer",-    "grok computer screenshot"+    "grok computer screenshot",+    "grok_computer_screenshot"   ],   "discovery_pitch": "Grok Bridge lets Adom talk to Grok Bot on Windows or Mac. Adom's environment is for electrical engineers who need every AI provider and every desktop power tool in one place; Adom Bridge is how those desktops become AI-first.",   "metadata": {},
skills/grok-app-control/SKILL.md+2−2
@@ -23,7 +23,7 @@ adom-bridge --ai-thread "<your thread>" grok_<verb> '<json>' | `grok_status` | Detect + last send + inbox + webhook bound (host only) | — | | `grok_open` | Launch Grok Bot in the **background**; poll process/window; Start-Process minimized if launch/desktop_open do not take. Returns `launched`, `opened`, `alreadyOpen`, `hwnd` | optional `foreground` + **required** `foregroundReason` (≥10 chars) | | `grok_list_windows` | `desktop_find_window` titleContains `Grok Bot` (preferred; unwrap `output`/`best.hwnd`) then `desktop_list_windows` + `process_list` | optional `titleContains` |-| `grok_screenshot` | `desktop_screenshot_window` of **Grok Bot.exe**. Not grok-bridge's computer. For the agent box, fire `screenshot_computer` (**grok-webhook**) | optional `titleContains` |+| `grok_screenshot` | `desktop_screenshot_window` of **Grok Bot.exe**. Not grok-bridge's computer. For the agent box, `grok_computer_screenshot` (**grok-webhook**) | optional `titleContains` | | `grok_close` | Hide the window (`desktop_set_window_state` hide). Prefer hide over kill. **Never kill Cursor.** | — | | `grok_resize` | `desktop_set_window_bounds` on the Grok Bot hwnd. Restores first if maximized. Physical px (same as ab) | `w`, `h`, optional `x`, `y` (omit to keep origin) | @@ -37,4 +37,4 @@ Windows open in the background. `openedInBackground` / `windowEtiquette:"backgro  `success:true` on grok_open now means a process/window was observed (or alreadyOpen). Still screenshot after resize/close. -Cold-start and identity: **grok**. Recording: **grok-record**. Chat: **grok-chat**. Box desktop shot: **grok-webhook** (`screenshot_computer`).+Cold-start and identity: **grok**. Recording: **grok-record**. Chat: **grok-chat**. Box desktop shot: **grok-webhook** (`grok_computer_screenshot`).
skills/grok-chat/SKILL.md+3−3
@@ -10,7 +10,7 @@ Parent skill: **grok** (the core driver). This file is the area split.  ```bash adom-bridge --ai-thread "<your thread>" grok_chat_status '{}'-adom-bridge --ai-thread "<your thread>" grok_chat_read '{"limit": 40}'+adom-bridge --ai-thread "<your thread>" grok_chat_read '{"thread":"grok-bridge","limit": 4000}' adom-bridge --ai-thread "<your thread>" grok_send '{"message":"the board is ready for review"}' ``` @@ -21,12 +21,12 @@ Never steal focus. Surface `_hint` verbatim. | CLI | Purpose | Key args | |---|---|---| | `grok_chat_status` | Thinking vs idle. `thinking=true` when UIA exposes `"<agent> is working"` (proven: `"New Bot is working"`) | — |-| `grok_chat_read` | Visible transcript via `desktop_ui_text {hwnd, role:"Document", range:"all"}`. Returns `focusedThread` / `agent`. Optional `thread`/`agent` clicks that sidebar row then re-reads. Optional `limit` from the **end**. After cold launch the focused thread may not be grok-bridge — pass `thread` or wait after `grok_open`. Never returns webhook keys | optional `limit`, `thread`, `agent` |+| `grok_chat_read` | Visible transcript via `desktop_ui_text {hwnd, role:"Document", range:"all"}`. Returns `focusedThread` / `agent`. Optional `thread`/`agent` clicks that sidebar row then re-reads. **`limit` is CHARACTERS from the end, not messages** — `limit:20` will miss a nonce. Use 4000+. Values under 500 are coerced. After cold launch the focused thread may not be grok-bridge — pass `thread` or wait after `grok_open`. Never returns webhook keys. Do **not** bash-loop this verb | optional `limit`, `thread`, `agent` | | `grok_send` | Toast `Grok Bot: {message}` **and** append `~/.adom/grok-inbox.jsonl`. Typing into the chat widget is opt-in — default does not steal the keyboard | `message`, optional `agent` |  ## Gotchas -- Status and read are the Grok Bot **window**, not this agent's box desktop feed. To get the box shot, fire `screenshot_computer` then poll this thread for the nonce (**grok-webhook**).+- Status and read are the Grok Bot **window**, not this agent's box desktop feed. For the box shot call `grok_computer_screenshot {}` (**grok-webhook**) — do not bash-poll `grok_chat_read`. - `grok_send` is not a public Grok HTTP API. The Anywhere character (`grok-anywhere`) can poll the inbox. - If list_windows is empty, fix hwnd unwrap first (**grok-app-control**) — chat verbs need that hwnd. - Empty/tiny transcript after cold start: `errorCode` `focused_thread_empty` / `transcript_unavailable` plus `focusedThread`. Call `grok_open` then wait, or `grok_chat_read {"thread":"grok-bridge"}`. Sidebar click is best-effort UIA.
skills/grok-webhook/SKILL.md+9−22
@@ -1,7 +1,7 @@ --- name: grok-webhook user-invocable: true-description: "Bind the Grok Bridge webhook without human copy-paste (grok_webhook_ensure scrapes the routine pane), fire events, and create Grok Bot bots/channels. Also the poll loop for a screenshot of Grok Bot's computer (the agent box), not Grok Bot.exe: event screenshot_computer + nonce, then grok_chat_read. Stores ~/.adom/grok-webhook.json on the PC. Never log or hint the key. Auth on fire is Authorization: Bearer. Trigger words: grok_webhook_ensure, grok_webhook_bind, grok_webhook_fire, grok_webhook_status, grok_bot_create, grok_channel_create, grok_bot_list, grok webhook, create grok bot, create grok channel, screenshot_computer, screenshot grok bot computer, grok computer screenshot."+description: "Bind the Grok Bridge webhook without human copy-paste (grok_webhook_ensure scrapes the routine pane), fire events, and create Grok Bot bots/channels. Screenshot grok-bridge's computer (the agent box, not Grok Bot.exe) with grok_computer_screenshot — one verb, unique nonce, no bash poll. Stores ~/.adom/grok-webhook.json on the PC. Never log or hint the key. Auth on fire is Authorization: Bearer. Trigger words: grok_webhook_ensure, grok_webhook_bind, grok_webhook_fire, grok_webhook_status, grok_bot_create, grok_channel_create, grok_bot_list, grok_computer_screenshot, grok webhook, create grok bot, create grok channel, screenshot_computer, screenshot grok bot computer, grok computer screenshot." --- Parent skill: **grok** (the core driver). This file is the area split. @@ -30,6 +30,7 @@ Never log the key. Never put the key in `_hint`. Auth on fire is header `Authori | `grok_bot_create` | Fire `event=create_bot` | **`name`**, optional `description` | | `grok_channel_create` | Fire `event=create_channel` | **`name`**, optional `member_ids` | | `grok_bot_list` | Fire `event=list_bots` | — |+| `grok_computer_screenshot` | Fire `screenshot_computer`, wait for a unique nonce in grok-bridge, thumbnail Grok Bot.exe. Screenshots the agent box, not Grok Bot.exe. Do **not** bash-poll | optional `nonce`, `timeoutSeconds` |  If unbound: `errorCode: webhook_not_bound` and `_next` is `grok_webhook_ensure {}`. @@ -54,35 +55,21 @@ If unbound: `errorCode: webhook_not_bound` and `_next` is `grok_webhook_ensure { | `plugin_install` | Open plugin install for `{id}` | | `login_needed` | Ask the human to sign in | | `logout_done` | Confirm sign-out |-| `screenshot_computer` | grok-bridge captures **its own Linux computer** (the agent box) and posts nonce + image in the grok-bridge thread. **Not** Grok Bot.exe. See below. |+| `screenshot_computer` | grok-bridge captures **its own Linux computer** (the agent box) and posts nonce + image in the grok-bridge thread. **Not** Grok Bot.exe. Call `grok_computer_screenshot {}` rather than firing this event yourself. |  ## Screenshot of Grok Bot's computer (not Grok Bot.exe) -The 26 `grok_*` verbs target **Grok Bot.exe on the laptop**. `grok_screenshot` is that window. There is no `grok_computer_screenshot` verb yet.+`grok_screenshot` is the **Grok Bot.exe** window. `grok_computer_screenshot` asks grok-bridge to capture **its own Linux computer** (the agent box: Chrome, KiCad, adom-lbr, the dock — the feed titled grok-bridge's screen), waits until a unique nonce is in the grok-bridge thread, then thumbnails Grok Bot.exe. -To see **grok-bridge's computer** (the Linux agent box: Chrome, KiCad, adom-lbr, the dock — the feed titled grok-bridge's screen):--1. Pick a nonce (`BOX-SHOT-4821` style).-2. Fire the webhook. HTTP 200 is only `{runUuid}` — **no image in the body**.+Happy path — one verb, unique nonce minted for you, no bash poll:  ```bash-adom-bridge --ai-thread "Grok Bot" --target AdomLapper grok_webhook_fire '{-  "event":"screenshot_computer",-  "nonce":"BOX-SHOT-4821",-  "message":"Screenshot Grok Bot computer now. Reply in grok-bridge with this nonce, and attach the PNG of your desktop."-}'+adom-bridge --ai-thread "Grok Bot" --target AdomLapper grok_computer_screenshot '{}' ``` -Nonce may be top-level or `payload.nonce`.--3. Poll, do not wait on the POST:--```bash-adom-bridge --ai-thread "Grok Bot" --target AdomLapper grok_chat_status '{}'-adom-bridge --ai-thread "Grok Bot" --target AdomLapper grok_chat_read '{"thread":"grok-bridge","limit":40}'-```+Optional `{nonce, timeoutSeconds}` (timeout default 180s, clamp 30–300). **Do not** bash-loop. **Do not** poll `grok_chat_read`. **Do not** reuse a nonce. HTTP 200 from a raw fire has no image; this verb waits and returns `found` when the nonce is in the transcript. Full PNG is the in-thread attachment; `shotId` is a Grok Bot.exe thumbnail. Queue is FIFO (~60–120s). Never paste webhook keys. -Done when the visible grok-bridge transcript contains the **exact nonce** and an attached desktop shot. Latency ~60–120s. Queue is FIFO. Never paste webhook keys.+Fallback **only if the verb is unknown** (old runtime): fire `screenshot_computer` with a **FRESH** nonce (`BOX-SHOT-` + unique hex, never reuse) and `grok_chat_read` `{"thread":"grok-bridge","limit":8000}` (`limit` is **characters** from the end, not messages).  Do **not** click the monitor icon in Grok Bot and treat that as the computer shot — that is the same window `grok_screenshot` already covers. @@ -105,6 +92,6 @@ adom-bridge --ai-thread "grok" --target AdomLapper grok_webhook_fire '{ - `create_bot` / `list_bots` / `create_channel` ignore `agent` (they are mailbox-owner actions). - `grok_send {agent}` is still toast + inbox, not this loop. -HTTP 200 is only `{runUuid}` — now copied to the verb's top-level `runUuid` (was null when only nested). Poll `grok_chat_read` for the nonce. Optional `grok_run_status {runUuid}` echoes the last fire in this process. Latency ~60–120s. Queue is FIFO.+HTTP 200 is only `{runUuid}` — now copied to the verb's top-level `runUuid` (was null when only nested). For a computer shot use `grok_computer_screenshot {}` instead of polling. Optional `grok_run_status {runUuid}` echoes the last fire in this process. Latency ~60–120s. Queue is FIFO.  Smoke: `grok_webhook_fire {"event":"ping"}`. Verify with `grok_webhook_status` (hostname only).