Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Cloud bots reuse what a task already installed or cloned instead of fetching it again (#7171)
Milind Sonid080facb7b67
diff --git a/server/system-prompt.test.ts b/server/system-prompt.test.tsindex c5ad3b373c..4a6977e91f 100644--- a/server/system-prompt.test.ts+++ b/server/system-prompt.test.ts@@ -8,6 +8,7 @@ import {CONVERSATIONAL_STYLE_PROMPT,CLOUD_HOME_PLACE,CLOUD_ENGINES_HERE,+ CLOUD_REUSE_INSTALLS,cloudHomePrompt,userProfileSystemPrompt,computerPrompt,@@ -406,6 +407,14 @@ describe("composioSystemPrompt", () => {});describe("cloudHomePrompt", () => {+ it("asks bots to reuse what a task already installed or cloned, and never to remove anything", () => {+ for (const tools of [true, false]) {+ const text = cloudHomePrompt(tools);+ expect(text).toContain(CLOUD_REUSE_INSTALLS);+ expect(CLOUD_REUSE_INSTALLS).not.toMatch(/\b(?:remove|delete|clean)/i);+ }+ });+it("says the Cloud is off their network, whatever memory says, and sends ssh through the lent computer", () => {const lent = cloudHomePrompt(true, [], [{ name: "ASH-PC", platform: "win32" }]);expect(lent).toContain("This Cloud is not on their network");diff --git a/server/system-prompt.ts b/server/system-prompt.tsindex abe75ab3ff..fce4954af5 100644--- a/server/system-prompt.ts+++ b/server/system-prompt.ts@@ -197,6 +197,9 @@ export const CLOUD_ENGINES_HERE = " The AIs bots run on (Claude, Codex, Cursor a+ " When an AI's Google sign-in ends on a 127.0.0.1 or localhost page that can't be reached, that is the expected last step, not a failed sign-in: tell them to copy that page's full address and paste it in the \"Paste its address here\" field on the AI's card, then press Send redirect."+ " When Google's Antigravity page shows a code after the sign-in, that is the last step too: tell them to paste the code in the \"Code from the Antigravity page\" field on the AI's card, then press Send code.";+/** My Cloud's disk is its owner's: what a task already has in its folder is used again, not fetched a second time. */+export const CLOUD_REUSE_INSTALLS = " Reuse, and update if needed, what is already installed or cloned in your working folder instead of installing or cloning it again, unless the person asks for a fresh copy.";+/** `asks`: the person's own Cloud, whose bots ask them to turn on what their computer doesn't give now (ask_for_computer). */export function cloudHomePrompt(sharedComputerTools: boolean, synced: ReadonlyArray<{ computerName: string; pcPath: string; cloudPath: string }> = [],lent: ReadonlyArray<{ name: string; platform: "darwin" | "win32" | "linux" | null; online?: boolean; lent?: boolean; lastSeenAt?: number; typing?: boolean }> = [], asks = false): string {@@ -212,6 +215,7 @@ export function cloudHomePrompt(sharedComputerTools: boolean, synced: ReadonlyAr+ (asks ? " For work that doesn't need their own computer, use what works here:" : " Offer what works here:")+ " the built-in browser and their cloud computer, a desktop in the cloud. Call it their cloud computer, as the app does. Never ask them to set up this computer or a Local VM; neither exists here."+ CLOUD_ENGINES_HERE+ + CLOUD_REUSE_INSTALLS+ syncedFoldersPrompt(synced);}