Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Merge pull request #6236 from AdityaUmale/fix2/6215-approval-names
milind-sonib850e39802c3
diff --cc server/index.tsindex b684a1bf05,479ff10ef7..c87b05f05f--- a/server/index.ts+++ b/server/index.ts@@@ -8351,10 -8383,10 +8351,10 @@@ async function beginTurnplace: phones.place(threadId, !(commsDepth > 0 || opts?.automationSource !== undefined || opts?.unattended || opts?.peerAsk || opts?.coordination)),}),{ id: "coordination", label: "Team and who is speaking", text: PROVENANCE_PROMPT + (coordinationPrompt && !apiFenced ? ` ${coordinationPrompt}` : "") }, teamRosterPart(coordinationPrompt && !apiFenced ? teamPrompt.roster : ""),- { id: "assignment", label: "Teammate task", text: coordinationNode?.parentId ? `\n${coordinationSystemInstructions()}` : "" },+ { id: "assignment", label: "Teammate task", text: coordinationNode?.parentId ? `\n${[coordinationSystemInstructions(), roomJobs.laneBulletin(coordinationNode)].filter(Boolean).join("\n")}` : "" },{ id: "outstanding", label: "Outstanding teammate work", text: teammatePrompts.outstanding(threadId) },{ id: "teammate-questions", label: "Teammates' questions to the person", text: teammatePrompts.questions(liveBot ?? bot, threadId) },- { id: "credential", label: "Credentials", text: credentialPrompt }, { id: "just-do-it", label: "Just do it", text: approvalModeForTurn(bot, commsDepth > 0, threadId) === "full" && !isUnattended(bot.id, threadId) && coordinationNode?.origin?.kind !== "outside" ? JUST_DO_IT_PROMPT : "" },+ { id: "credential", label: "Credentials", text: credentialPrompt }, { id: "just-do-it", label: "Full access", text: approvalModeForTurn(bot, commsDepth > 0, threadId) === "full" && !isUnattended(bot.id, threadId) && coordinationNode?.origin?.kind !== "outside" ? JUST_DO_IT_PROMPT : "" },{ id: "recall", label: "Recall", text: recallPrompt },{ id: "routine", label: "Routines", text: routinePrompt },{ id: "active-routines", label: "Active automations", text: integrations.agents && !confined && (!CLOUD_HOME || cloudOwnerOnlyThread(threadId)) ? activeRoutinesContext({diff --cc server/system-prompt.tsindex aac87ff35f,1abd0e15f0..89a100b3c1--- a/server/system-prompt.ts+++ b/server/system-prompt.ts@@@ -269,13 -264,13 +269,13 @@@ export function customMcpPrompt(names:: ` The MCP server "${name}" is off for you because it doesn't start for you (${error}); it is tried again on its own.`)).join("");return mounted + left;}- /** At Full access ("Just do it") nothing a bot can settle waits on the person; the cheapest way to find something out+ /** At Full access 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. Find out from what you know, a connected app, the web, a signed-in browser, then the computer; take sensible defaults for the rest, carry on, and say in one line what you chose. Ask only for what only they can do: a sign-in, payment, secret or account of theirs. If they ask (here or in your instructions) that you check with them first, ask clarifying questions or not assume, do that instead: ask everything in one message and wait for their answers before starting.";- " Full access 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.";++ " Full access is on: do not stop to ask the person to confirm a step or choose between options. Find out from what you know, a connected app, the web, a signed-in browser, then the computer; take sensible defaults for the rest, carry on, and say in one line what you chose. Ask only for what only they can do: a sign-in, payment, secret or account of theirs. If they ask (here or in your instructions) that you check with them first, ask clarifying questions or not assume, do that instead: ask everything in one message and wait for their answers before starting.";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.";+ " Missing a supported API key the task needs? request_credential makes a secure credential request (a 1Password service account token too: credential_id onePasswordToken). Before requesting a computer-provider key, check configured targets with select_computer (an existing self-hosted VPS needs no Boat credentials); never request another provider's key just because a task mentions cloud. Any other secret (Stripe or npm token, 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 chat: suggest one when a task needs a service you can't reach; add, turn on or change one once the person asks or agrees. The secure card shows in the desktop app or a freshly QR-paired mobile app; never claim it opened unless the request succeeded, and never ask the user to paste credentials into chat.";/** A day: a long command that keeps working is not cut short. The turn watchdog stops one whose processes show neither* output nor CPU use for its tool limit (OMB_TOOL_STALL_MS, two hours) and names it as looking stuck. */export const BASH_MAX_TIMEOUT_MS = 24 * 60 * 60_000;