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 #7748 from milind-soni/train/nov27-e2
Milind Sonif750ddc7ab2a
diff --cc server/drivers/claude.tsindex 2fffc269bd,ccbe9a2786..3a73e5539d--- a/server/drivers/claude.ts+++ b/server/drivers/claude.ts@@@ -191,25 -191,8 +191,8 @@@ export function autoCompactWindow(env:return String(Math.min(1_000_000, Math.max(100_000, Math.floor(parsed))));}-const DEFAULT_AUTOCOMPACT_TOKENS = 200_000;+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- * 1.0.60, --setting-sources 1.0.122, --autocompact 2.1.122. */- export const CLAUDE_FLAG_FLOORS = {- "--strict-mcp-config": [1, 0, 60],- "--setting-sources": [1, 0, 122],- "--autocompact": [2, 1, 122],- "--system-prompt-snapshot": [2, 1, 267],- // 2.1.248 takes --restricted; 2.1.257 honours blockReadsOutsideWorkingDirectories.- "--restricted": [2, 1, 257],- // Keep-warm pings only. Not bisected: both are in every 2.1 build checked.- "--fork-session": [2, 1, 0],- "--no-session-persistence": [2, 1, 0],- // Background calls. Not bisected: the guest path passes it from 2.1.257.- "--tools": [2, 1, 257],- } as const satisfies Record<string, ClaudeCliVersion>;-const withWhy = (refusal: string, why: string | undefined) => why ? `${refusal} ${why}` : refusal;/** Probed on Claude Code 2.1.284 in `default` mode: without this list, built-in "read-only" Bash