Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import { disabledNativeSkillNames } from "../native-skill-choices.ts";
// Built-in Claude Code tools that work only in Claude Code's own terminal or app, yet ride every model call of a bot turn at
// about 4,900 tokens: Workflow runs in the background, which a turn turns off, and needs a person opting in at /workflows;
// ScheduleWakeup paces a /loop, where a bot has wait_until; ReportFindings draws in a host UI there is none of; ListAgents
// lists this machine's other Claude sessions. An engine or a guest turn that lists its own tools has left them out already,
// and a bot that inherits this machine's setup keeps them.
export const BUILT_INS_NO_BOT_CAN_USE = ["Workflow", "ScheduleWakeup", "ReportFindings", "ListAgents"] as const;
export function unusableBuiltIns(turn: { isolated: boolean; listsTools: boolean; guest: boolean }): readonly string[] {
return turn.isolated && !turn.listsTools && !turn.guest ? BUILT_INS_NO_BOT_CAN_USE : [];
}
/** A deny rule per native skill this bot switched off: Claude Code then refuses that skill both as a tool call and as a typed /name. */
export function claudeDisabledNativeSkillRules(botId: string | undefined): string[] {
return botId ? disabledNativeSkillNames(botId).map((name) => `Skill(${name})`) : [];
}