Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
feat(engines): add OMP over ACP
fenglin.liuacf49310a7b6
diff --git a/apps/docs/content/docs/providers/index.mdx b/apps/docs/content/docs/providers/index.mdxindex a06fc4db9d..f099226c03 100644--- a/apps/docs/content/docs/providers/index.mdx+++ b/apps/docs/content/docs/providers/index.mdx@@ -26,6 +26,7 @@ MausBot does not proxy every message through its own model account. It starts su| Qwen | Qwen CLI login | ACP integration || Hermes | Hermes CLI login | ACP integration || Pi | Pi CLI login | Native driver |+| OMP | `omp login` or OMP's own provider configuration | ACP driver with live models, thinking choices, approvals, and session resume |Additional driver instances can be declared in local configuration. Unavailable engines remain visible with a reason instead of crashing the provider fleet.@@ -35,6 +36,8 @@ Command Code runs the official Command Code CLI (`npm install -g command-code`,Kiro runs the official Kiro CLI (`curl -fsSL https://cli.kiro.dev/install | bash` on macOS and Linux) in its ACP mode with its V3 engine (`kiro-cli acp --agent-engine=v3`) and bills the Kiro account `kiro-cli login` signed in, or the Kiro Pro key in `KIRO_API_KEY`. Its picker lists every model the account offers, plus **Kiro default**, which keeps the model picked in Kiro itself. Ask turns Kiro's Autopilot off, so each write or command waits for approval in the app; Full access turns Autopilot on.+OMP runs the official Oh My Pi CLI (`npm install -g @oh-my-pi/pi-coding-agent`) through `omp acp`. Run `omp login` or configure providers in `~/.omp/agent/models.yml`; OMP keeps its own credentials. The picker lists OMP's advertised models and their thinking choices, plus **OMP default (configured)**, which leaves the model selected in OMP itself. Threads resume their native OMP sessions, and permission prompts use MausBot's approval cards.+To use OpenRouter, Fireworks AI, DeepSeek, Cline, or your own OpenAI- or Anthropic-compatible service, see [Other model providers](./model-providers.mdx).Codex models come from the signed-in CLI's live model list. If that list cannot be read, the picker shows an offline fallback that includes GPT-6 Astra, Sol, and Luna with availability marked unverified. An older CLI may not expose newer models; MausBot checks for a newer stable Codex release and offers an update command for the configured executable. Updating the CLI does not grant model access to an account.diff --git a/apps/docs/content/docs/providers/model-providers.mdx b/apps/docs/content/docs/providers/model-providers.mdxindex 30d4fb772f..a2433ed8fc 100644--- a/apps/docs/content/docs/providers/model-providers.mdx+++ b/apps/docs/content/docs/providers/model-providers.mdx@@ -26,7 +26,7 @@ The Cline row lists its hosted model service. To run Cline's own coding agent,use the [Cline engine](#cline-engine).Other engines (Antigravity, Cursor, Gemini, Qwen, Grok, Droid, Kimi, Hermes,-Pi and custom agents) use their own sign-in.+Pi, OMP and custom agents) use their own sign-in.Keys you export in your shell (`~/.zshrc`, `~/.bashrc`) don't reach thedesktop app when you open it from the Dock, Finder or an app menu: it copiesdiff --git a/docs/analytics.md b/docs/analytics.mdindex 397889a388..4fca948d17 100644--- a/docs/analytics.md+++ b/docs/analytics.md@@ -50,7 +50,7 @@ Properties are counts, `true` or `false`, or words from fixed lists in the app's| List | Values || --- | --- || Key provider | `anthropic`, `openai`, `openrouter`, `openai_compat`, `xai`, `mistral`, `cerebras`, `groq`, `greenference`, `modelgo`, `meta`, `boat`, `composio`, `opencode_go`, `custom_endpoint`, `elevenlabs`, `fish_audio`, `jev`, `openrouter_decider`, `openai_image`, `custom_image`, `openai_live`, `onepassword`, `treg`, `postiz` |-| Engine | `claude`, `codex`, `gemini`, `cursor`, `opencode`, `qwen`, `hermes`, `cline`, `custom_acp`, `pi`, `openai_compat`, `grok`, `grok_api`, `kimi`, `droid`, `antigravity`, `minimax`, `mistral`, `cerebras`, `groq`, `greenference`, `modelgo`, `meta`, `muse_code`, `deepseek`, `copilot`, `command_code`, `kiro` |+| Engine | `claude`, `codex`, `gemini`, `cursor`, `opencode`, `qwen`, `hermes`, `cline`, `custom_acp`, `pi`, `openai_compat`, `grok`, `grok_api`, `kimi`, `droid`, `antigravity`, `minimax`, `mistral`, `cerebras`, `groq`, `greenference`, `modelgo`, `meta`, `muse_code`, `deepseek`, `copilot`, `command_code`, `kiro`, `omp` || App | The 24 apps Connected apps lists by default: `slack`, `github`, `gmail`, `googlecalendar`, `googlesheets`, `googledocs`, `googledrive`, `notion`, `linear`, `sentry`, `posthog`, `discord`, `twitter`, `reddit`, `zapier`, `hubspot`, `salesforce`, `jira`, `asana`, `trello`, `dropbox`, `airtable`, `figma`, `stripe`. Every other app is `other`. || Starting role | `assistant`, `inbox`, `research`, `coder`, `community`, `ops` || Cloud plan | `starter`, `personal`, `pro`, `max` |diff --git a/docs/verification/engines-ui.md b/docs/verification/engines-ui.mdindex 8e407727de..7300dc9771 100644--- a/docs/verification/engines-ui.md+++ b/docs/verification/engines-ui.md@@ -47,7 +47,7 @@ recreating a removed fixture directory.6. Expand Kimi to find **Install Kimi on this server**, and OpenCode to find**Update OpenCode on this server**. Click each and confirm the fixture errorappears with its button usable again. Terminal commands remain under- **Prefer a terminal?**. These clicks never perform a real installation.+ **Prefer a terminal?**. Check that OMP appears as a custom engine beside Pi. These clicks never perform a real installation.7. Expand Claude and use **Add another Claude account** inside its card. Enteran account name, collapse/reopen the card, and confirm the draft remains.Cancel, then repeat with **Add another ChatGPT account** in the ChatGPT card.diff --git a/docs/verification/engines.md b/docs/verification/engines.mdindex 59cecb4acf..ee095b9477 100644--- a/docs/verification/engines.md+++ b/docs/verification/engines.md@@ -49,6 +49,18 @@ prove real OAuth login or native Windows execution.provider.- Model-picker rendering is Electron UI and remains outside this first map.+## OMP (Oh My Pi)++Install with `npm install -g @oh-my-pi/pi-coding-agent`, then run `omp login` or configure a provider in `~/.omp/agent/models.yml`. OpenMausBot launches `omp acp`, discovers its advertised models and per-model thinking choices, and resumes each thread's native OMP session. OMP remains responsible for its own provider credentials and approvals; OpenMausBot answers ACP permission requests through the normal approval cards.++```sh+pnpm exec vitest run server/drivers/acp/omp.test.ts server/drivers/acp/custom-model-catalog.test.ts server/runtime/capabilities.test.ts server/drivers/tool-scope-coverage.test.ts server/agents-bridge-switch.test.ts server/engine-updates.test.ts server/built-in-instances.test.ts src/lib/analytics-allowlist.test.ts server/engine-memory.test.ts+```++The contract tests use the repository's fake ACP CLI and disposable folders. They cover fresh and existing fleets, catalogs larger than 128 models without per-model discovery prompts, temporary discovery-session cleanup, model selection, local credential forwarding and denied permissions. Model discovery uses `PI_CODING_AGENT_SESSION_DIR` in a temporary directory so refreshes do not add empty sessions to the person's OMP history.++The real 18.13.1 CLI was also checked with isolated homes and keyless synthetic providers: ACP initialization and authentication, model and thinking selection, a 2,000-model catalog, discovery-session isolation, a streamed turn through the production driver, and a second turn after recreating that driver with the same native session. The loopback provider received both turns and the resumed request contained the first turn's history. These checks do not prove a real provider account, a paid turn, native Windows behavior or packaged desktop integration.+## Slow or empty CLI version responses```shdiff --git a/scripts/verify-engines-ui.ts b/scripts/verify-engines-ui.tsindex 6c4844aaab..ce69068d5b 100644--- a/scripts/verify-engines-ui.ts+++ b/scripts/verify-engines-ui.ts@@ -31,6 +31,7 @@ const instances: InstanceInfo[] = [["hermes", "hermesAgent", "Hermes", false, ""],["qwen", "qwenAgent", "Qwen", false, ""],["pi", "piAgent", "Pi", false, ""],+ ["omp", "ompAgent", "OMP", false, ""],["deepseek", "deepseekAgent", "DeepSeek Harness", false, ""],["githubCopilot", "copilotAgent", "GitHub Copilot", true, "1.0.103"],["commandCode", "commandCodeAgent", "Command Code", true, "1.88.4"],@@ -42,6 +43,7 @@ const instances: InstanceInfo[] = [models: { default: "fixture", options: [] },install: { command: { darwin: "echo 'Isolated preview — no installation'", linux: "echo 'Isolated preview — no installation'", win32: "echo Isolated preview — no installation" } },}));+instances.find((instance) => instance.instanceId === "omp")!.access = "custom";instances[0].snapshot.account = { email: "[email protected]" };instances[0].claudeAccount = { configDir: "", isDefault: true, signInCommand: "echo 'Preview only'", signInShell: "sh" };instances[1].authentication = { method: "device-code", signOut: true };diff --git a/server/agents-bridge-switch.test.ts b/server/agents-bridge-switch.test.tsindex b032b5bb00..7a3af60945 100644--- a/server/agents-bridge-switch.test.ts+++ b/server/agents-bridge-switch.test.ts@@ -136,7 +136,7 @@ describe("which engines a turn is bridged on", () => {it.each([// ACP agents keep their own permissions, Grok among them["grokAgent"], ["geminiAgent"], ["qwenAgent"], ["kimiAgent"], ["droidAgent"], ["cursorAgent"], ["clineAgent"], ["copilotAgent"], ["hermesAgent"],- ["opencodeGo"], ["antigravityAgent"], ["customAcp"],+ ["opencodeGo"], ["antigravityAgent"], ["customAcp"], ["ompAgent"],// not shown to qualify, and anything nobody has heard of["museCode"], ["someFutureDriver"], [""],])("does not bridge %s", (driverKind) => {diff --git a/server/drivers/acp/custom-model-catalog.ts b/server/drivers/acp/custom-model-catalog.tsindex 1596d58431..2eeeb6ceb5 100644--- a/server/drivers/acp/custom-model-catalog.ts+++ b/server/drivers/acp/custom-model-catalog.ts@@ -24,6 +24,10 @@ export interface AcpDiscoveryOptions {custom?: boolean;/** Switch to each model to read its own variants. False stops after session/new. */variants?: boolean;+ /** Above this catalog size, read only the current model's variants and skip per-model switches. */+ variantLimit?: number;+ /** Maximum advertised models accepted before discovery refuses the catalog. */+ maxModels?: number;/** The catalog default when the agent offers it; otherwise the session's current model. */default?: string;/** Sent as `clientCapabilities._meta` in initialize, as a turn session sends it, so both see the same model list. */@@ -206,7 +210,7 @@ export async function discoverAcpModels(sessionId = rawSessionId;const modelOption = acpModelOption(initial);if (!modelOption?.options.length) throw new Error("The ACP agent did not advertise any models. The previous catalog was kept.");- if (modelOption.options.length > MAX_MODELS) throw new Error("The ACP model catalog exceeded the discovery limit.");+ if (modelOption.options.length > (discovery.maxModels ?? MAX_MODELS)) throw new Error("The ACP model catalog exceeded the discovery limit.");const mark = discovery.custom ? { custom: true } : {};const { passthrough } = discovery;const options: ModelCatalog["options"] = passthrough ? [{ ...passthrough, ...mark }] : [];@@ -219,7 +223,7 @@ export async function discoverAcpModels(let confirmed: unknown;if (model.id === modelOption.currentValue) {confirmed = initial;- } else if (discovery.variants !== false) {+ } else if (discovery.variants !== false && modelOption.options.length <= (discovery.variantLimit ?? Number.POSITIVE_INFINITY)) {const previousUpdate = updateSequence;try {const response = modelOption.configIddiff --git a/server/drivers/acp/omp.test.ts b/server/drivers/acp/omp.test.tsnew file mode 100644index 0000000000..e9dccd3c38--- /dev/null+++ b/server/drivers/acp/omp.test.ts@@ -0,0 +1,128 @@+import { existsSync, mkdtempSync, readFileSync } from "node:fs";+import { tmpdir } from "node:os";+import { dirname, join } from "node:path";+import { fileURLToPath } from "node:url";+import { afterEach, beforeEach, describe, expect, it } from "vitest";++import { ensureDirs, instanceConfigs } from "../../config.ts";+import type { ProviderInstance } from "../../contracts.ts";+import { removeTempDir } from "../../testing/cleanup.ts";+import { recordEvents, type EventRecorder } from "../../testing/events.ts";+import { BUILT_IN_DRIVERS } from "../builtIn.ts";+import { OmpAgentDriver, resolveOmpModels } from "./omp.ts";++const FAKE_CLI = join(dirname(fileURLToPath(import.meta.url)), "../../testing/fake-acp-cli.ts");+const MODELS = "fixture/alpha,fixture/beta";+const VARIANTS = JSON.stringify({+ "fixture/beta": { id: "thinking", currentValue: "high", options: [{ value: "low", name: "Low" }, { value: "high", name: "High" }] },+});++describe("OMP ACP driver", () => {+ let scratch: string;+ let instance: ProviderInstance | undefined;+ let recorder: EventRecorder | undefined;++ beforeEach(() => {+ ensureDirs();+ scratch = mkdtempSync(join(tmpdir(), "omb-omp-contract-"));+ });++ afterEach(async () => {+ recorder?.stop();+ await instance?.dispose();+ instance = undefined;+ recorder = undefined;+ await removeTempDir(scratch);+ });++ async function create(environment: Record<string, string> = {}) {+ instance = await OmpAgentDriver.create({+ instanceId: `omp-contract-${Math.random().toString(36).slice(2)}`,+ displayName: "OMP",+ enabled: true,+ environment: {+ FAKE_ACP_MODELS: MODELS,+ FAKE_ACP_AUTH_METHOD: "agent",+ FAKE_ACP_IMAGE_CAPABILITY: "1",+ FAKE_ACP_VERSION: "omp/18.13.1",+ FAKE_ACP_DUMP: join(scratch, "launch.json"),+ FAKE_ACP_RPC_DUMP: join(scratch, "rpc.json"),+ ...environment,+ },+ config: { cli: FAKE_CLI, fullAuto: false },+ });+ recorder = recordEvents(instance.adapter);+ return { instance, recorder };+ }++ it("is a built-in custom engine in fresh and existing fleets", () => {+ expect(BUILT_IN_DRIVERS.some((driver) => driver.driverKind === "ompAgent")).toBe(true);+ expect(instanceConfigs({}).omp?.driver).toBe("ompAgent");+ expect(instanceConfigs({ instances: { claude: { driver: "claudeAgent" } } }).omp?.driver).toBe("ompAgent");+ expect(OmpAgentDriver.metadata).toMatchObject({ displayName: "OMP", access: "custom" });+ });++ it("discovers more than 128 models without switching each one or keeping a discovery session", async () => {+ const models = Array.from({ length: 130 }, (_, index) => `fixture/model-${index}`);+ const dump = join(scratch, "discovery.json");+ const rpc = join(scratch, "discovery-rpc.json");+ const catalog = await resolveOmpModels({+ ...process.env,+ FAKE_ACP_MODELS: models.join(","),+ FAKE_ACP_DUMP: dump,+ FAKE_ACP_RPC_DUMP: rpc,+ PI_CODING_AGENT_SESSION_DIR: join(scratch, "persons-sessions"),+ }, { cli: FAKE_CLI });++ expect(catalog.default).toBe("agent-default");+ expect(catalog.options.map((option) => option.id)).toEqual(["agent-default", ...models]);+ expect(catalog.options.every((option) => option.custom)).toBe(true);+ expect(JSON.parse(readFileSync(rpc, "utf8"))).not.toContain("session/set_config_option");+ const launch = JSON.parse(readFileSync(dump, "utf8"));+ expect(launch.argv).toEqual(["acp"]);+ expect(launch.env.PI_CODING_AGENT_SESSION_DIR).not.toBe(join(scratch, "persons-sessions"));+ expect(existsSync(launch.env.PI_CODING_AGENT_SESSION_DIR)).toBe(false);+ });++ it("reads each model's thinking options for a small catalog", async () => {+ const catalog = await resolveOmpModels({ ...process.env, FAKE_ACP_MODELS: MODELS, FAKE_ACP_VARIANTS: VARIANTS }, { cli: FAKE_CLI });+ expect(catalog.options.find((option) => option.id === "fixture/beta")?.variants).toEqual([+ { id: "low", label: "Low" }, { id: "high", label: "High" },+ ]);+ });++ it("starts nothing when the instance is created", async () => {+ await create();+ expect(existsSync(join(scratch, "launch.json"))).toBe(false);+ });++ it("runs `omp acp` with its local credentials and the picked model", async () => {+ const { instance, recorder } = await create({ ANTHROPIC_API_KEY: "engine-fixture-key", OPENCODE_API_KEY: "workspace-fixture-key" });+ const { turnId } = await instance.adapter.sendTurn({+ threadId: "omp-chat", text: "hello", model: "fixture/beta", approvalMode: "ask",+ });+ await recorder.until((event) => event.type === "turn.completed" && event.turnId === turnId);++ expect(recorder.events.every((event) => event.provider === "ompAgent")).toBe(true);+ expect(JSON.parse(readFileSync(join(scratch, "rpc.json"), "utf8"))).toContain("authenticate");+ const launch = JSON.parse(readFileSync(join(scratch, "launch.json"), "utf8"));+ expect(launch.argv).toEqual(["acp"]);+ expect(launch.env.ANTHROPIC_API_KEY).toBe("engine-fixture-key");+ expect(launch.env.OPENCODE_API_KEY).toBeUndefined();+ const promptRows = readFileSync(join(scratch, "launch.json.prompts.jsonl"), "utf8").trim().split("\n");+ expect(JSON.parse(promptRows.at(-1)!)).toMatchObject({ model: "fixture/beta" });+ });++ it("turns OMP's session/request_permission into an approval card and answers with the person's choice", async () => {+ const answer = join(scratch, "permission.txt");+ const { instance, recorder } = await create({ FAKE_ACP_MODE: "permission", FAKE_ACP_PERMISSION_ANSWER: answer });+ const { turnId } = await instance.adapter.sendTurn({+ threadId: "omp-permission", text: "edit", model: "agent-default", approvalMode: "ask",+ });+ const ask = await recorder.until((event) => event.type === "request.opened");+ expect(ask.provider).toBe("ompAgent");+ expect(await instance.adapter.respondToRequest("omp-permission", ask.requestId!, { behavior: "deny" })).toBe("rejected");+ await recorder.until((event) => event.type === "turn.completed" && event.turnId === turnId);+ expect(readFileSync(answer, "utf8")).toBe("reject");+ });+});diff --git a/server/drivers/acp/omp.ts b/server/drivers/acp/omp.tsnew file mode 100644index 0000000000..b3a99c2348--- /dev/null+++ b/server/drivers/acp/omp.ts@@ -0,0 +1,63 @@+// OMP over ACP (`omp acp`), checked against 18.13.1: initialize offers the `agent` auth method,+// session load, images and HTTP MCP; session/new exposes model and model-specific thinking options.+import { mkdtemp, rm } from "node:fs/promises";+import { tmpdir } from "node:os";+import { join } from "node:path";++import type { ModelCatalog } from "../../contracts.ts";+import { PROVIDER_CREDENTIAL_ENV, WORKSPACE_CREDENTIAL_ENV } from "../../credential-env.ts";+import { createAcpDriver, type AcpConfig, type AcpSupport } from "./core.ts";+import { discoverAcpModels, type AcpDiscoveryOptions } from "./custom-model-catalog.ts";++const EMPTY: ModelCatalog = { default: "", options: [] };+const AGENT_DEFAULT = { id: "agent-default", label: "OMP default (configured)" };+const WORKSPACE_CREDENTIALS = new Set<string>(WORKSPACE_CREDENTIAL_ENV);+const CREDENTIAL_ENV = PROVIDER_CREDENTIAL_ENV.filter((key) => !WORKSPACE_CREDENTIALS.has(key));+// ponytail: variant probing stops at 128 models; add cached background surveys if large catalogs need every list upfront.+const DISCOVERY: AcpDiscoveryOptions = { passthrough: AGENT_DEFAULT, custom: true, variants: true, variantLimit: 128, maxModels: 4096 };++export async function resolveOmpModels(+ env: Record<string, string | undefined>,+ config: Pick<AcpConfig, "cli">,+): Promise<ModelCatalog> {+ const sessionDir = await mkdtemp(join(tmpdir(), "omb-omp-discovery-"));+ try {+ return await discoverAcpModels({ ...env, PI_CODING_AGENT_SESSION_DIR: sessionDir }, config.cli, ["acp"], DISCOVERY);+ } finally {+ await rm(sessionDir, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 }).catch(() => undefined);+ }+}++const SUPPORT: AcpSupport = {+ driverKind: "ompAgent",+ displayName: "OMP",+ access: "custom",+ models: EMPTY,+ defaultCli: "omp",+ cliVersion: /\bomp\//i,+ nativeSource: "omp.acp",+ images: true,+ loginNote: "OMP has no usable models. Run `omp login` or configure a provider in `~/.omp/agent/models.yml`, then check again.",+ install: {+ command: {+ darwin: "npm install -g @oh-my-pi/pi-coding-agent",+ linux: "npm install -g @oh-my-pi/pi-coding-agent",+ win32: "npm install -g @oh-my-pi/pi-coding-agent",+ },+ needsNode: true,+ docsUrl: "https://omp.sh",+ signInCommand: "omp login",+ },+ spawnArgs: () => ["acp"],+ credentialEnv: CREDENTIAL_ENV,+ resolveModels: resolveOmpModels,+ resolveModelsOnCreate: false,+ selectModel: { configId: "model", agentDefault: AGENT_DEFAULT.id },+ modelVariants: true,+ ownMcpOverHttp: true,+ pickAuthMethod: (methods) => methods.some((method) => method.id === "agent") ? "agent" : null,+ authFailure: "continue",+ isAuthenticated: () => true,+};++export const OmpAgentDriver = createAcpDriver(SUPPORT);diff --git a/server/drivers/builtIn.ts b/server/drivers/builtIn.tsindex 808f2349eb..77ee8a2ffc 100644--- a/server/drivers/builtIn.ts+++ b/server/drivers/builtIn.ts@@ -17,6 +17,7 @@ import { ClineAgentDriver } from "./acp/cline.ts";import { CopilotAgentDriver } from "./acp/copilot.ts";import { CommandCodeAgentDriver } from "./acp/command-code.ts";import { KiroAgentDriver } from "./acp/kiro.ts";+import { OmpAgentDriver } from "./acp/omp.ts";import { OpenAICompatDriver } from "./openai-compat.ts";import { PiDriver } from "./pi.ts";import { MistralDriver } from "./mistral.ts";@@ -42,6 +43,7 @@ export const BUILT_IN_DRIVERS: readonly AnyProviderDriver[] = [CopilotAgentDriver,CommandCodeAgentDriver,KiroAgentDriver,+ OmpAgentDriver,CustomAcpDriver,PiDriver,OpenAICompatDriver,diff --git a/server/engine-memory.ts b/server/engine-memory.tsindex 7b3dae2da5..bd6c71d388 100644--- a/server/engine-memory.ts+++ b/server/engine-memory.ts@@ -29,7 +29,7 @@ const STALL_PERCENT = 20;const MINUTE_MS = 60_000, DAY_MINUTES = 24 * 60;/** Engines that run each thread's turns in processes of their own. */export const ENGINE_PROCESS_KINDS: ReadonlySet<string> = new Set(["claudeAgent", "codex", "opencodeGo", "grokAgent", "geminiAgent", "kimiAgent",- "droidAgent", "cursorAgent", "qwenAgent", "hermesAgent", "clineAgent", "copilotAgent", "commandCodeAgent", "kiroAgent", "customAcp", "piAgent", "antigravityAgent"]);+ "droidAgent", "cursorAgent", "qwenAgent", "hermesAgent", "clineAgent", "copilotAgent", "commandCodeAgent", "kiroAgent", "customAcp", "piAgent", "ompAgent", "antigravityAgent"]);/** Chat-runtime engines (openai-chat.ts) have no process of their own, but each turn starts its MCP servers, each a Node process. */export const CHAT_RUNTIME_KINDS: ReadonlySet<string> = new Set(["openai-compat", "cerebras", "greenference", "grok", "groq", "meta", "minimax", "mistral", "modelgo"]);diff --git a/server/engine-versions.ts b/server/engine-versions.tsindex 34a26226f9..22dfb259de 100644--- a/server/engine-versions.ts+++ b/server/engine-versions.ts@@ -31,6 +31,7 @@ export const ENGINE_VERSIONS: Readonly<Record<string, EngineVersionPin>> = {copilotAgent: { target: "1.0.106", minimum: "1.0.103", acp: ["--acp", "--stdio"] },commandCodeAgent: { target: "1.88.4", minimum: "1.88.4", acp: ["acp"] },piAgent: { target: "1.5.0", minimum: "1.5.0" },+ ompAgent: { target: "18.13.1", minimum: "18.13.1", acp: ["acp"] },minimax: { target: "1.0.28", minimum: "1.0.28" },deepseekAgent: { target: "0.2.2-rc.1", minimum: "0.2.1-rc.2", acp: ["--profile", "acp"] },opencodeGo: { target: OPENCODE_STANDALONE.version, minimum: "1.19.4", acp: ["acp"], formerNpm: ["opencode-ai"] },diff --git a/server/instance-fleets.ts b/server/instance-fleets.tsindex e806e580fd..54c5c221a7 100644--- a/server/instance-fleets.ts+++ b/server/instance-fleets.ts@@ -51,6 +51,7 @@ export const DEFAULT_FLEET: InstanceConfigMap = {hermes: { driver: "hermesAgent" },cline: { driver: "clineAgent" },pi: { driver: "piAgent" },+ omp: { driver: "ompAgent" },};const CUSTOM_ONLY = {@@ -58,6 +59,7 @@ const CUSTOM_ONLY = {hermes: { driver: "hermesAgent" },cline: { driver: "clineAgent" },pi: { driver: "piAgent" },+ omp: { driver: "ompAgent" },} as const;/** Added to a saved fleet that holds a product engine (claude, grok or codex), when it lacks them. */diff --git a/server/runtime/capabilities.test.ts b/server/runtime/capabilities.test.tsindex bf0b494336..10e4981395 100644--- a/server/runtime/capabilities.test.ts+++ b/server/runtime/capabilities.test.ts@@ -14,6 +14,7 @@ const EXPECTED: Record<string, EngineCapabilities> = {claudeAgent: { resume: true, nativeReviewer: true, full: true, edits: true, subagents: false },codex: { resume: true, nativeReviewer: true, full: true, edits: false, subagents: false },piAgent: bare,+ ompAgent: bare,antigravityAgent: { resume: true, nativeReviewer: false, full: true, edits: true, subagents: false },grokAgent: { resume: true, nativeReviewer: true, full: true, edits: true, subagents: false },geminiAgent: { resume: true, nativeReviewer: false, full: true, edits: true, subagents: false },diff --git a/server/runtime/capabilities.ts b/server/runtime/capabilities.tsindex 3972a3bfe7..1fb8551749 100644--- a/server/runtime/capabilities.ts+++ b/server/runtime/capabilities.ts@@ -21,6 +21,7 @@ const ENGINES: Readonly<Record<string, EngineRow>> = {claudeAgent: { resume: true },codex: { resume: true },piAgent: { resume: true },+ ompAgent: { resume: true },antigravityAgent: { resume: true },grokAgent: { resume: true },geminiAgent: { resume: true },diff --git a/server/testing/fake-acp-cli.ts b/server/testing/fake-acp-cli.tsindex 52b06e22e0..176b2b5d50 100755--- a/server/testing/fake-acp-cli.ts+++ b/server/testing/fake-acp-cli.ts@@ -225,6 +225,7 @@ const dumpEnv = Object.fromEntries("PATH","HOME","USERPROFILE",+ "PI_CODING_AGENT_SESSION_DIR","TEMP","TMP","SystemRoot",diff --git a/shared/tool-scope-support.ts b/shared/tool-scope-support.tsindex 5a283e146d..4a6e495d75 100644--- a/shared/tool-scope-support.ts+++ b/shared/tool-scope-support.ts@@ -5,7 +5,7 @@ export const TOOL_SCOPE_SUPPORT = {grok: "native-and-mcp", grokAgent: "native-and-mcp", piAgent: "native-and-mcp","openai-compat": "native-and-mcp", mistral: "native-and-mcp", minimax: "native-and-mcp", cerebras: "native-and-mcp", groq: "native-and-mcp", greenference: "native-and-mcp", modelgo: "native-and-mcp", meta: "native-and-mcp",claudeAgent: "mcp", codex: "mcp", geminiAgent: "mcp", kimiAgent: "mcp", droidAgent: "mcp",- cursorAgent: "mcp", opencodeGo: "mcp", qwenAgent: "mcp", hermesAgent: "mcp", clineAgent: "mcp", copilotAgent: "mcp", commandCodeAgent: "mcp", kiroAgent: "mcp", deepseekAgent: "mcp", customAcp: "mcp", antigravityAgent: "mcp", museCode: "mcp",+ cursorAgent: "mcp", opencodeGo: "mcp", qwenAgent: "mcp", hermesAgent: "mcp", clineAgent: "mcp", copilotAgent: "mcp", commandCodeAgent: "mcp", kiroAgent: "mcp", ompAgent: "mcp", deepseekAgent: "mcp", customAcp: "mcp", antigravityAgent: "mcp", museCode: "mcp",} as const;export function assertToolScopeSupported(engine: string, value: unknown): ToolScope | undefined {diff --git a/src/lib/analytics-allowlist.ts b/src/lib/analytics-allowlist.tsindex 2150090b1b..2dae5a50d4 100644--- a/src/lib/analytics-allowlist.ts+++ b/src/lib/analytics-allowlist.ts@@ -32,7 +32,7 @@ export function credentialProvider(target: unknown): KeyProvider | "other" {export const ENGINE = ["claude", "codex", "gemini", "cursor", "opencode", "qwen", "hermes", "cline", "custom_acp", "pi", "openai_compat", "grok",- "grok_api", "kimi", "droid", "antigravity", "minimax", "mistral", "cerebras", "groq", "greenference", "modelgo", "meta", "muse_code", "deepseek", "copilot", "command_code", "kiro",+ "grok_api", "kimi", "droid", "antigravity", "minimax", "mistral", "cerebras", "groq", "greenference", "modelgo", "meta", "muse_code", "deepseek", "copilot", "command_code", "kiro", "omp",] as const;export type Engine = (typeof ENGINE)[number];@@ -41,7 +41,7 @@ const ENGINE_BY_DRIVER = new Map<string, Engine>(Object.entries({qwenAgent: "qwen", hermesAgent: "hermes", clineAgent: "cline", customAcp: "custom_acp", piAgent: "pi","openai-compat": "openai_compat", grokAgent: "grok", grok: "grok_api", kimiAgent: "kimi", droidAgent: "droid",antigravityAgent: "antigravity", minimax: "minimax", mistral: "mistral", cerebras: "cerebras", groq: "groq", greenference: "greenference", modelgo: "modelgo",- meta: "meta", museCode: "muse_code", deepseekAgent: "deepseek", copilotAgent: "copilot", commandCodeAgent: "command_code", kiroAgent: "kiro",+ meta: "meta", museCode: "muse_code", deepseekAgent: "deepseek", copilotAgent: "copilot", commandCodeAgent: "command_code", kiroAgent: "kiro", ompAgent: "omp",} satisfies Record<string, Engine>));export function engineForDriver(driverKind: unknown): Engine | "other" {diff --git a/src/lib/built-in-instances.ts b/src/lib/built-in-instances.tsindex 8ae79b940f..e9b7058afe 100644--- a/src/lib/built-in-instances.ts+++ b/src/lib/built-in-instances.ts@@ -4,5 +4,5 @@ export const BUILT_IN_INSTANCE_DRIVERS: Readonly<Record<string, string>> = {chatgpt: "codex", antigravity: "antigravityAgent", opencodeGo: "opencodeGo", openaiCompat: "openai-compat",mistral: "mistral", cerebras: "cerebras", groq: "groq", greenference: "greenference", modelgo: "modelgo", meta: "meta", museCode: "museCode", deepseek: "deepseekAgent", openai: "openai-compat",claudeApi: "claudeAgent", xaiApi: "grok", openrouter: "openai-compat", qwen: "qwenAgent", hermes: "hermesAgent",- cline: "clineAgent", pi: "piAgent", gemini: "geminiAgent",+ cline: "clineAgent", pi: "piAgent", omp: "ompAgent", gemini: "geminiAgent",};