The Open Framework for Building Agents
feat(eve): default to Luna Fast with high reasoning (#4010)
Andrew Barba47c2844b7fa1
diff --git a/.changeset/default-luna-fast-high.md b/.changeset/default-luna-fast-high.mdnew file mode 100644index 000000000..46988cdc8--- /dev/null+++ b/.changeset/default-luna-fast-high.md@@ -0,0 +1,5 @@+---+"eve": patch+---++eve now defaults to `openai/gpt-6-luna-fast` with high reasoning when no model is configured, including newly initialized agents; explicit model and reasoning selections remain unchanged. The terminal UI shows compact model labels with dot-separated reasoning and a `⚡︎` speed marker in place of a trailing `-fast` suffix.diff --git a/.changeset/sparing-task-wait.md b/.changeset/sparing-task-wait.mdnew file mode 100644index 000000000..98628b9b4--- /dev/null+++ b/.changeset/sparing-task-wait.md@@ -0,0 +1,5 @@+---+"eve": patch+---++Clarify that `task_wait` should be called sparingly, only to deliberately withhold a user-facing reply while waiting for a task result. Tasks keep running and their results reach the model without an explicit wait.diff --git a/README.md b/README.mdindex 91a590825..51b2c50d2 100644--- a/README.md+++ b/README.md@@ -45,7 +45,7 @@ npx eve@latest init my-agent```This creates a new `my-agent` directory, installs its dependencies, initializes Git, and starts-the interactive terminal UI.+the interactive terminal UI. The generated agent uses `openai/gpt-6-luna-fast` with high reasoning.To start with another AI Gateway model, pass its model ID:@@ -53,6 +53,8 @@ To start with another AI Gateway model, pass its model ID:npx eve@latest init my-agent --model openai/gpt-5.6-terra```+Passing `--model` without `--reasoning` uses the provider's default reasoning. Pass `--reasoning` to set it explicitly.+To add eve to an existing project, pass a path:```bash@@ -93,7 +95,8 @@ Choose the model in `agent/agent.ts`:import { defineAgent } from "eve";export default defineAgent({- model: "spacexai/grok-4.7",+ model: "openai/gpt-6-luna-fast",+ reasoning: "high",});```diff --git a/apps/benchmarks/evals/author-002-new-project/EVAL.ts b/apps/benchmarks/evals/author-002-new-project/EVAL.tsindex e42ed047a..dbda253d8 100644--- a/apps/benchmarks/evals/author-002-new-project/EVAL.ts+++ b/apps/benchmarks/evals/author-002-new-project/EVAL.ts@@ -4,7 +4,7 @@ import { expect, test } from "vitest";const projectRoot = "wayfinder";-const defaultAgentModel = "spacexai/grok-4.7";+const defaultAgentModel = "openai/gpt-6-luna-fast";test("creates a complete eve project in place", () => {expect(existsSync(`${projectRoot}/agent/channels/eve.ts`)).toBe(true);diff --git a/apps/docs/app/[lang]/(home)/components/file-tree.tsx b/apps/docs/app/[lang]/(home)/components/file-tree.tsxindex cf24bc67e..5561f214f 100644--- a/apps/docs/app/[lang]/(home)/components/file-tree.tsx+++ b/apps/docs/app/[lang]/(home)/components/file-tree.tsx@@ -59,7 +59,8 @@ city in the world.`,code: `import { defineAgent } from "eve";export default defineAgent({- model: "spacexai/grok-4.7",+ model: "openai/gpt-6-luna-fast",+ reasoning: "high",});`,},{@@ -169,7 +170,8 @@ export default defineMcpClientConnection({export default defineAgent({description: "Investigate questions",- model: "spacexai/grok-4.7",+ model: "openai/gpt-6-luna-fast",+ reasoning: "high",});`,},{diff --git a/docs/agent-config.md b/docs/agent-config.mdindex cf8afb282..26ecae764 100644--- a/docs/agent-config.md+++ b/docs/agent-config.md@@ -21,7 +21,7 @@ For a static AI Gateway model ID, you can make the same source change from theproject root with `eve set model anthropic/claude-opus-5.5` or from the localdev TUI with `/model anthropic/claude-opus-5.5`.-The root `agent.ts` can be omitted when no runtime config is needed. eve then selects its default `agent.ts` source at the same slot, configured with `spacexai/grok-4.7`; authoring the file replaces that source.+The root `agent.ts` can be omitted when no runtime config is needed. eve then selects its default `agent.ts` source at the same slot, configured with `openai/gpt-6-luna-fast` and `reasoning: "high"`; authoring the file replaces that source.When `agent.ts` is present, `model` is required.A config that selects a static Gateway model is compile-only. A config that contains a dynamic model or a direct-provider `LanguageModel` remains a runtime entry because eve must resolve that authored value while the agent runs. See [Authored module lifecycle](./reference/typescript-api#authored-module-lifecycle).@@ -122,6 +122,8 @@ selected for that model call.## Reasoning effort+In an authored `agent.ts` with a static model, omitting `reasoning` uses the provider's default.+Set `reasoning` to control the model's reasoning effort through AI SDK'sprovider-agnostic option:diff --git a/docs/guides/dev-tui.md b/docs/guides/dev-tui.mdindex 6da0616c8..af95e1feb 100644--- a/docs/guides/dev-tui.md+++ b/docs/guides/dev-tui.md@@ -9,7 +9,9 @@ description: "Use eve locally or connect to a deployed agent from an interactiveeve dev```-The footer shows the active model and connection separated by dots. Vercel account connections show the team slug once it resolves; the local server port is omitted.+The footer shows the active model, reasoning level when set, speed indicator, and connection separated by dots, such as `gpt-6-luna · high · ⚡︎`. The model label omits the provider prefix and removes `-fast` only at the end. A single `⚡︎` marks a model with that suffix or explicit **Fast** mode; terminals without Unicode support use an ASCII marker.++Vercel account connections show the team slug once it resolves; the local server port is omitted.The transcript remains in your terminal scrollback after you exit. Run `/help` in the UI to see the commands available in the current session.@@ -73,7 +75,7 @@ Changes apply together after the final choice, then the picker returns to chat.A successful login or model change takes effect on the next prompt.-Gateway connections default to `spacexai/grok-4.7`; OpenAI and ChatGPT default to `gpt-6-luna-fast`; Anthropic defaults to `claude-sonnet-5`. An explicitly authored compatible model stays selected. If a new default is unavailable, eve offers the connection's available models. Dynamic or custom model expressions must be edited in `agent.ts`.+Gateway connections default to `openai/gpt-6-luna-fast`; OpenAI and ChatGPT default to `gpt-6-luna-fast`; Anthropic defaults to `claude-sonnet-5`. An explicitly authored compatible model stays selected. If a new default is unavailable, eve offers the connection's available models. Dynamic or custom model expressions must be edited in `agent.ts`.## Add an integrationdiff --git a/docs/reference/cli.md b/docs/reference/cli.mdindex 6c7066b6e..f525b8cd2 100644--- a/docs/reference/cli.md+++ b/docs/reference/cli.md@@ -52,12 +52,12 @@ Existing packages do not need a target-selection prompt: run `eve init` from theAfter scaffolding in an interactive human terminal, eve opens the TUI directly. Pass `-n` or `--non-interactive` to return after scaffolding instead. It still installs dependencies and follows the normal Git setup behavior. Noninteractive and coding-agent invocations return without starting an interactive session. Fresh projects use the parent workspace's package manager when there is one; otherwise they use the manager that launched `eve init`.-| Flag | Type | Default | Description |-| ----------------------- | ------ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------ |-| `--model <model>` | string | `openai/gpt-6-luna-fast` | Set the root agent's AI Gateway model ID. |-| `--reasoning <effort>` | enum | provider default | Set reasoning to `none`, `minimal`, `low`, `medium`, `high`, or `xhigh`. `provider-default` leaves the field unauthored. |-| `--channel-web-nextjs` | flag | off | Add the Web Chat app (Next.js). Not for existing projects — run `eve add channel/web` there instead. |-| `-n, --non-interactive` | flag | off | Scaffold and install dependencies without starting development. |+| Flag | Type | Default | Description |+| ----------------------- | ------ | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |+| `--model <model>` | string | `openai/gpt-6-luna-fast` | Set the root agent's AI Gateway model ID. |+| `--reasoning <effort>` | enum | `high` without `--model`; otherwise provider default | Set reasoning to `none`, `minimal`, `low`, `medium`, `high`, or `xhigh`. `provider-default` leaves the field unauthored. |+| `--channel-web-nextjs` | flag | off | Add the Web Chat app (Next.js). Not for existing projects — run `eve add channel/web` there instead. |+| `-n, --non-interactive` | flag | off | Scaffold and install dependencies without starting development. |## `eve extension`diff --git a/docs/tools/tasks.md b/docs/tools/tasks.mdindex 8409c7989..ca16a3f42 100644--- a/docs/tools/tasks.md+++ b/docs/tools/tasks.md@@ -161,9 +161,14 @@ text is cut and marked `[truncated]`.<task_result id="deploy-4hd8sa" tool="deploy" status="completed">{"url":"https://…"}</task_result>```-**`task_wait({ timeoutSeconds? })`** parks the turn until any task has a result, a new message-arrives, or `timeoutSeconds` pass. `timeoutSeconds` is a whole number of at least 1, in seconds-like `sleep`. It returns at once when a result is already waiting. Waiting never stops a task. The+**`task_wait({ timeoutSeconds? })`** controls when the model replies. The model should call it+sparingly, only when it deliberately wants to withhold a message from the user while waiting for+a task result. Tasks keep running and their results reach the model without this call; the model+can reply now if the user should hear from it.++The call parks the turn until any task has a result, a new message arrives, or `timeoutSeconds`+pass. `timeoutSeconds` is a whole number of at least 1, in seconds like `sleep`. It returns at once+when a result is already waiting. Waiting never stops a task. Themodel reads which tasks settled and which are still working, for example:```textdiff --git a/packages/eve/src/cli/commands/agent-instructions.test.ts b/packages/eve/src/cli/commands/agent-instructions.test.tsindex c5a2588c4..d2e86fd65 100644--- a/packages/eve/src/cli/commands/agent-instructions.test.ts+++ b/packages/eve/src/cli/commands/agent-instructions.test.ts@@ -58,7 +58,7 @@ describe("initAgentInstructions", () => {describe("initAgentReadySummary", () => {it("reports the model and generated instructions path", () => {expect(stripAnsi(initAgentReadySummary(undefined, "/app"))).toBe(- "✓ Model spacexai/grok-4.7 (eve default)\n✓ Instructions /app/agent/instructions.md",+ "✓ Model openai/gpt-6-luna-fast (eve default)\n✓ Instructions /app/agent/instructions.md",);expect(stripAnsi(initAgentReadySummary("openai/gpt-5.5", "/app"))).toContain("✓ Model openai/gpt-5.5\n",@@ -67,7 +67,7 @@ describe("initAgentReadySummary", () => {it("reports the agents directory for a workspace", () => {expect(stripAnsi(initAgentReadySummary(undefined, "/app", { workspace: true }))).toBe(- "✓ Model spacexai/grok-4.7 (eve default)\n✓ Agents /app/agents",+ "✓ Model openai/gpt-6-luna-fast (eve default)\n✓ Agents /app/agents",);});});diff --git a/packages/eve/src/cli/commands/init-agent-workspace.ts b/packages/eve/src/cli/commands/init-agent-workspace.tsindex 23a6870a5..f1fea5ca0 100644--- a/packages/eve/src/cli/commands/init-agent-workspace.ts+++ b/packages/eve/src/cli/commands/init-agent-workspace.ts@@ -5,7 +5,7 @@ import pc from "#compiled/picocolors/index.js";import { assertValidPublicAgentName } from "#internal/agent-name.js";import { findEveProjectContext } from "#internal/project-context.js";-import { DEFAULT_AGENT_MODEL_ID } from "#shared/default-agent-model.js";+import { resolveInitAgentSettings } from "#shared/default-agent-model.js";import type { AgentReasoningDefinition } from "#shared/agent-definition.js";import { formatNodeEngineOverrideWarning } from "#setup/node-engine.js";import type { WorkspaceRootMutation } from "#setup/scaffold/workspace-root.js";@@ -61,7 +61,8 @@ async function writeWorkspaceAgent(`Cannot create agent ${JSON.stringify(name)} because ${appRoot} already exists.`,);}- const files = agentTemplateFiles(options.model ?? DEFAULT_AGENT_MODEL_ID, options.reasoning);+ const { model, reasoning } = resolveInitAgentSettings(options);+ const files = agentTemplateFiles(model, reasoning);await Promise.all(Object.entries(files).map(([path, content]) => writeTextFile(join(appRoot, path), content)),);diff --git a/packages/eve/src/cli/commands/init.integration.test.ts b/packages/eve/src/cli/commands/init.integration.test.tsindex 26bf6b17b..6f991d8a1 100644--- a/packages/eve/src/cli/commands/init.integration.test.ts+++ b/packages/eve/src/cli/commands/init.integration.test.ts@@ -15,7 +15,6 @@ import { createTestAgentInfoResult } from "#internal/testing/agent-info-fixture.import { stampTestEvents } from "#internal/testing/events.js";import { stripAnsi } from "#cli/ui/terminal-text.js";import { packageInstallResult, packageProcessResult } from "#internal/testing/package-process.js";-import { DEFAULT_AGENT_MODEL_ID } from "#shared/default-agent-model.js";import { detectPackageManager } from "#setup/package-manager.js";import {addAgentToProject,@@ -38,6 +37,8 @@ import {type InitCommandDependencies,} from "./init.js";+const DEFAULT_AGENT_MODEL_ID = "openai/gpt-6-luna-fast";+const BASE_VERSIONS = {aiPackageVersion: "7.0.0",connectPackageVersion: "0.2.2",@@ -387,12 +388,11 @@ describe("runInitCommand", () => {);const projectRoot = join(parentDirectory, "operations");- await expect(- pathExists(join(projectRoot, "agents", "foreman", "agent", "agent.ts")),- ).resolves.toBe(true);- await expect(- pathExists(join(projectRoot, "agents", "researcher", "agent", "agent.ts")),- ).resolves.toBe(true);+ for (const name of ["foreman", "researcher"]) {+ const source = await readFile(join(projectRoot, "agents", name, "agent", "agent.ts"), "utf8");+ expect(source).toContain('model: "openai/gpt-6-luna-fast"');+ expect(source).toContain('reasoning: "high"');+ }await expect(pathExists(join(projectRoot, "agent"))).resolves.toBe(false);await expect(readFile(join(projectRoot, "tsconfig.json"), "utf8")).resolves.toContain('"agents/**/*.ts"',@@ -406,28 +406,53 @@ describe("runInitCommand", () => {]);});- it("adds only agent files to an existing workspace", async () => {- const workspaceRoot = await mkdtemp(join(tmpdir(), "eve-init-workspace-agent-"));- await mkdir(join(workspaceRoot, "agents", "support", "agent"), { recursive: true });- await writeFile(- join(workspaceRoot, "package.json"),- '{"name":"workspace","dependencies":{"eve":"*"}}\n',- );- const beforePackageJson = await readFile(join(workspaceRoot, "package.json"), "utf8");- const output = logger();- const deps = dependencies();+ it.each([+ { options: {}, model: "openai/gpt-6-luna-fast", reasoning: "high" },+ {+ options: { model: "anthropic/claude-sonnet-5" },+ model: "anthropic/claude-sonnet-5",+ reasoning: undefined,+ },+ { options: { reasoning: "low" as const }, model: "openai/gpt-6-luna-fast", reasoning: "low" },+ {+ options: { reasoning: "provider-default" as const },+ model: "openai/gpt-6-luna-fast",+ reasoning: undefined,+ },+ ])(+ "adds only agent files to an existing workspace with $options",+ async ({ options, model, reasoning }) => {+ const workspaceRoot = await mkdtemp(join(tmpdir(), "eve-init-workspace-agent-"));+ await mkdir(join(workspaceRoot, "agents", "support", "agent"), { recursive: true });+ await writeFile(+ join(workspaceRoot, "package.json"),+ '{"name":"workspace","dependencies":{"eve":"*"}}\n',+ );+ const beforePackageJson = await readFile(join(workspaceRoot, "package.json"), "utf8");+ const output = logger();+ const deps = dependencies();- await runInitCommand(output, workspaceRoot, "billing", {}, deps);+ const existingConfigPath = join(workspaceRoot, "agents", "support", "agent", "agent.ts");+ const existingConfig = 'export default { model: "openai/gpt-5.5", reasoning: "low" };\n';+ await writeFile(existingConfigPath, existingConfig);- await expect(- pathExists(join(workspaceRoot, "agents", "billing", "agent", "agent.ts")),- ).resolves.toBe(true);- await expect(readFile(join(workspaceRoot, "package.json"), "utf8")).resolves.toBe(- beforePackageJson,- );- expect(deps.runPackageManagerInstall).not.toHaveBeenCalled();- expect(deps.tryInitializeGit).not.toHaveBeenCalled();- });+ await runInitCommand(output, workspaceRoot, "billing", options, deps);++ const agentSource = await readFile(+ join(workspaceRoot, "agents", "billing", "agent", "agent.ts"),+ "utf8",+ );+ expect(agentSource).toContain(`model: "${model}"`);+ if (reasoning === undefined) expect(agentSource).not.toContain("reasoning:");+ else expect(agentSource).toContain(`reasoning: "${reasoning}"`);+ await expect(readFile(existingConfigPath, "utf8")).resolves.toBe(existingConfig);+ await expect(readFile(join(workspaceRoot, "package.json"), "utf8")).resolves.toBe(+ beforePackageJson,+ );+ expect(deps.runPackageManagerInstall).not.toHaveBeenCalled();+ expect(deps.tryInitializeGit).not.toHaveBeenCalled();+ },+ );it("reports a target conflict when a workspace agent already exists", async () => {const workspaceRoot = await mkdtemp(join(tmpdir(), "eve-init-workspace-conflict-"));@@ -495,9 +520,9 @@ describe("runInitCommand", () => {await runInitCommand(output, parentDirectory, "my-agent", {}, deps);const projectPath = join(parentDirectory, "my-agent");- expect(await readFile(join(projectPath, "agent/agent.ts"), "utf8")).toContain(- DEFAULT_AGENT_MODEL_ID,- );+ const agentSource = await readFile(join(projectPath, "agent/agent.ts"), "utf8");+ expect(agentSource).toContain('model: "openai/gpt-6-luna-fast"');+ expect(agentSource).toContain('reasoning: "high"');const manifest = await readFile(join(projectPath, "package.json"), "utf8");expect(manifest).toContain('"eve": "^0.6.0"');const packageJson: unknown = JSON.parse(manifest);@@ -564,21 +589,33 @@ describe("runInitCommand", () => {);});- it("omits authored reasoning when init uses the provider default", async () => {+ it.each([+ {+ options: { reasoning: "provider-default" as const },+ model: "openai/gpt-6-luna-fast",+ reasoning: undefined,+ },+ { options: { reasoning: "low" as const }, model: "openai/gpt-6-luna-fast", reasoning: "low" },+ {+ options: { model: "anthropic/claude-sonnet-5" },+ model: "anthropic/claude-sonnet-5",+ reasoning: undefined,+ },+ {+ options: { model: "openai/gpt-6-luna-fast" },+ model: "openai/gpt-6-luna-fast",+ reasoning: undefined,+ },+ ])("preserves explicit init settings $options", async ({ options, model, reasoning }) => {const parentDirectory = await mkdtemp(join(tmpdir(), "eve-init-reasoning-default-"));- const output = logger();const deps = dependencies();- await runInitCommand(- output,- parentDirectory,- "my-agent",- { reasoning: "provider-default" },- deps,- );+ await runInitCommand(logger(), parentDirectory, "my-agent", options, deps);const agentSource = await readFile(join(parentDirectory, "my-agent", "agent/agent.ts"), "utf8");- expect(agentSource).not.toContain("reasoning:");+ expect(agentSource).toContain(`model: "${model}"`);+ if (reasoning === undefined) expect(agentSource).not.toContain("reasoning:");+ else expect(agentSource).toContain(`reasoning: "${reasoning}"`);});it("rejects an invalid --model before creating the project", async () => {@@ -1137,9 +1174,9 @@ describe("runInitCommand", () => {await runInitCommand(output, projectRoot, ".", {}, deps);- expect(await readFile(join(projectRoot, "agent/agent.ts"), "utf8")).toContain(- DEFAULT_AGENT_MODEL_ID,- );+ const agentSource = await readFile(join(projectRoot, "agent/agent.ts"), "utf8");+ expect(agentSource).toContain('model: "openai/gpt-6-luna-fast"');+ expect(agentSource).toContain('reasoning: "high"');await expect(pathExists(join(projectRoot, "agent/instructions.md"))).resolves.toBe(true);await expect(pathExists(join(projectRoot, "agent/channels/eve.ts"))).resolves.toBe(true);// Missing runtime deps are added; ones the project already declares stay.@@ -1173,25 +1210,28 @@ describe("runInitCommand", () => {expect(printed).not.toContain("Overrode package.json engines.node");});- it("adds an agent to an existing project with model settings selected by init options", async () => {- const parentDirectory = await mkdtemp(join(tmpdir(), "eve-init-dir-model-"));- const projectRoot = await createHostProject(parentDirectory);- const output = logger();- const deps = dependencies();+ it.each([undefined, "low", "provider-default"] as const)(+ "adds an agent to an existing project with explicit model and reasoning %s",+ async (reasoning) => {+ const parentDirectory = await mkdtemp(join(tmpdir(), "eve-init-dir-model-"));+ const projectRoot = await createHostProject(parentDirectory);+ const deps = dependencies();- await runInitCommand(- output,- projectRoot,- ".",- { model: "openai/gpt-5.5", reasoning: "high" },- deps,- );+ await runInitCommand(+ logger(),+ projectRoot,+ ".",+ { model: "openai/gpt-5.5", reasoning },+ deps,+ );- const agentSource = await readFile(join(projectRoot, "agent/agent.ts"), "utf8");- expect(agentSource).toContain('model: "openai/gpt-5.5"');- expect(agentSource).toContain('reasoning: "high"');- expect(deps.validateModelSlug).toHaveBeenCalledWith(projectRoot, "openai/gpt-5.5");- });+ const agentSource = await readFile(join(projectRoot, "agent/agent.ts"), "utf8");+ expect(agentSource).toContain('model: "openai/gpt-5.5"');+ if (reasoning === "low") expect(agentSource).toContain('reasoning: "low"');+ else expect(agentSource).not.toContain("reasoning:");+ expect(deps.validateModelSlug).toHaveBeenCalledWith(projectRoot, "openai/gpt-5.5");+ },+ );it("overrides an incompatible existing node engine declaration and warns for eve init .", async () => {const parentDirectory = await mkdtemp(join(tmpdir(), "eve-init-dir-engine-"));diff --git a/packages/eve/src/cli/commands/init.ts b/packages/eve/src/cli/commands/init.tsindex b8ea8a73c..d2eb11ffc 100644--- a/packages/eve/src/cli/commands/init.ts+++ b/packages/eve/src/cli/commands/init.ts@@ -14,7 +14,7 @@ import { eveCliBanner, EVE_WORDMARK } from "#cli/banner.js";import { formatElapsed } from "#cli/format-elapsed.js";import { startCliLiveRow } from "#cli/ui/live-row.js";import { createLogger, isLogLevelEnabled } from "#internal/logging.js";-import { DEFAULT_AGENT_MODEL_ID } from "#shared/default-agent-model.js";+import { resolveInitAgentSettings } from "#shared/default-agent-model.js";import type { NodeEngineOverride } from "#setup/node-engine.js";import {detectInvokingPackageManager,@@ -149,8 +149,7 @@ async function addToExistingProject(const manager = await dependencies.detectPackageManager(targetPath);const result = await dependencies.addAgentToProject({projectRoot: targetPath,- model: options.model ?? DEFAULT_AGENT_MODEL_ID,- reasoning: options.reasoning,+ ...resolveInitAgentSettings(options),packageManager: manager.kind,evePackage,});@@ -208,8 +207,7 @@ async function scaffoldProject(: projectName;const scaffoldOptions = {projectName: stagedProjectName,- model: options.model ?? DEFAULT_AGENT_MODEL_ID,- reasoning: options.reasoning,+ ...resolveInitAgentSettings(options),evePackage,targetDirectory: scaffoldDirectory,overwriteExisting,diff --git a/packages/eve/src/cli/dev/tui/status-line.test.ts b/packages/eve/src/cli/dev/tui/status-line.test.tsindex b4caed6d6..79bf1bf45 100644--- a/packages/eve/src/cli/dev/tui/status-line.test.ts+++ b/packages/eve/src/cli/dev/tui/status-line.test.ts@@ -45,7 +45,7 @@ describe("buildStatusLine", () => {theme: plain,width: 120,});- expect(line).toBe("openai/gpt-5.6-luna-fast · Vercel · acme");+ expect(line).toBe("gpt-5.6-luna · ⚡︎ · Vercel · acme");});it("omits raw team IDs while the slug is unavailable", () => {@@ -68,7 +68,30 @@ describe("buildStatusLine", () => {width: 120,});- expect(line).toBe("anthropic/claude-sonnet-5 · ai-gateway(oidc:my-agent)");+ expect(line).toBe("claude-sonnet-5 · ai-gateway(oidc:my-agent)");+ });++ it.each([+ { reasoning: "high", fastMode: false, theme: plain, expected: "gpt-6-luna · high · ⚡︎" },+ { reasoning: "high", fastMode: true, theme: plain, expected: "gpt-6-luna · high · ⚡︎" },+ { reasoning: undefined, fastMode: undefined, theme: plain, expected: "gpt-6-luna · ⚡︎" },+ { reasoning: "high", fastMode: undefined, theme: ascii, expected: "gpt-6-luna · high · >>" },+ ])("renders intrinsic speed with reasoning: $expected (Fast mode: $fastMode)", (input) => {+ const line = buildStatusLine({+ model: "openai/gpt-6-luna-fast",+ reasoning: input.reasoning,+ fastMode: input.fastMode,+ theme: input.theme,+ width: 120,+ });++ expect(line).toBe(input.expected);+ });++ it("keeps an interior -fast without showing an intrinsic speed marker", () => {+ expect(buildStatusLine({ model: "model-fast-preview", theme: plain, width: 120 })).toBe(+ "model-fast-preview",+ );});it("folds the reasoning level and Fast mode marker into the model segment", () => {@@ -82,7 +105,19 @@ describe("buildStatusLine", () => {width: 120,});- expect(line).toBe("xai/grok-4.5@xhigh ↯ · ai-gateway(oidc:my-agent)");+ expect(line).toBe("grok-4.5 · xhigh · ⚡︎ · ai-gateway(oidc:my-agent)");+ });++ it("keeps authored settings visible while a dynamic model is unresolved", () => {+ expect(+ buildStatusLine({+ dynamicModel: true,+ reasoning: "high",+ fastMode: true,+ theme: plain,+ width: 120,+ }),+ ).toBe("dynamic model · high · ⚡︎");});it("dims the whole model segment, reasoning level and fast marker included", () => {@@ -94,7 +129,7 @@ describe("buildStatusLine", () => {width: 120,})!;- expect(line).toContain("\x1b[2mxai/grok-4.5@xhigh ↯\x1b[22m");+ expect(line).toContain("\x1b[2mgrok-4.5 · xhigh · ⚡︎\x1b[22m");});it("renders the fast marker with ASCII glyphs when unicode is unavailable", () => {@@ -105,20 +140,19 @@ describe("buildStatusLine", () => {width: 120,});- expect(line).toBe("xai/grok-4.5 >>");+ expect(line).toBe("grok-4.5 · >>");});it("strips terminal controls from a remote model id", () => {expect(buildStatusLine({- model: "openai/gpt\x1b[31m-5\n",+ model: "openai/gpt\x1b[31m-6-luna-fast\n",reasoning: "high",- fastMode: true,remote: remote({ state: "ready", info: {} as never }),theme: plain,width: 120,}),- ).toBe(" ↗ vpoke.playground-vercel.tools openai/gpt-5@high ↯");+ ).toBe(" ↗ vpoke.playground-vercel.tools gpt-6-luna · high · ⚡︎");});it("dims the model segment", () => {@@ -130,7 +164,7 @@ describe("buildStatusLine", () => {width: 120,});- expect(line).toContain("\x1b[2manthropic/claude-sonnet-5\x1b[22m");+ expect(line).toContain("\x1b[2mclaude-sonnet-5\x1b[22m");});it("folds the linked project name into the connected gateway label", () => {@@ -164,12 +198,8 @@ describe("buildStatusLine", () => {const building = status("building");const complete = status("complete");- expect(stripAnsi(building)).toMatch(- /^anthropic\/claude-sonnet-5 +▪ agent\/instructions\.md updating…$/u,- );- expect(stripAnsi(complete)).toMatch(- /^anthropic\/claude-sonnet-5 +✓ agent\/instructions\.md updated$/u,- );+ expect(stripAnsi(building)).toMatch(/^claude-sonnet-5 +▪ agent\/instructions\.md updating…$/u);+ expect(stripAnsi(complete)).toMatch(/^claude-sonnet-5 +✓ agent\/instructions\.md updated$/u);expect(visibleLength(complete)).toBe(120);expect(complete).not.toContain("\x1b[32m");expect(stripAnsi(status("complete", 20))).toBe("✓ agent/instructions");@@ -212,7 +242,7 @@ describe("buildStatusLine", () => {const noEndpoint = buildStatusLine({ ...input, width: visibleLength(full) - 1 })!;expect(noEndpoint).not.toContain("ai-gateway");- expect(noEndpoint).toContain("anthropic/claude-sonnet-5");+ expect(noEndpoint).toContain("claude-sonnet-5");const noModel = buildStatusLine({ ...input, width: visibleLength(noEndpoint) - 1 })!;expect(noModel).not.toContain("ai-gateway");@@ -225,7 +255,7 @@ describe("buildStatusLine", () => {theme: plain,width: 120,});- expect(external).toBe("anthropic/claude-sonnet-5 · anthropic⌝");+ expect(external).toBe("claude-sonnet-5 · anthropic⌝");const linked = buildStatusLine({model: "m",@@ -253,7 +283,7 @@ describe("buildStatusLine", () => {theme: plain,width: 120,});- expect(chatgpt).toBe("openai/gpt-5.6-sol · chatgpt-sub⌝");+ expect(chatgpt).toBe("gpt-5.6-sol · chatgpt-sub⌝");const chatgptLogin = buildStatusLine({model: "openai/gpt-5.6-sol",@@ -261,7 +291,7 @@ describe("buildStatusLine", () => {theme: plain,width: 120,});- expect(chatgptLogin).toBe("openai/gpt-5.6-sol · ⚠ chatgpt-sub login · /login");+ expect(chatgptLogin).toBe("gpt-5.6-sol · ⚠ chatgpt-sub login · /login");const notConnected = buildStatusLine({model: "m",@@ -317,7 +347,7 @@ describe("buildStatusLine", () => {theme: ascii,width: 120,});- expect(stripAnsi(chatgpt!)).toBe("openai/gpt-5.6-sol · chatgpt-sub^");+ expect(stripAnsi(chatgpt!)).toBe("gpt-5.6-sol · chatgpt-sub^");});it("renders the remote badge first and projects each authentication state", () => {diff --git a/packages/eve/src/cli/dev/tui/status-line.ts b/packages/eve/src/cli/dev/tui/status-line.tsindex a6379854c..fed009111 100644--- a/packages/eve/src/cli/dev/tui/status-line.ts+++ b/packages/eve/src/cli/dev/tui/status-line.ts@@ -26,9 +26,11 @@ interface StatusLineInput {devBuild?: DevBuildStatus;/** Resolved model slug, e.g. "anthropic/claude-sonnet-5"; absent when `/eve/v1/info` failed. */model?: string;- /** Authored reasoning effort, rendered bold after the model id, e.g. `(xhigh)`. */+ /** Keep the dynamic-model label separate from the resolved model id. */+ dynamicModel?: boolean;+ /** Authored reasoning effort, shown after the model label, e.g. `· high`. */reasoning?: string;- /** True when the Gateway priority tier is on; renders a `»fast` marker. */+ /** True when the Gateway priority tier is on; adds a speed marker. */fastMode?: boolean;/*** Transient dev-TUI log-display mode shown after a Ctrl+L cycle, e.g.@@ -48,22 +50,29 @@ interface StatusLineInput {}function renderModel(- input: Pick<StatusLineInput, "model" | "reasoning" | "fastMode" | "remote" | "theme">,+ input: Pick<+ StatusLineInput,+ "model" | "dynamicModel" | "reasoning" | "fastMode" | "remote" | "theme"+ >,): string | undefined {- if (input.model === undefined) return undefined;const c = input.theme.colors;- const summary: Parameters<typeof formatModelSummary>[0] = { model: input.model };+ if (input.model === undefined && input.dynamicModel !== true) return undefined;+ const summary: Parameters<typeof formatModelSummary>[0] = {+ model: input.model ?? "dynamic model",+ };if (input.reasoning !== undefined) summary.reasoning = input.reasoning;- if (input.fastMode === true) summary.fastGlyph = input.theme.glyph.fast;if (input.remote !== undefined) {// Sanitize the untrusted remote id before appending suffixes, so its// trailing whitespace is trimmed instead of collapsing into an interior// space ahead of the reasoning level.- summary.model = stripAnsi(input.model).replace(/\s+/gu, " ").trim();- const plain = stripAnsi(formatModelSummary(summary)).replace(/\s+/gu, " ").trim();- return c.dim(plain);+ summary.model = stripAnsi(summary.model).replace(/\s+/gu, " ").trim();+ }+ if (input.fastMode === true || summary.model.endsWith("-fast")) {+ summary.fastGlyph = input.theme.glyph.fast;}- return c.dim(formatModelSummary(summary));+ const prefix = input.dynamicModel === true && input.model !== undefined ? "dynamic model · " : "";+ const label = `${prefix}${formatModelSummary(summary)}`;+ return c.dim(input.remote === undefined ? label : stripAnsi(label).replace(/\s+/gu, " ").trim());}/** Provider slugs whose display name differs from the AI SDK's identifier. */diff --git a/packages/eve/src/cli/dev/tui/terminal-renderer.test.ts b/packages/eve/src/cli/dev/tui/terminal-renderer.test.tsindex ba6397d65..c82b22e0b 100644--- a/packages/eve/src/cli/dev/tui/terminal-renderer.test.ts+++ b/packages/eve/src/cli/dev/tui/terminal-renderer.test.ts@@ -5701,7 +5701,7 @@ describe("TerminalRenderer status line", () => {expect(promptRow).toBeGreaterThan(-1);const statusRow = lines.slice(promptRow + 1).join("\n");expect(statusRow).not.toContain(":3000");- expect(statusRow).toContain("anthropic/claude-sonnet-5");+ expect(statusRow).toContain("claude-sonnet-5");// The linked project folds into the connected gateway label.expect(statusRow).toContain("· ai-gateway(oidc:my-agent)");expect(statusRow).not.toContain("⚠ ai-gateway");@@ -5728,7 +5728,7 @@ describe("TerminalRenderer status line", () => {expect(promptRow).toBeGreaterThan(-1);const footer = lines.slice(promptRow + 1).join("\n");expect(footer).toContain("dynamic model");- expect(footer).not.toContain("openai/gpt-5.6-sol");+ expect(footer).not.toContain("gpt-5.6-sol");expect(footer).not.toContain("⚠ ai-gateway");input.type("done");input.enter();@@ -5736,33 +5736,33 @@ describe("TerminalRenderer status line", () => {await renderer.renderStream({events: (async function* (): AsyncIterable<AgentTUIStreamEvent> {- yield { type: "step-start", modelId: "openai/gpt-5.6-luna" };- expect(screen.snapshot()).toContain("dynamic model · openai/gpt-5.6-luna");+ yield { type: "step-start", modelId: "openai/gpt-6-luna-fast" };+ expect(screen.snapshot()).toContain("dynamic model · gpt-6-luna · ⚡︎");yield { type: "step-start", modelId: "openai/gpt-5.6-sol" };- expect(screen.snapshot()).toContain("dynamic model · openai/gpt-5.6-sol");- expect(screen.snapshot()).not.toContain("openai/gpt-5.6-luna");+ expect(screen.snapshot()).toContain("dynamic model · gpt-5.6-sol");+ expect(screen.snapshot()).not.toContain("gpt-6-luna");yield { type: "finish" };})(),},{ submittedPrompt: "hi", continueSession: true },);- expect(screen.snapshot()).toContain("dynamic model · openai/gpt-5.6-sol");+ expect(screen.snapshot()).toContain("dynamic model · gpt-5.6-sol");await renderer.renderStream({events: (async function* (): AsyncIterable<AgentTUIStreamEvent> {yield { type: "turn-start", turnId: "next-turn" };expect(screen.snapshot()).toContain("dynamic model");- expect(screen.snapshot()).not.toContain("openai/gpt-5.6-sol");+ expect(screen.snapshot()).not.toContain("gpt-5.6-sol");yield { type: "step-start", modelId: "openai/gpt-5.6-luna" };yield { type: "finish" };})(),},{ submittedPrompt: "hello again", continueSession: true },);- expect(screen.snapshot()).toContain("dynamic model · openai/gpt-5.6-luna");+ expect(screen.snapshot()).toContain("dynamic model · gpt-5.6-luna");renderer.renderSessionBoundary();expect(screen.snapshot()).toContain("dynamic model");- expect(screen.snapshot()).not.toContain("openai/gpt-5.6-luna");+ expect(screen.snapshot()).not.toContain("gpt-5.6-luna");renderer.shutdown();});@@ -5779,9 +5779,9 @@ describe("TerminalRenderer status line", () => {{ type: "step-start", modelId: "openai/gpt-5.6-sol" },]),);- expect(screen.snapshot()).toContain("dynamic model · openai/gpt-5.6-sol");+ expect(screen.snapshot()).toContain("dynamic model · gpt-5.6-sol");await renderer.renderIdleStream(streamOf([{ type: "turn-start", turnId: "first" }]));- expect(screen.snapshot()).toContain("dynamic model · openai/gpt-5.6-sol");+ expect(screen.snapshot()).toContain("dynamic model · gpt-5.6-sol");await renderer.renderIdleStream(streamOf([{ type: "turn-start", turnId: "wake" },@@ -5789,7 +5789,7 @@ describe("TerminalRenderer status line", () => {]),);expect(screen.snapshot()).toContain("dynamic model");- expect(screen.snapshot()).not.toContain("openai/gpt-5.6-sol");+ expect(screen.snapshot()).not.toContain("gpt-5.6-sol");expect(screen.snapshot()).toContain("Model selection failed");renderer.shutdown();});@@ -5905,26 +5905,36 @@ describe("TerminalRenderer status line", () => {renderer.shutdown();});- it("renders the reasoning level and fast marker on the model segment", () => {+ it.each([+ {+ model: "xai/grok-4.5",+ reasoning: "xhigh" as const,+ providerOptions: { gateway: { serviceTier: "priority" } },+ expected: "grok-4.5 · xhigh · ⚡︎",+ },+ {+ model: "openai/gpt-6-luna-fast",+ reasoning: "high" as const,+ providerOptions: {},+ expected: "gpt-6-luna · high · ⚡︎",+ },+ ])("renders model metadata from the header: $expected", (selection) => {const { screen, renderer } = makeRenderer(100);renderer.renderNotice("anchor");renderer.renderAgentHeader({name: "Weather Agent",serverUrl: "http://localhost:3000",info: agentInfoWithModel(- "xai/grok-4.5",+ selection.model,{ kind: "gateway", connected: true, credential: "oidc" },- {- reasoning: "xhigh",- providerOptions: { gateway: { serviceTier: "priority" } },- },+ { reasoning: selection.reasoning, providerOptions: selection.providerOptions },),});// The first header commits with no footer; a Vercel status probe is the// paint that reveals the persistent status line beneath it.renderer.setVercelStatus(vercelStatus);- expect(screen.snapshot()).toContain("xai/grok-4.5@xhigh ↯");+ expect(screen.snapshot()).toContain(selection.expected);renderer.shutdown();});@@ -5946,9 +5956,9 @@ describe("TerminalRenderer status line", () => {renderer.setVercelStatus(vercelStatus);const snapshot = screen.snapshot();- expect(snapshot).toContain("xai/grok-4.5");- expect(snapshot).not.toContain("@provider-default");- expect(snapshot).not.toContain("↯");+ expect(snapshot).toContain("grok-4.5");+ expect(snapshot).not.toContain("provider-default");+ expect(snapshot).not.toContain("⚡︎");renderer.shutdown();});@@ -5979,7 +5989,7 @@ describe("TerminalRenderer status line", () => {renderer.reset();const snapshot = screen.snapshot();- expect(snapshot).toContain("anthropic/claude-sonnet-5");+ expect(snapshot).toContain("claude-sonnet-5");expect(snapshot).toContain("· ai-gateway(oidc:my-agent)");// A fresh conversation clears the token flow entirely (↑ 0 ↓ 0 is noise).expect(snapshot).not.toContain("↑ 0");diff --git a/packages/eve/src/cli/dev/tui/terminal-renderer.ts b/packages/eve/src/cli/dev/tui/terminal-renderer.tsindex d979e6f8e..90687040a 100644--- a/packages/eve/src/cli/dev/tui/terminal-renderer.ts+++ b/packages/eve/src/cli/dev/tui/terminal-renderer.ts@@ -4954,10 +4954,8 @@ export class TerminalRenderer implements AgentTUIRenderer {if (this.#logLevelHintActive) input.logLevel = this.#logs;const agentModel = this.#agentHeader?.info?.agent.model;if (agentModel?.routing.kind === "dynamic") {- input.model =- this.#resolvedModelId === undefined- ? "dynamic model"- : `dynamic model · ${this.#resolvedModelId}`;+ input.dynamicModel = true;+ if (this.#resolvedModelId !== undefined) input.model = this.#resolvedModelId;} else if (agentModel?.id !== undefined) input.model = agentModel.id;// "provider-default" is the absent-setting sentinel, not a level worth showing.if (agentModel?.reasoning !== undefined && agentModel.reasoning !== "provider-default") {diff --git a/packages/eve/src/cli/dev/tui/theme.ts b/packages/eve/src/cli/dev/tui/theme.tsindex 674c90b58..ac2877f66 100644--- a/packages/eve/src/cli/dev/tui/theme.ts+++ b/packages/eve/src/cli/dev/tui/theme.ts@@ -115,7 +115,7 @@ export interface ThemeGlyphs {arrowUp: string;/** `↓` — output (response) tokens in the token-flow segment. */arrowDown: string;- /** `↯` — Fast mode (Gateway priority tier) marker beside a model id. */+ /** `⚡︎` — intrinsic speed or Fast mode (Gateway priority tier) marker. */fast: string;/** `↵` — the Enter affordance inside a selection badge. */enter: string;@@ -152,7 +152,7 @@ const UNICODE_GLYPHS: ThemeGlyphs = {ellipsis: "…",arrowUp: "↑",arrowDown: "↓",- fast: "↯",+ fast: "⚡︎",enter: "↵",validating: "▪",};diff --git a/packages/eve/src/cli/ui/terminal-text.test.ts b/packages/eve/src/cli/ui/terminal-text.test.tsindex ea7bb0d9c..b953671f8 100644--- a/packages/eve/src/cli/ui/terminal-text.test.ts+++ b/packages/eve/src/cli/ui/terminal-text.test.ts@@ -54,6 +54,8 @@ describe("editable input geometry", () => {expect(inputTextWidth("🇺🇸")).toBe(2);expect(inputTextWidth("1️⃣")).toBe(2);expect(inputTextWidth("©️")).toBe(2);+ expect(inputTextWidth("⚡︎")).toBe(1);+ expect(inputTextWidth("⚡️")).toBe(2);expect(inputTextWidth("A\uFE0F")).toBe(1);expect(inputTextWidth("\t")).toBe(4);});diff --git a/packages/eve/src/cli/ui/terminal-text.ts b/packages/eve/src/cli/ui/terminal-text.tsindex db7d879a9..dba3c0ad0 100644--- a/packages/eve/src/cli/ui/terminal-text.ts+++ b/packages/eve/src/cli/ui/terminal-text.ts@@ -143,7 +143,7 @@ function terminalGraphemeWidth(grapheme: string): number {if (codePoint !== undefined) width = Math.max(width, codePointWidth(codePoint));}const emojiPresentation =- emojiPresentationPattern.test(grapheme) ||+ (emojiPresentationPattern.test(grapheme) && !grapheme.includes("\u{fe0e}")) ||keycapPattern.test(grapheme) ||(grapheme.includes("\u{fe0f}") && extendedPictographicPattern.test(grapheme));return emojiPresentation ? Math.max(2, width) : width;diff --git a/packages/eve/src/execution/tasks/render.ts b/packages/eve/src/execution/tasks/render.tsindex fb3e49b33..6199e1b3c 100644--- a/packages/eve/src/execution/tasks/render.ts+++ b/packages/eve/src/execution/tasks/render.ts@@ -3,7 +3,7 @@ import type { TaskCancelResult, TaskWaitResult } from "#execution/tasks/calls.js// Every string the model reads about tasks lives in this file.export const TASK_WAIT_DESCRIPTION =- "Wait silently until any of your tasks has a result, a new message arrives, or timeoutSeconds pass. Call it when you have nothing to say until a result arrives. It returns after the first result, which follows in a <task_result> message; call it again to wait for the rest. Waiting never stops a task.";+ "Call task_wait sparingly, only when you deliberately want to withhold a message from the user while waiting for a task result. Tasks keep running and their results reach you without calling task_wait. If the user should hear from you now, reply instead. Wait silently until any of your tasks has a result, a new message arrives, or timeoutSeconds pass. It returns after the first result, which follows in a <task_result> message; wait again only if you still want to withhold a reply until another result arrives. Waiting never stops a task.";export const TASK_WAIT_TIMEOUT_DESCRIPTION ="Optional. Seconds to wait before returning without a result. Omit it to wait for a result or a new message, which is almost always right. Don't use short timeouts to check on tasks: results reach you without checking.";diff --git a/packages/eve/src/framework/sources/modules/agent.ts b/packages/eve/src/framework/sources/modules/agent.tsindex ebb568e38..00bb8c47c 100644--- a/packages/eve/src/framework/sources/modules/agent.ts+++ b/packages/eve/src/framework/sources/modules/agent.ts@@ -1,4 +1,4 @@import { defineAgent } from "#public/definitions/agent.js";-import { DEFAULT_AGENT_MODEL_ID } from "#shared/default-agent-model.js";+import { DEFAULT_AGENT_MODEL_ID, DEFAULT_AGENT_REASONING } from "#shared/default-agent-model.js";-export default defineAgent({ model: DEFAULT_AGENT_MODEL_ID });+export default defineAgent({ model: DEFAULT_AGENT_MODEL_ID, reasoning: DEFAULT_AGENT_REASONING });diff --git a/packages/eve/src/public/models/openai/index.test.ts b/packages/eve/src/public/models/openai/index.test.tsindex df84f36cf..be8dff2ab 100644--- a/packages/eve/src/public/models/openai/index.test.ts+++ b/packages/eve/src/public/models/openai/index.test.ts@@ -1,14 +1,23 @@import { describe, expect, it } from "vitest";-import { chatgpt, experimental_chatgpt } from "./index.js";+import { chatgpt, experimental_chatgpt, openai } from "./index.js";-describe("chatgpt", () => {- it("defaults to gpt-5.6-luna-fast", () => {- const model = chatgpt();- if (typeof model === "string") throw new Error("expected a model instance");- expect(model.modelId).toBe("gpt-5.6-luna-fast");- });+it.each([+ ["chatgpt", chatgpt],+ ["openai", openai],+] as const)(+ "%s defaults to gpt-6-luna-fast without overriding explicit models",+ (_name, helper) => {+ const model = helper();+ const explicit = helper("gpt-5.6-luna-fast");+ if (typeof model === "string" || typeof explicit === "string")+ throw new Error("expected model instances");+ expect(model.modelId).toBe("gpt-6-luna-fast");+ expect(explicit.modelId).toBe("gpt-5.6-luna-fast");+ },+);+describe("chatgpt", () => {it("creates a Codex-served model from a bare OpenAI slug", () => {const model = chatgpt("gpt-5.5");expect(typeof model).toBe("object");diff --git a/packages/eve/src/public/models/openai/index.ts b/packages/eve/src/public/models/openai/index.tsindex 39bb7cf0a..1a70cde8b 100644--- a/packages/eve/src/public/models/openai/index.ts+++ b/packages/eve/src/public/models/openai/index.ts@@ -2,13 +2,14 @@ import { createOpenAI } from "#compiled/@ai-sdk/openai/index.js";import { createDirectModelFetch } from "#internal/model-auth/transport.js";import type { LanguageModel } from "ai";import { DEFAULT_CHATGPT_MODEL_ID, normalizeChatGptModelId } from "#shared/chatgpt-model.js";+import { MODEL_HELPERS } from "#shared/model-helper.js";import { createCodexSubscriptionModel } from "./chatgpt/model.js";/*** Creates a language model billed to the local ChatGPT subscription instead* of an API key. Sign in through `/login` in `eve dev`.*- * Defaults to `gpt-5.6-luna-fast`. Pass a bare OpenAI model slug or an+ * Defaults to `gpt-6-luna-fast`. Pass a bare OpenAI model slug or an* `openai/`-prefixed id to override it; the Codex backend serves OpenAI models* only, so any other provider-qualified id is rejected. Model availability is* enforced by the Codex backend per account at call time, not at compile time.@@ -27,7 +28,7 @@ import { createCodexSubscriptionModel } from "./chatgpt/model.js";* });* ```*/-export function chatgpt(model = DEFAULT_CHATGPT_MODEL_ID): LanguageModel {+export function chatgpt(model: string = DEFAULT_CHATGPT_MODEL_ID): LanguageModel {const slug = normalizeChatGptModelId(model);if (slug === undefined && model.trim().replace(/^openai\//u, "").length === 0) {throw new Error('Expected chatgpt "model" to name an OpenAI model, for example "gpt-5.6-sol".');@@ -46,7 +47,7 @@ export function chatgpt(model = DEFAULT_CHATGPT_MODEL_ID): LanguageModel {export const experimental_chatgpt = chatgpt;/** Creates a direct OpenAI model. Uses OPENAI_API_KEY, or /login credentials in local development. */-export function openai(model = "gpt-5.6-luna-fast"): LanguageModel {+export function openai(model: string = MODEL_HELPERS.openai.defaultModel): LanguageModel {const id = model.trim().replace(/^openai\//u, "");if (!id || id.includes("/")) throw new Error("Expected an OpenAI model ID.");return createOpenAI({diff --git a/packages/eve/src/self-modification/extension/subagents/agent/agent.test.ts b/packages/eve/src/self-modification/extension/subagents/agent/agent.test.tsindex 5aa3a208d..5b6ac4a25 100644--- a/packages/eve/src/self-modification/extension/subagents/agent/agent.test.ts+++ b/packages/eve/src/self-modification/extension/subagents/agent/agent.test.ts@@ -7,7 +7,7 @@ import { stampDevelopmentClientAddress } from "#internal/nitro/dev-client-addresimport { DEVELOPMENT_WORKFLOW_SECRET_ENV } from "#internal/workflow/development-world-protocol.js";import { afterEach, describe, expect, it } from "vitest";-import { defineSelfModificationAgent } from "./agent.js";+import { defineSelfModificationAgent, type SelfModificationAgentOptions } from "./agent.js";const serverUrl = "http://127.0.0.1:3000";const context: DynamicResolveContext = {@@ -38,10 +38,64 @@ describe("self-modification local agent", () => {await withDevHost(async () => {const agent = defineSelfModificationAgent({ config: { local: { enabled: true } } });- await expect(agent.events["turn.started"]?.({}, context)).resolves.not.toBeNull();+ await expect(agent.events["turn.started"]?.({}, context)).resolves.toMatchObject({+ model: "openai/gpt-6-luna-fast",+ reasoning: "high",+ });});});+ it.each<{+ label: string;+ options: SelfModificationAgentOptions;+ parent: DynamicResolveContext["model"];+ model: string;+ reasoning: string | undefined;+ }>([+ {+ label: "explicit model",+ options: { model: "anthropic/claude-sonnet-5" },+ parent: null,+ model: "anthropic/claude-sonnet-5",+ reasoning: undefined,+ },+ {+ label: "parent model",+ options: {},+ parent: { id: "openai/gpt-6-luna-fast" },+ model: "openai/gpt-6-luna-fast",+ reasoning: undefined,+ },+ {+ label: "explicit reasoning",+ options: { reasoning: "low" },+ parent: null,+ model: "openai/gpt-6-luna-fast",+ reasoning: "low",+ },+ {+ label: "provider-default reasoning",+ options: { reasoning: "provider-default" },+ parent: null,+ model: "openai/gpt-6-luna-fast",+ reasoning: "provider-default",+ },+ ])(+ "preserves $label instead of forcing fallback reasoning",+ async ({ options, parent, model, reasoning }) => {+ await withDevHost(async () => {+ const agent = defineSelfModificationAgent({+ ...options,+ config: { local: { enabled: true } },+ });+ const resolved = await agent.events["turn.started"]?.({}, { ...context, model: parent });++ expect(resolved).toMatchObject({ model });+ expect(resolved).toHaveProperty("reasoning", reasoning);+ });+ },+ );+it("is available to a direct remote request on an eve dev host", async () => {await withDevHost(async () => {const secret = "test-secret";diff --git a/packages/eve/src/self-modification/extension/subagents/agent/agent.ts b/packages/eve/src/self-modification/extension/subagents/agent/agent.tsindex e7ebae364..08625d11d 100644--- a/packages/eve/src/self-modification/extension/subagents/agent/agent.ts+++ b/packages/eve/src/self-modification/extension/subagents/agent/agent.ts@@ -8,7 +8,7 @@ import {type DynamicSubagentDefinition,} from "eve";-import { DEFAULT_AGENT_MODEL_ID } from "#shared/default-agent-model.js";+import { DEFAULT_AGENT_MODEL_ID, DEFAULT_AGENT_REASONING } from "#shared/default-agent-model.js";import { getLocalDevCapability } from "eve/local-dev";import selfModification from "../../extension.js";@@ -76,10 +76,14 @@ export function defineSelfModificationAgent(): DynamicSentinel<DynamicSubagentDefinition | null> {const resolve = async (_event: unknown, ctx: DynamicResolveContext) => {const bound = selfModification.config;- const reasoning = options.reasoning ?? bound.reasoning;+ const configuredModel = options.model ?? bound.model ?? ctx.model?.id;+ const reasoning =+ options.reasoning ??+ bound.reasoning ??+ (configuredModel === undefined ? DEFAULT_AGENT_REASONING : undefined);const config = resolveSelfModificationConfig(options.config ?? bound);const mode = resolveSelfModificationMode(config);- const model = options.model ?? bound.model ?? ctx.model?.id ?? FALLBACK_SELF_MODIFICATION_MODEL;+ const model = configuredModel ?? FALLBACK_SELF_MODIFICATION_MODEL;const description = renderDescription(["Delegate here when the user asks to change this eve agent or its authored source.",sourceDelegation,diff --git a/packages/eve/src/self-modification/search-models.test.ts b/packages/eve/src/self-modification/search-models.test.tsindex 8d26ec8ea..320f96f70 100644--- a/packages/eve/src/self-modification/search-models.test.ts+++ b/packages/eve/src/self-modification/search-models.test.ts@@ -23,9 +23,9 @@ const CATALOG = {type: "language",},{- id: "spacexai/grok-4.7",- name: "Grok 4.7",- owned_by: "spacexai",+ id: "openai/gpt-6-luna-fast",+ name: "GPT-6 Luna Fast",+ owned_by: "openai",tags: [],type: "language",},@@ -49,11 +49,11 @@ describe("searchGatewayModels", () => {});it("uses the same language-model eligibility as /model", () => {- expect(searchGatewayModels(parseGatewayModelCatalog(CATALOG), "grok")).toEqual([+ expect(searchGatewayModels(parseGatewayModelCatalog(CATALOG), "luna")).toEqual([{- id: "spacexai/grok-4.7",- name: "Grok 4.7",- provider: "spacexai",+ id: "openai/gpt-6-luna-fast",+ name: "GPT-6 Luna Fast",+ provider: "openai",},]);expect(searchGatewayModels(parseGatewayModelCatalog(CATALOG), "image")).toEqual([]);diff --git a/packages/eve/src/setup/boxes/select-model.test.ts b/packages/eve/src/setup/boxes/select-model.test.tsindex 55d3338e2..5e3a07059 100644--- a/packages/eve/src/setup/boxes/select-model.test.ts+++ b/packages/eve/src/setup/boxes/select-model.test.ts@@ -1,6 +1,5 @@import { afterEach, describe, expect, it, vi } from "vitest";-import { DEFAULT_AGENT_MODEL_ID } from "#shared/default-agent-model.js";import { parseGatewayModelCatalog } from "#shared/gateway-model-catalog.js";import {@@ -47,10 +46,10 @@ const CATALOG: GatewayCatalogModel[] = [reasoningEfforts: [],},{- id: "spacexai/grok-4.7",- name: "Grok 4.7",+ id: "openai/gpt-6-luna-fast",+ name: "GPT-6 Luna Fast",type: "language",- owned_by: "spacexai",+ owned_by: "openai",released: 100,tags: ["reasoning"],reasoningEfforts: [],@@ -79,21 +78,27 @@ describe("modelOptionsFromCatalog", () => {const options = modelOptionsFromCatalog(CATALOG);expect(options.map((option) => option.value)).toEqual([- "spacexai/grok-4.7",+ "openai/gpt-6-luna-fast","zai/glm-4.6","openai/gpt-5-mini",]);expect(options.filter((option) => option.featured).map((o) => o.value)).toEqual([- "spacexai/grok-4.7",+ "openai/gpt-6-luna-fast",]);- expect(options[0]?.hint).toBe("SpaceXAI");+ expect(options[0]?.hint).toBe("OpenAI");});it("falls back to the static shortlist without a catalog or matches", () => {for (const catalog of [undefined, [] as GatewayCatalogModel[]]) {- const values = modelOptionsFromCatalog(catalog).map((option) => option.value);- expect(values).toContain(DEFAULT_AGENT_MODEL_ID);- expect(values).toContain("google/gemini-3.5");+ const options = modelOptionsFromCatalog(catalog);+ expect(options[0]).toEqual({+ id: "openai/gpt-6-luna-fast",+ value: "openai/gpt-6-luna-fast",+ label: "GPT-6 Luna Fast",+ hint: "OpenAI",+ featured: true,+ });+ expect(options.map((option) => option.value)).toContain("google/gemini-3.5");}});@@ -113,13 +118,13 @@ describe("modelOptionsFromCatalog", () => {]);expect(options.map((option) => option.value)).toEqual([- "spacexai/grok-4.7",+ "openai/gpt-6-luna-fast","anthropic/claude-opus-4.8","zai/glm-4.6","openai/gpt-5-mini",]);expect(options.filter((option) => option.featured).map((o) => o.value)).toEqual([- "spacexai/grok-4.7",+ "openai/gpt-6-luna-fast","anthropic/claude-opus-4.8",]);});diff --git a/packages/eve/src/setup/boxes/select-model.ts b/packages/eve/src/setup/boxes/select-model.tsindex 9763fcc9a..d9504f880 100644--- a/packages/eve/src/setup/boxes/select-model.ts+++ b/packages/eve/src/setup/boxes/select-model.ts@@ -33,7 +33,7 @@ const FEATURED_MODEL_IDS: readonly string[] = [];const FALLBACK_MODELS: SelectOption<string>[] = [- modelOption(DEFAULT_AGENT_MODEL_ID, "Grok 4.7", "SpaceXAI"),+ modelOption(DEFAULT_AGENT_MODEL_ID, "GPT-6 Luna Fast", "OpenAI"),modelOption("anthropic/claude-opus-4.8", "Claude Opus 4.8", "Anthropic"),modelOption("openai/gpt-5.5", "GPT-5.5", "OpenAI"),modelOption("google/gemini-3.5", "Gemini 3.5", "Google", false),diff --git a/packages/eve/src/setup/flows/login-first-response.integration.test.ts b/packages/eve/src/setup/flows/login-first-response.integration.test.tsindex 786d29332..87406db66 100644--- a/packages/eve/src/setup/flows/login-first-response.integration.test.ts+++ b/packages/eve/src/setup/flows/login-first-response.integration.test.ts@@ -22,13 +22,13 @@ vi.mock("#services/inspect-application.js", () => ({inspectApplication: async () => ({compiledState: {manifest: {- config: { model: { id: "openai/gpt-5.6-luna-fast", routing: { kind: "gateway" } } },+ config: { model: { id: "openai/gpt-6-luna-fast", routing: { kind: "gateway" } } },},},}),}));vi.mock("./model-source-change.js", () => ({- readAuthoredModelSelection: async () => "openai/gpt-5.6-luna-fast",+ readAuthoredModelSelection: async () => "openai/gpt-6-luna-fast",changeValidatedAgentModel: state.model,}));import { runModelLogin } from "./model-login.js";@@ -58,7 +58,7 @@ it("logs in and streams the first response without exposing the entered key", asresponse: {id: "resp_1",created_at: 0,- model: "gpt-5.6-luna-fast",+ model: "gpt-6-luna-fast",status: "completed",usage: { input_tokens: 3, output_tokens: 3 },},@@ -67,8 +67,9 @@ it("logs in and streams the first response without exposing the entered key", asconst fetch = vi.fn(async (url: Parameters<typeof globalThis.fetch>[0], init?: RequestInit) => {expect(new Headers(init?.headers).get("authorization")).toBe("Bearer fixture-key");if (String(url).endsWith("/models"))- return Response.json({ data: [{ id: "gpt-5.6-luna-fast" }] });+ return Response.json({ data: [{ id: "gpt-5.6-luna-fast" }, { id: "gpt-6-luna-fast" }] });expect(String(url)).toBe("https://api.openai.com/v1/responses");+ expect(JSON.parse(String(init?.body))).toMatchObject({ model: "gpt-6-luna-fast" });expect(init?.body).not.toContain("fixture-key");return new Response(events.map((event) => `data: ${JSON.stringify(event)}\n\n`).join(""), {headers: { "content-type": "text/event-stream" },@@ -82,7 +83,7 @@ it("logs in and streams the first response without exposing the entered key", as});expect(state.model).toHaveBeenCalledWith({appRoot: "/fixture",- slug: "openai-api/gpt-5.6-luna-fast",+ slug: "openai-api/gpt-6-luna-fast",});expect(state.defaults).toHaveBeenCalledWith("openai");expect(JSON.stringify(fake)).not.toContain("fixture-key");diff --git a/packages/eve/src/setup/flows/model-login.test.ts b/packages/eve/src/setup/flows/model-login.test.tsindex a7903b99e..dbaeec738 100644--- a/packages/eve/src/setup/flows/model-login.test.ts+++ b/packages/eve/src/setup/flows/model-login.test.ts@@ -80,7 +80,7 @@ beforeEach(() => {compiledState: {manifest: {config: {- model: { id: "spacexai/grok-4.7", routing: { kind: "gateway", target: "spacexai" } },+ model: { id: "openai/gpt-6-luna-fast", routing: { kind: "gateway", target: "openai" } },},},},@@ -90,42 +90,48 @@ beforeEach(() => {vi.stubEnv("EVE_MODEL_CONNECTION", undefined);mocks.session.mockResolvedValue({ accessToken: "access", teamId: "team_123", teamName: "Alice" });mocks.readSession.mockResolvedValue({ refreshToken: "refresh" });- mocks.authored.mockResolvedValue("spacexai/grok-4.7");+ mocks.authored.mockResolvedValue("openai/gpt-6-luna-fast");mocks.oauth.mockResolvedValue({ teamId: "team_123", teamName: "Alice" });- mocks.catalog.mockResolvedValue([{ id: "spacexai/grok-4.7", type: "language" }]);+ mocks.catalog.mockResolvedValue([{ id: "openai/gpt-6-luna-fast", type: "language" }]);mocks.change.mockResolvedValue({ kind: "changed" });mocks.readSecret.mockResolvedValue("stored-key");mocks.models.mockResolvedValue({- data: [{ id: "gpt-5.6-luna-fast" }, { id: "claude-sonnet-5" }],- models: [{ slug: "gpt-5.6-luna-fast" }],+ data: [{ id: "gpt-5.6-luna-fast" }, { id: "gpt-6-luna-fast" }, { id: "claude-sonnet-5" }],+ models: [{ slug: "gpt-5.6-luna-fast" }, { slug: "gpt-6-luna-fast" }],});mocks.gateway.mockResolvedValue({ kind: "valid" });mocks.chatgptState.mockResolvedValue({ kind: "ready", reload: true });});describe("model login", () => {- it.each(["vercel", "ai-gateway-key", "chatgpt", "openai", "anthropic"])(- "connects %s and returns directly to chat",- async (selected) => {- const fake = createFakePrompter({ single: () => selected, password: () => "new-key" });- expect(await runModelLogin({ appRoot: "/agent", prompter: fake.prompter })).toMatchObject({- kind: "ready",- reload: ["openai", "anthropic", "chatgpt"].includes(selected),- });- expect(fake.selectMessages).toEqual(["Choose a connection"]);- expect(mocks.writeSelection.mock.calls[0]?.slice(0, 2)).toEqual(["/agent", selected]);- expect(mocks.writeDefault).toHaveBeenCalledWith(selected);- if (["openai", "anthropic", "ai-gateway-key"].includes(selected))- expect(mocks.writeSecret).toHaveBeenCalledWith(- selected === "ai-gateway-key" ? selected : `${selected}-key`,- "new-key",- );- if (selected === "vercel") expect(mocks.oauth).toHaveBeenCalledOnce();- if (selected === "chatgpt") expect(mocks.chatgpt).toHaveBeenCalledOnce();- },- );+ it.each([+ ["vercel", undefined],+ ["ai-gateway-key", undefined],+ ["chatgpt", "chatgpt/gpt-6-luna-fast"],+ ["openai", "openai-api/gpt-6-luna-fast"],+ ["anthropic", "anthropic-api/claude-sonnet-5"],+ ] as const)("connects %s and returns directly to chat", async (selected, selection) => {+ const fake = createFakePrompter({ single: () => selected, password: () => "new-key" });+ expect(await runModelLogin({ appRoot: "/agent", prompter: fake.prompter })).toMatchObject({+ kind: "ready",+ reload: ["openai", "anthropic", "chatgpt"].includes(selected),+ });+ expect(fake.selectMessages).toEqual(["Choose a connection"]);+ expect(mocks.writeSelection.mock.calls[0]?.slice(0, 2)).toEqual(["/agent", selected]);+ expect(mocks.writeDefault).toHaveBeenCalledWith(selected);+ if (["openai", "anthropic", "ai-gateway-key"].includes(selected))+ expect(mocks.writeSecret).toHaveBeenCalledWith(+ selected === "ai-gateway-key" ? selected : `${selected}-key`,+ "new-key",+ );+ if (selection !== undefined)+ expect(mocks.change).toHaveBeenCalledWith({ appRoot: "/agent", slug: selection });+ else expect(mocks.change).not.toHaveBeenCalled();+ if (selected === "vercel") expect(mocks.oauth).toHaveBeenCalledOnce();+ if (selected === "chatgpt") expect(mocks.chatgpt).toHaveBeenCalledOnce();+ });it.each(["vercel", "ai-gateway-key"])(- "selects Grok when switching from ChatGPT to %s",+ "selects Luna Fast when switching from ChatGPT to %s",async (selected) => {mocks.authored.mockResolvedValue("chatgpt/gpt-5.6-luna-fast");const fake = createFakePrompter({ single: () => selected, password: () => "new-key" });@@ -135,7 +141,10 @@ describe("model login", () => {reload: true,});expect(fake.selectMessages).toEqual(["Choose a connection"]);- expect(mocks.change).toHaveBeenCalledWith({ appRoot: "/agent", slug: "spacexai/grok-4.7" });+ expect(mocks.change).toHaveBeenCalledWith({+ appRoot: "/agent",+ slug: "openai/gpt-6-luna-fast",+ });},);it("reuses the CLI team without any prompts or project linking", async () => {@@ -318,28 +327,20 @@ it.each(["openai", "anthropic"] as const)(expect(mocks.writeDefault).not.toHaveBeenCalled();},);-it("preserves an explicitly authored eve helper's compatible custom model", async () => {- mocks.inspect.mockResolvedValue({- compiledState: {- manifest: {- config: {- model: {- id: "custom-model",- source: {},- routing: { kind: "external", provider: "openai" },- },- },- },- },- });- mocks.authored.mockResolvedValue("openai-api/custom-model");- const fake = createFakePrompter({ single: () => "openai", password: () => "new-key" });+it.each([+ ["openai", "openai-api/custom-model"],+ ["openai", "openai-api/gpt-5.6-luna-fast"],+ ["chatgpt", "chatgpt/gpt-5.6-luna-fast"],+])("preserves an explicitly authored compatible %s model %s", async (connection, selection) => {+ mocks.authored.mockResolvedValue(selection);+ const fake = createFakePrompter({ single: () => connection, password: () => "new-key" });await expect(runModelLogin({ appRoot: "/agent", prompter: fake.prompter }),).resolves.toMatchObject({kind: "ready",reload: false,});+ expect(fake.selectMessages).toEqual(["Choose a connection"]);expect(mocks.change).not.toHaveBeenCalled();});@@ -377,7 +378,7 @@ it("overlaps Gateway catalog loading with OAuth and does not validate the returnmocks.oauth.mockReturnValue(oauth.promise);mocks.catalog.mockImplementation(async () => {catalogStarted.resolve();- return [{ id: "spacexai/grok-4.7", type: "language" }];+ return [{ id: "openai/gpt-6-luna-fast", type: "language" }];});const result = runModelLogin({appRoot: "/agent",@@ -468,7 +469,7 @@ it("changes teams without recompiling an unchanged Gateway model", async () => {kind: "ready",reload: false,model: {- id: "spacexai/grok-4.7",+ id: "openai/gpt-6-luna-fast",endpoint: { kind: "gateway", connected: true, credential: "oauth", team: "Alice" },},});diff --git a/packages/eve/src/setup/flows/provider-selection-cycle.integration.test.ts b/packages/eve/src/setup/flows/provider-selection-cycle.integration.test.tsindex 5c3ad14f0..fe2ddadab 100644--- a/packages/eve/src/setup/flows/provider-selection-cycle.integration.test.ts+++ b/packages/eve/src/setup/flows/provider-selection-cycle.integration.test.ts@@ -26,8 +26,8 @@ vi.mock("./model-source-change.js", () => ({changeValidatedAgentModel: async () => ({ kind: "changed" }),}));vi.mock("#internal/model-auth/available-models.js", () => ({- availableDirectModels: async () => ["gpt-5.6-luna-fast", "claude-sonnet-5"],- availableHelperModels: async () => ["gpt-5.6-luna-fast", "claude-sonnet-5"],+ availableDirectModels: async () => ["gpt-5.6-luna-fast", "gpt-6-luna-fast", "claude-sonnet-5"],+ availableHelperModels: async () => ["gpt-5.6-luna-fast", "gpt-6-luna-fast", "claude-sonnet-5"],}));vi.mock("#internal/model-auth/vercel.js", () => ({resolveVercelSession: async () => ({diff --git a/packages/eve/src/shared/chatgpt-model.ts b/packages/eve/src/shared/chatgpt-model.tsindex fd9624d8b..ea0915052 100644--- a/packages/eve/src/shared/chatgpt-model.ts+++ b/packages/eve/src/shared/chatgpt-model.ts@@ -1,6 +1,7 @@import type { ModelRouting } from "./agent-definition.js";+import { MODEL_HELPERS } from "#shared/model-helper.js";-export const DEFAULT_CHATGPT_MODEL_ID = "gpt-5.6-luna-fast";+export const DEFAULT_CHATGPT_MODEL_ID = MODEL_HELPERS.chatgpt.defaultModel;export const CHATGPT_MODEL_SELECTION_PREFIX = "chatgpt/";/** Returns the bare OpenAI model id encoded by a setup-facing ChatGPT selection. */diff --git a/packages/eve/src/shared/default-agent-model.ts b/packages/eve/src/shared/default-agent-model.tsindex 7ea4fea56..1ce2219b6 100644--- a/packages/eve/src/shared/default-agent-model.ts+++ b/packages/eve/src/shared/default-agent-model.ts@@ -1,5 +1,19 @@+import type { AgentReasoningDefinition } from "./agent-definition.js";+/*** Model used when an agent does not declare one, baked in by `eve init`, and* pre-selected in the setup model picker.*/-export const DEFAULT_AGENT_MODEL_ID = "spacexai/grok-4.7";+export const DEFAULT_AGENT_MODEL_ID = "openai/gpt-6-luna-fast";+export const DEFAULT_AGENT_REASONING = "high";++export function resolveInitAgentSettings(options: {+ model?: string;+ reasoning?: AgentReasoningDefinition;+}): { model: string; reasoning: AgentReasoningDefinition | undefined } {+ return {+ model: options.model ?? DEFAULT_AGENT_MODEL_ID,+ reasoning:+ options.reasoning ?? (options.model === undefined ? DEFAULT_AGENT_REASONING : undefined),+ };+}diff --git a/packages/eve/src/shared/model-helper.ts b/packages/eve/src/shared/model-helper.tsindex 2fcc6403e..cb65c1454 100644--- a/packages/eve/src/shared/model-helper.ts+++ b/packages/eve/src/shared/model-helper.ts@@ -3,13 +3,13 @@ export const MODEL_HELPERS = {chatgpt: {module: "eve/models/openai",prefix: "chatgpt/",- defaultModel: "gpt-5.6-luna-fast",+ defaultModel: "gpt-6-luna-fast",provider: "codex",},openai: {module: "eve/models/openai",prefix: "openai-api/",- defaultModel: "gpt-5.6-luna-fast",+ defaultModel: "gpt-6-luna-fast",provider: "openai",},anthropic: {diff --git a/packages/eve/src/shared/model-summary.ts b/packages/eve/src/shared/model-summary.tsindex 56659b96b..d380618e7 100644--- a/packages/eve/src/shared/model-summary.ts+++ b/packages/eve/src/shared/model-summary.ts@@ -1,16 +1,13 @@-/**- * The one-line model summary grammar shared by the dev TUI's status line and- * the /model menu's Change model hint: `slug@level ↯`. One implementation so- * the two surfaces cannot drift.- */+/** Compact display label for the dev TUI: `model · reasoning · ⚡︎`. */export function formatModelSummary(input: {model: string;/** Authored reasoning level; omitted renders the bare slug. */reasoning?: string;- /** The Fast mode marker glyph, present only when the priority tier is on. */+ /** Speed marker glyph, present for intrinsic speed or the priority tier. */fastGlyph?: string;}): string {- const level = input.reasoning === undefined ? "" : `@${input.reasoning}`;- const fast = input.fastGlyph === undefined ? "" : ` ${input.fastGlyph}`;- return `${input.model}${level}${fast}`;+ const model = input.model.slice(input.model.lastIndexOf("/") + 1).replace(/-fast$/u, "");+ return [model, input.reasoning, input.fastGlyph]+ .filter((segment) => segment !== undefined)+ .join(" · ");}diff --git a/packages/eve/src/source-change/apply-model-selection.test.ts b/packages/eve/src/source-change/apply-model-selection.test.tsindex c641126f6..245bb36c2 100644--- a/packages/eve/src/source-change/apply-model-selection.test.ts+++ b/packages/eve/src/source-change/apply-model-selection.test.ts@@ -35,17 +35,25 @@ describe("applyModelSelectionToSource", () => {expect(result.nextSource).toContain('model: "anthropic/claude-sonnet-5"');});- it("switches the documented no-argument chatgpt() call back to Gateway", async () => {- const source = `import { defineAgent } from "eve";\nimport { chatgpt } from "eve/models/openai";\n\nexport default defineAgent({ model: chatgpt() });\n`;-- const result = await applyModelSelectionToSource(source, "openai/gpt-5.5");-- expect(result.kind).toBe("applied");- if (result.kind !== "applied") return;- expect(result.from).toBe("chatgpt/gpt-5.6-luna-fast");- expect(result.nextSource).not.toContain("eve/models/openai");- expect(result.nextSource).toContain('model: "openai/gpt-5.5"');- });+ it.each([+ ["chatgpt", "chatgpt/gpt-6-luna-fast"],+ ["openai", "openai-api/gpt-6-luna-fast"],+ ])(+ "resolves the no-argument %s() default when switching back to Gateway",+ async (helper, selection) => {+ const source = `import { defineAgent } from "eve";\nimport { ${helper} } from "eve/models/openai";\n\nexport default defineAgent({ model: ${helper}(), reasoning: "low" });\n`;++ expect(await readModelSelectionFromSource(source)).toBe(selection);+ const result = await applyModelSelectionToSource(source, "openai/gpt-5.5");++ expect(result.kind).toBe("applied");+ if (result.kind !== "applied") return;+ expect(result.from).toBe(selection);+ expect(result.nextSource).not.toContain("eve/models/openai");+ expect(result.nextSource).toContain('model: "openai/gpt-5.5"');+ expect(result.nextSource).toContain('reasoning: "low"');+ },+ );it("normalizes an openai-prefixed chatgpt() argument when changing models", async () => {const source = `import { chatgpt } from "eve/models/openai";\nexport default defineAgent({ model: chatgpt("openai/gpt-5.5") });\n`;diff --git a/packages/eve/test/scenarios/compile-agent.scenario.test.ts b/packages/eve/test/scenarios/compile-agent.scenario.test.tsindex b745b0573..c1f0c178b 100644--- a/packages/eve/test/scenarios/compile-agent.scenario.test.ts+++ b/packages/eve/test/scenarios/compile-agent.scenario.test.ts@@ -47,7 +47,7 @@ const ROOT_TYPE_DEFINITIONS = fileURLToPath(const TSC_BIN_PATH = fileURLToPath(new URL("../../../../node_modules/typescript/bin/tsc", import.meta.url),);-const DEFAULT_AGENT_MODEL_ID = "spacexai/grok-4.7";+const DEFAULT_AGENT_MODEL_ID = "openai/gpt-6-luna-fast";function applicationOwnedEntries<TEntry extends { readonly sourceId: string }>(manifest: CompiledAgentManifest,@@ -140,6 +140,7 @@ describe("compiler artifacts", () => {id: DEFAULT_AGENT_MODEL_ID,},name: "test-agent",+ reasoning: "high",});expect(withoutConfig.manifest.config.source).toMatchObject({logicalPath: "agent.ts",@@ -150,6 +151,14 @@ describe("compiler artifacts", () => {withoutConfig.manifest.bindings[withoutConfig.manifest.config.source.sourceId]?.owner,).toEqual({ feature: "eve:defaults", kind: "framework" });+ await writeFile(+ join(agentRoot, "agent.mjs"),+ 'export default { model: "openai/gpt-6-luna-fast" };\n',+ );+ const authoredConfig = await compileAgent({ startPath: appRoot });+ expect(authoredConfig.manifest.config.model?.id).toBe("openai/gpt-6-luna-fast");+ expect(authoredConfig.manifest.config.reasoning).toBeUndefined();+await writeFile(join(agentRoot, "agent.mjs"), "export default {};\n");await expect(compileAgent({ startPath: appRoot })).rejects.toThrow('The "model" field is required.',diff --git a/packages/eve/test/scenarios/eve-init.scenario.test.ts b/packages/eve/test/scenarios/eve-init.scenario.test.tsindex 62273bb21..36b464099 100644--- a/packages/eve/test/scenarios/eve-init.scenario.test.ts+++ b/packages/eve/test/scenarios/eve-init.scenario.test.ts@@ -9,7 +9,6 @@ import { describe, expect, it } from "vitest";import { CODING_AGENT_ENV_MARKERS } from "../../src/setup/primitives/coding-agent-env.js";import { stripAnsi } from "../../src/cli/ui/terminal-text.js";import { loadYaml } from "../../src/evals/loaders/yaml.js";-import { DEFAULT_AGENT_MODEL_ID } from "../../src/shared/default-agent-model.js";import { pathExists } from "../../src/setup/path-exists.js";import { eveDevArguments } from "../../src/setup/primitives/index.js";import { ensureScenarioEveTarballPath } from "../../src/internal/testing/scenario-app.js";@@ -228,7 +227,8 @@ describe("eve init smoke", () => {const packageJson = JSON.parse(await readFile(join(projectDir, "package.json"), "utf8")) as {engines?: { node?: string };};- expect(agentSource).toContain(DEFAULT_AGENT_MODEL_ID);+ expect(agentSource).toContain('model: "openai/gpt-6-luna-fast"');+ expect(agentSource).toContain('reasoning: "high"');expect(packageJson.engines?.node).toBe("24.x");await expect(readFile(join(projectDir, "pnpm-workspace.yaml"), "utf8")).resolves.toContain("minimumReleaseAgeStrict: true",diff --git a/packages/eve/test/setup/mock-ai-gateway.ts b/packages/eve/test/setup/mock-ai-gateway.tsindex d88eff324..31da34fa7 100644--- a/packages/eve/test/setup/mock-ai-gateway.ts+++ b/packages/eve/test/setup/mock-ai-gateway.ts@@ -70,6 +70,7 @@ function collectGatewayModelIds(rootPaths: readonly string[]): ReadonlySet<strin"anthropic/claude-sonnet-5","zai/glm-5.2","openai/gpt-5.6-luna-fast",+ "openai/gpt-6-luna-fast","spacexai/grok-4.7","openai/gpt-5.4","openai/gpt-5.4-mini",