* fix(httpd): count failed remote logins per IPv6 /64 The lockout keyed on the exact source address, so a client holding an IPv6 /64 could rotate addresses and never hit the 5-failure limit. * fix(httpd): cap the retired password hash list Each password rotation appended to the retired list and nothing removed entries. Keep the 8 most recent. * fix(cli): hide the pairing password in remote-host status status printed the password on every call, so it ended up in agent transcripts and logs. It now needs --show-password. enable still prints it for the installer, which parses that output. * fix(desktop): encrypt saved remote host passwords remotes.json held every host password in plaintext, so any process running as the user, including agents AO starts, could read a credential that opens a shell on each host. Passwords are now sealed with safeStorage and an existing file is rewritten on launch. A password this launch cannot decrypt is kept as is. Without a protected keychain (Linux basic_text) they stay plaintext as before. * fix(desktop): keep account host tokens out of the renderer The renderer fetched every account host token from AO Cloud and passed it to main, so script running in the renderer could read credentials that open a shell on each linked host. Main now syncs and links account hosts itself (remotes:syncAccountHosts, remotes:linkAccountHost), and the Cloud proxy strips tokens from /me/hosts responses sent to the renderer and refuses that path on its binary and stream channels. * fix(e2e): use the renamed account host IPCs in the fake bridge The fake bridge still stubbed remotes.importAccountHost, pruneAccountHosts and issueAccountToken, which no longer exist. * docs(skills): describe remote-host status --show-password Three skill docs still said status prints the pairing password and told agents to filter it with grep. * fix(desktop): keep a saved password that cannot be decrypted during account sync A host whose encrypted password could not be decrypted read back with an empty password, so account sync replaced it with the account token and dropped the encrypted value. Sync now changes only the label and address of such an entry. An encrypted account token is marked as one, so a host the account no longer lists is still removed when its token cannot be decrypted. * fix(desktop): keep AO Cloud requests out of the remote hosts queue Account host sync and linking called AO Cloud inside the queue that orders list, connect, add and disconnect, with no time limit, so a Cloud that never answered blocked every saved host. The directory read now runs before the queue with a 10 second limit, and the registration PUT runs after it with no limit, since making a tunnel can take more than a minute. A Cloud failure rejects as an expected IPC error. Of two overlapping syncs, the older listing is not applied over the newer one. * feat(remote): give each paired device its own token Every hand-paired device shared one pairing password that never expired, so one device could not be revoked without re-pairing all of them. A device now exchanges a one-time pairing code (10 minutes, single use), or the password it already holds, at POST /api/v1/remote-host/devices for its own token. The remote listener accepts device tokens, tells a removed device that it was removed, and can refuse the pairing password (require-device-credentials). Removing a device revokes its token and closes its connections. The device list merges devices with push registrations and shows the account's shared token as one row. Regenerate also removes every device token. * feat(cli): pair, list and revoke remote host devices Adds ao remote-host pair, devices, devices revoke and require-device-credentials. enable prints a one-time pairing code instead of the pairing password, and status says when the password is off. * feat(install): print a one-time pairing code for pairing by hand The code is made when the pairing details are printed, so its 10 minutes start there. A release without `ao remote-host pair` still prints the password. * docs(remote): describe pairing codes and device management The Grok bot setup now exchanges a pairing code for its own token instead of saving the pairing password. * fix(remote): remove push registrations when every device is revoked Rotating the pairing password revoked every device token but kept the phones' push registrations. They stayed in the device list as pairing-password devices and kept receiving notifications. * fix(cli): print the password on enable only when the daemon has no pairing codes enable printed the long-lived password whenever making a pairing code failed. It now does so only on 404 or 501 from the pairing-code route, and returns any other failure or an empty code as an error. * fix(remote): revoke devices only after the new password is saved Devices were revoked before the listener started and the state was saved, so a rotation that failed kept the old password but had already removed every device token and push registration. Revoking now follows the save and also closes the revoked devices' connections. * fix(remote): move an unreadable device registry aside A read error other than a missing file returned an empty registry at the same path, so the next write replaced the real file. It is now moved to .bad first, as a damaged file already is. * test(remote): skip the device registry mode check on Windows Windows does not report 0600, and the other mobilebridge tests already skip this check there. * fix(remote): refuse device registry writes when a damaged file stays in place A damaged or unreadable registry is moved to .bad before an empty one is used. If that rename failed, the next write still replaced the file. The registry now refuses every write in that case. * test(remote): check that regenerate closes a device's open connection * refactor(desktop): pick the device row icon with isPhone The icon and the phone count in New Chat used the same platform check written twice. * chore(remote): cut comments that restate the code Exported symbols keep a one-line doc comment, as revive requires. Other comments stay only where they say why.
Orchestrator Bot for Grok Bot
Seven skills that let a Grok Bot run Orchestrator from chat: see what every session is doing, answer agents' questions, talk to each project's orchestrator, act on sessions and PRs, and update itself. There is nothing to install on the user's computers. The skills use the ao CLI and Orchestrator's local API, which every Orchestrator install already has. macOS and Linux only; Windows isn't supported yet.
| Skill | What it does |
|---|---|
ao-rules |
Shared rules: hosts, the aoapi helper, orchestrator-first routing, who decides, secrets |
ao-setup |
Finds Orchestrator on your computers, adds a remote host, turns on routines |
ao-status |
What's running, waiting, ready to merge; the daily digest |
ao-orchestrator |
Sends your request to a project's orchestrator and relays its reply |
ao-answer |
Shows waiting questions and approvals as cards and sends your pick back; away mode |
ao-actions |
Stop, resume, merge, review, screenshot, files, keep awake, automations |
ao-update |
Checks the published skills, verifies their sha256 and rewrites the changed ones |
Computer layouts
| Layout | How the bot reaches Orchestrator |
|---|---|
| Grok Bot desktop app on every computer that runs Orchestrator | Each computer is a local host. The bot runs commands on each one and labels results by host |
| Grok Bot desktop app only on your laptop; Orchestrator runs on another Mac (the host) | The host is a remote host. The bot calls the host's Orchestrator API over your network from the laptop, with the host's Orchestrator password |
| Both: your laptop runs Orchestrator too | The laptop is a local host and also the bridge to the remote host |
Each host's Orchestrator keeps its own projects; a repo cloned on two Macs is two separate projects. Orchestrator names a project after its folder, so both can get the same id, and session ids such as agent-orchestrator-1-12 can then exist on both. The bot names every session <host>/<session id>.
A remote host needs Orchestrator's network access turned on (Orchestrator remote access settings, or ao remote-host enable on the host). Its password is typed once into a Terminal window on the laptop and kept in ~/.ao-grok/<host>.header (mode 600). It never passes through chat.
Install
Grok Bot: open the Orchestrator Bot template and choose Add to Grok Bot. Install the Grok Bot desktop app on the computers that run Orchestrator, then say "set up AO". No Orchestrator.inc yet? Setup offers to install it on a Mac and walks you through your first project. Say "update Orchestrator Bot" later to get skill updates.
To build the bot yourself instead, create a bot and save each skills/<id>/SKILL.md as a skill (ask the bot to use UpdateSkill with the frontmatter name and description and the rest of the file as the body).
Claude Code, Codex, Cursor: copy the folders under skills/ into the agent's skills folder (~/.claude/skills, ~/.agents/skills, ~/.cursor/skills). These agents run on one computer, so they see that computer's Orchestrator as a local host only.
Publishing and updates
The skills are meant to live in the Orchestrator repository at integrations/grok-bot/. After changing any skill, run python3 make-manifest.py <version> to rewrite manifest.json (version plus sha256 per skill). Installed bots run ao-update: it reads the newest commit on main, downloads the manifest and the changed skills from that exact commit, checks every sha256, and rewrites the skills only if all match.
Tested
Run on 2026-10-27 against a live Orchestrator daemon, in zsh and bash, with throwaway sessions in demo projects (all removed afterwards):
| Flow | Result |
|---|---|
| Question from a worker (AskUserQuestion), answered by option and by typed "Other" | Passed: the worker received both answers |
Approval (Claude Code in accept-edits), answered Allow Once; answering twice |
Passed; the second answer returns 409 CHAT_REQUEST_NOT_PENDING |
| Plain-text question detection | Passed; it also found 3 real unanswered questions |
| Orchestrator: find, start with the request as its prompt, send, wait, steer | Passed (ROUNDTRIP OK, START OK, STEER OK); a real catch-up sent by Grok Bot was matched too |
| Send to a broken orchestrator | Passed: Orchestrator's error is shown, one resume and retry, no false "sent" |
| Interrupt, kill, restore (worker), resume | Passed |
| Merge | PR details read; request body accepted by Orchestrator's validation (fake PR). No real PR merged |
| Review trigger, screenshot, files | Passed (errors explained where there's no PR or browser page) |
| Automation create and delete | Passed (created disabled, then deleted) |
| Keep awake | Refused by Orchestrator's safety stop on this Mac; the skill explains it. Not forced |
| Remote host through the real password-checked LAN listener | Passed: finder, news, connection test; blocked routes return ROUTE_NOT_FOUND |
| Setup probe and password window (with a piped test password) | Passed: header file mode 600, window script deletes itself |
ao-update: first install, no change, one change, tampered file, GitHub before publishing |
Passed; tampering gives HASH_MISMATCH and writes nothing |
Not tested here: Grok Bot's own side (cards, routines, UpdateSkill) beyond what the user ran by hand, Linux, and a remote host on a second physical computer.
AO bugs found while testing
| Bug | Effect |
|---|---|
An orchestrator can't be created when an old folder is left at its worktree path that git no longer tracks (todo-app here) |
provisionState: failed; every message to it fails. The skill reports it |
POST /sessions/<id>/send returns a bare 500 when the agent controller is stopped |
steer-or-send returns a clear CHAT_CONTROLLER_NOT_READY for the same case |
ao pr merge <n> posts an empty body, but the route requires prUrl and expectedHeadSha |
The CLI merge fails with INVALID_PR. The skill sends the full body |
What AO could add to make this better
| Gap today | Effect | Fix in Orchestrator |
|---|---|---|
| No CLI command to list or answer pending requests | Skills read the conversation API with Python | ao session pending, ao session answer |
| The orchestrator isn't told when a worker waits on an approval | The bot, not the orchestrator, triages approvals | Send worker waits to the orchestrator as reports |
| Orchestrator can't push events to the bot | Questions reach chat on the 30-minute check, not instantly (Orchestrator's mobile app is instant) | A webhook sender in the daemon, with finished and failed events |
ao send doesn't wait for a reply |
The orchestrator skill polls history | ao send --wait |
The ao CLI talks only to its own computer |
Remote hosts need the REST helper | ao --host <url> with a stored credential |
| No risk level on approvals | The bot judges risk from the command text | A risk hint per approval |
| Review trigger, screenshots, file listing and keep-awake are local only | A remote host needs its orchestrator for these | REST routes reachable over remote access |