Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Cloud bots: push work to one branch of their own, in a repository the person works in (#7325)

Milind Soni5946bd755d0c
diff --git a/server/system-prompt.test.ts b/server/system-prompt.test.ts
index bb94ac3b9c..d1b991ff20 100644
--- a/server/system-prompt.test.ts
+++ b/server/system-prompt.test.ts
@@ -421,7 +421,8 @@ describe("cloudHomePrompt", () => {
const text = cloudHomePrompt(tools);
expect(text).toContain(CLOUD_REUSE_INSTALLS + CLOUD_PUSH_CODE_WORK);
}
- expect(CLOUD_PUSH_CODE_WORK).toMatch(/push it to a new branch/);
+ expect(CLOUD_PUSH_CODE_WORK).toMatch(/a git remote the person works in and you can push to it/);
+ expect(CLOUD_PUSH_CODE_WORK).toMatch(/push it to one branch of your own, reusing that branch/);
expect(CLOUD_PUSH_CODE_WORK).toMatch(/never force-push, never push to the default branch/);
expect(CLOUD_PUSH_CODE_WORK).toMatch(/never commit secrets, \.env files or installed packages/);
});
diff --git a/server/system-prompt.ts b/server/system-prompt.ts
index 286a9fd91e..b55c843a36 100644
--- a/server/system-prompt.ts
+++ b/server/system-prompt.ts
@@ -201,7 +201,7 @@ export const CLOUD_ENGINES_HERE = " The AIs bots run on (Claude, Codex, Cursor a
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.";
/** Work on a Cloud disk lives only there: code with a remote goes up as a branch, never over anyone's main line. */
-export const CLOUD_PUSH_CODE_WORK = " When a project has a git remote you can push to, commit your work and push it to a new branch instead of leaving it only on this disk: never force-push, never push to the default branch, and never commit secrets, .env files or installed packages such as node_modules.";
+export const CLOUD_PUSH_CODE_WORK = " When a project in your working folder has a git remote the person works in and you can push to it, commit your work and push it to one branch of your own, reusing that branch, instead of leaving it only on this disk: never force-push, never push to the default branch, and never commit secrets, .env files or installed packages such as node_modules.";
/** `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 }> = [],