Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(bot-box): mount Copilot config references
nickash2a1f772737f3a
diff --git a/docs/verification/copilot-engine.md b/docs/verification/copilot-engine.mdindex a4552851fe..978be24989 100644--- a/docs/verification/copilot-engine.md+++ b/docs/verification/copilot-engine.md@@ -39,7 +39,9 @@ The driver supplies the same scoped servers through`--additional-mcp-config @FILE` instead. Each thread has a private temporaryfile, credentials stay out of argv, changed tools or credentials restart theprocess, and disposal removes the files without changing the person's Copilot-configuration. ACP permissions still go through OpenMausBot's approval broker.+configuration. On Linux bot boxes, the `@FILE` path is mounted read-only into+the box so the launcher can load it without exposing other temporary files.+ACP permissions still go through OpenMausBot's approval broker.The fake Copilot rejects client-supplied stdio servers too: the driver testsrequire the real agents proxy's routine tools and a synthetic browser's toolsto be discoverable, and check narrowed selections, credential refresh,diff --git a/server/bot-box/plan.test.ts b/server/bot-box/plan.test.tsindex 2bcd01c554..a2cb98e926 100644--- a/server/bot-box/plan.test.ts+++ b/server/bot-box/plan.test.ts@@ -13,7 +13,7 @@ const setup = (mutate?: BoxMutation[]): BoxSetup => ({});const cwd = join(dataDir, "task-workspaces", "bot-a", "thread-1");const turn = (mutate?: BoxMutation[]) => planBox(setup(mutate), {- command: "/usr/local/bin/claude", args: ["-p", "--mcp-config", "/tmp/omb-mcp-x/mcp.json", "--append-system-prompt-file=/tmp/omb-system-y/prompt.txt"],+ command: "/usr/local/bin/claude", args: ["-p", "--additional-mcp-config", "@/tmp/omb-copilot-mcp-x/config.json", "--append-system-prompt-file=/tmp/omb-system-y/prompt.txt"],cwd, env: { PATH: "/usr/bin", HOME: home, CLAUDE_CONFIG_DIR: "/data/.claude" }, rw: [join(dataDir, "perm-abc.sock")],});@@ -30,7 +30,7 @@ linuxBox("the box plan", () => {expect(visibleInBox(plan, join(dataDir, "workspaces", "bot-a", "MEMORY.md"))).toBe("rw");expect(visibleInBox(plan, join(dataDir, "perm-abc.sock"))).toBe("rw");expect(visibleInBox(plan, "/data/.claude/settings.json")).toBe("rw");- expect(visibleInBox(plan, "/tmp/omb-mcp-x/mcp.json")).toBe("ro");+ expect(visibleInBox(plan, "/tmp/omb-copilot-mcp-x/config.json")).toBe("ro");expect(visibleInBox(plan, "/tmp/omb-system-y/prompt.txt")).toBe("ro");expect(visibleInBox(plan, "/app/dist-server/index.js")).toBe("ro");expect(visibleInBox(plan, "/usr/local/bin/claude")).toBe("ro");@@ -192,6 +192,6 @@ linuxBox("the box plan", () => {expect(taskWorkspaceIds("/data/projects/x", dataDir)).toBeNull();expect(taskWorkspaceIds(join(dataDir, "task-workspaces"), dataDir)).toBeNull();expect(taskWorkspaceIds(join(dataDir, "task-workspaces", "../../etc", "x"), dataDir)).toBeNull();- expect(argvPaths(["-p", "--mcp-config", "/tmp/a/mcp.json", "--settings=/tmp/b/s.json", "/", "relative/file", "--model", "x"])).toEqual(["/tmp/a/mcp.json", "/tmp/b/s.json"]);+ expect(argvPaths(["-p", "--mcp-config", "/tmp/a/mcp.json", "--additional-mcp-config", "@/tmp/copilot/mcp.json", "--settings=/tmp/b/s.json", "/", "relative/file", "--model", "x"])).toEqual(["/tmp/a/mcp.json", "/tmp/copilot/mcp.json", "/tmp/b/s.json"]);});});diff --git a/server/bot-box/plan.ts b/server/bot-box/plan.tsindex 7cd260c4b0..21d475b5d9 100644--- a/server/bot-box/plan.ts+++ b/server/bot-box/plan.ts@@ -103,7 +103,8 @@ export function taskWorkspaceIds(cwd: string, dataDir: string): { botId: string;export function argvPaths(args: readonly string[]): string[] {const paths: string[] = [];for (const arg of args) {- const value = arg.startsWith("--") && arg.includes("=") ? arg.slice(arg.indexOf("=") + 1) : arg;+ const optionValue = arg.startsWith("--") && arg.includes("=") ? arg.slice(arg.indexOf("=") + 1) : arg;+ const value = optionValue.startsWith("@") ? optionValue.slice(1) : optionValue;if (isAbsolute(value) && value.length > 1 && !paths.includes(value)) paths.push(resolve(value));}return paths;