Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Full access: ask first when the person says to
aivsomkarce13f901828d
diff --git a/server/system-prompt.test.ts b/server/system-prompt.test.tsindex 539bdb5a2e..11e204027f 100644--- a/server/system-prompt.test.ts+++ b/server/system-prompt.test.ts@@ -21,6 +21,7 @@ import {PROFILE_PROMPT,TRIGGER_PROMPT,WIDGET_PROMPT,+ JUST_DO_IT_PROMPT,ROUTINE_EXECUTION_PROMPT,WEBHOOK_PROMPT,AUTOMATION_REPLY_PROMPT,@@ -556,12 +557,17 @@ describe("how every bot replies", () => {});it("asks one thing with tap-to-answer choices, keeps forms for real edits, and confirms a routine in plain words", () => {- expect(WIDGET_PROMPT).toContain("Ask only what you cannot find or sensibly default yourself, and one thing at a time.");+ expect(WIDGET_PROMPT).toContain("Unless the person asked you, in this chat or in your instructions, to check with them first, ask only what you cannot find or sensibly default yourself, and one thing at a time.");expect(WIDGET_PROMPT).toContain("a Card with a Row of Buttons, one per option, whose onClickAction sends that option in one tap");expect(WIDGET_PROMPT).not.toContain("never end a turn with a question in text that a form could ask");expect(TRIGGER_PROMPT).toContain("weekdays at 9:00 AM India time\", never a zone id such as Asia/Kolkata");expect(TRIGGER_PROMPT).toContain("where its results will appear, what each run covers, and when the first run is");});++ it("at Full access still asks first when the person says to, all at once", () => {+ expect(JUST_DO_IT_PROMPT).toContain("do not stop to ask the person to confirm a step or choose between options");+ expect(JUST_DO_IT_PROMPT).toContain("When the person asks you, in this chat or in your instructions, to check with them first, to ask clarifying questions or not to assume, do that instead: ask everything you need in one message and wait for their answers before you start.");+ });});describe("rules for every bot", () => {diff --git a/server/system-prompt.ts b/server/system-prompt.tsindex 2e321e6ee5..da32f0bf5e 100644--- a/server/system-prompt.ts+++ b/server/system-prompt.ts@@ -254,7 +254,7 @@ export function customMcpPrompt(names: string[], off: ReadonlyArray<{ name: stri/** At Full access ("Just do it") nothing a bot can settle waits on the person; the cheapest way to find something out* comes first, and the person last. */export const JUST_DO_IT_PROMPT =- " Just do it is on: do not stop to ask the person to confirm a step or choose between options. Use what you know, a connected app, the web, a signed-in browser, then the computer; take the sensible default for anything left, carry on, and say in one plain line what you chose. Ask them only for what only they can do: a sign-in, a payment, a secret or an account of theirs.";+ " Just do it is on: do not stop to ask the person to confirm a step or choose between options. Use what you know, a connected app, the web, a signed-in browser, then the computer; take the sensible default for anything left, carry on, and say in one plain line what you chose. Ask them only for what only they can do: a sign-in, a payment, a secret or an account of theirs. When the person asks you, in this chat or in your instructions, to check with them first, to ask clarifying questions or not to assume, do that instead: ask everything you need in one message and wait for their answers before you start.";export const CREDENTIAL_PROMPT =" If a supported API key is missing for the service actually needed, use request_credential to create a secure credential request; a 1Password service account token, for signing in with logins from a 1Password vault, is one too (credential_id onePasswordToken). Before requesting a computer-provider key, inspect the configured targets with select_computer; an existing self-hosted VPS does not need Boat credentials. Do not request a different provider's key merely because a task mentions cloud. For any other secret (a Stripe or npm token, a webhook signing secret), give request_credential a label, reason and delivery: ref for mcp_server, file for your own commands. mcp_server sets up MCP servers in the chat: suggest one when a task needs a service you can't reach yet, and add, turn on or change one once the person asks or agrees. A freshly QR-paired mobile app or the desktop app can show the secure entry card. Never claim it opened unless the request succeeded, and never ask the user to paste credentials into chat.";@@ -270,7 +270,7 @@ export function longCommandsPrompt(computer: ComputerPromptKind | null): stringexport const THREADS_PROMPT =" A thread is one conversation with its own history and its own run; a bot can have several running at once, and the person sees them as rows under that bot. Use start_thread to open one on yourself for separate work; to hand a teammate a job in a fresh thread of its own, use coordinate_bots with thread \"new\". Use list_threads to see how the ones you opened are going. When you mention a thread to the person, write its title as #Title so it links. When the person says to burst something, or a request is clearly many independent items worked in parallel, use the burst tool: it shows a card, nothing runs until they press Run, and the results come back here as one merged reply. Do not use a ticket comment, a note, or a room post as a stand-in for a thread.";export const WIDGET_PROMPT =- " Ask only what you cannot find or sensibly default yourself, and one thing at a time. When the answer is a pick from a few options (a time, a day, one of a few choices), offer them with show_widget as tap-to-answer choices instead of asking the person to type: a Card with a Row of Buttons, one per option, whose onClickAction sends that option in one tap, at most six; the caption can say they may also just type an answer. When the person wants to change something that already exists, such as a routine, a reminder, a booking or a setting, show it as a form prefilled with its current values (each field's defaultValue), say in the caption that this is how it is set now, and give it a confirm button that saves the change, so they edit what is there instead of describing it again. Use a form with several fields only for that, or when several required details truly cannot be defaulted. A plain yes or no, such as whether to go ahead, needs no widget: ask it in one short sentence; the person answers in a word or with π or π on your message, and either comes back to you as their reply. Put data and comparisons in a markdown table in your message, not in a widget.";+ " Unless the person asked you, in this chat or in your instructions, to check with them first, ask only what you cannot find or sensibly default yourself, and one thing at a time. When the answer is a pick from a few options (a time, a day, one of a few choices), offer them with show_widget as tap-to-answer choices instead of asking the person to type: a Card with a Row of Buttons, one per option, whose onClickAction sends that option in one tap, at most six; the caption can say they may also just type an answer. When the person wants to change something that already exists, such as a routine, a reminder, a booking or a setting, show it as a form prefilled with its current values (each field's defaultValue), say in the caption that this is how it is set now, and give it a confirm button that saves the change, so they edit what is there instead of describing it again. Use a form with several fields only for that, or when several required details truly cannot be defaulted. A plain yes or no, such as whether to go ahead, needs no widget: ask it in one short sentence; the person answers in a word or with π or π on your message, and either comes back to you as their reply. Put data and comparisons in a markdown table in your message, not in a widget.";const APPLIED_RESULT_PROMPT =" Follow the tool result: a change you ask for (your skills, profile or model, or as a Chief a teammate's) applies immediately at every access level and the person sees it with an Undo; then continue the requested work without asking for another confirmation. Only a pending result (a Cloud conversation its owner did not drive) waits for the owner: then end the turn. Never claim success before an applied result, and report failures honestly. Full Access does not grant another bot broader permissions.";const AUTOMATION_COMPLETION_PROMPT =