Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
claude driver: keep claude.ts at its size pin
milind-soni87f989740823
diff --git a/server/drivers/claude.ts b/server/drivers/claude.tsindex 42ee6181bb..2fffc269bd 100644--- a/server/drivers/claude.ts+++ b/server/drivers/claude.ts@@ -181,8 +181,7 @@ export function readClaudeAuthSettings(}/** OMB_CLAUDE_AUTOCOMPACT: a token count, "auto" (the CLI's own window) or "off"; unset, 1M for the "Claude Opus 5.5 (1M)" pick- * (also as a gateway names it, after a slash or provider dot), else 200K.- * The CLI rejects a window outside 100k-1M as an argument error, so a configured value is clamped. */+ * (also as a gateway names it, after a slash or provider dot), else 200K. The CLI rejects a window outside 100k-1M as an argument error, so a configured value is clamped. */export function autoCompactWindow(env: NodeJS.ProcessEnv, model?: string | null): string | null {const raw = (env.OMB_CLAUDE_AUTOCOMPACT ?? "").trim().toLowerCase();if (raw === "off") return null;@@ -192,8 +191,7 @@ export function autoCompactWindow(env: NodeJS.ProcessEnv, model?: string | null)return String(Math.min(1_000_000, Math.max(100_000, Math.floor(parsed))));}-const DEFAULT_AUTOCOMPACT_TOKENS = 200_000;-const OPUS_1M_PICK = /(?:^|[/.])claude-opus-5-5\[1m\]$/;+const DEFAULT_AUTOCOMPACT_TOKENS = 200_000, OPUS_1M_PICK = /(?:^|[/.])claude-opus-5-5\[1m\]$/;/** The first Claude CLI to accept each flag; an unknown flag is a hard argument error. Checked* against the published binaries (the changelog never records --autocompact): --strict-mcp-config