Open-source Grok Bot alternative with a virtual machine that bots can use
The Inbox on every plan
server/place-inbox.e2e.test.ts boots this computer's server and My Cloud's with the synthetic Claude CLI, and on each:
- An empty inbox answers with no rows, not 404.
- A bot's approval and question, in two threads at once, are listed with count 2, each labelled with its thread.
- An answer through the row's own conversation reaches the bot, its turn goes on and the count clears. A second answer to the same card is refused.
message_personarrives as one line, one row and one notification, and a reply reaches the bot.- A question left by
NEEDS INPUT:that the person writes past leaves Needs you and stops marking the thread as waiting on the person; its card stays open to answer.
On My Cloud it also checks that nobody connects as a guest, that a bot's shell reads nothing, and that a guest's conversation left behind reaches the owner labelled, with its news kept away.
pnpm exec vitest run server/place-inbox.e2e.test.ts
The panel
src/components/inbox/InboxReading.dom.test.ts drives the panel as a tab: its count and close, three-line rows with a
question's choices and the recommended one marked, the search, a line read in full with "n of m" and its steps, the bot's
words before it drawn as the chat's Markdown, and a question answered with its choice cards, a number key and a note through
/api/threads/<id>/respond, after which the next line opens, or the list when none is left. A password or a sign-in is keyed
by its own card kind and answered with the chat's own card for it.
pnpm exec vitest run src/components/inbox/InboxReading.dom.test.ts src/components/inbox/InboxPanel.dom.test.ts src/components/inbox/InboxEverywhere.dom.test.ts
The rail, in a real build
scripts/verify-place-inbox-rail.mjs runs the packaged app, production main process and all, on a GitHub macOS runner
(the inbox-rail-check.yml workflow, which lives only on the ci/inbox-rail-check branch and runs on a push there or by hand). It refuses to run anywhere else,
because it edits /etc/hosts and trusts a throwaway certificate. A synthetic Admin and synthetic Clouds answer at their real
addresses over real TLS, and a bot on the synthetic Claude CLI asks a real question on the real local server.
- The app signs in, and the rail lists this computer and both Clouds.
- A Cloud never opened on this computer is asked in the background, with the session the app paired by itself. Nothing waits, so its tile stays quiet.
- Lines waiting there fire "{name}: needs you" and the dot. The dot is gone while that place is on screen, and back on leaving.
- Once the Admin says a Cloud sleeps it is not asked over a whole poll, and it keeps its last number. Awake again with nothing waiting, its label and dot clear.
- A Cloud asleep from the start receives no request in the whole run.
- While the window shows a Cloud, this computer's tile fires for the question on the local server.
It proves the app's side of the Admin's word. It has not run against a real Cloud, a real sleep or a real wake. The watch's
own rules are in electron/place-inbox-watch.node-test.mjs.