diff --git a/apps/cli/README.md b/apps/cli/README.md index 76e66573eb..740fb79ea8 100644 --- a/apps/cli/README.md +++ b/apps/cli/README.md @@ -157,7 +157,7 @@ Tokens are valid for 90 days. The CLI will prompt you to re-authenticate when yo | `-y, --yes` | Non-interactive mode: auto-approve all actions | `false` | | `-k, --api-key ` | API key for the LLM provider | From env var | | `-p, --provider ` | API provider (anthropic, openai, openrouter, etc.) | `openrouter` | -| `-m, --model ` | Model to use | `anthropic/claude-sonnet-4.5` | +| `-m, --model ` | Model to use | `anthropic/claude-opus-4.5` | | `-M, --mode ` | Mode to start in (code, architect, ask, debug, etc.) | `code` | | `-r, --reasoning-effort ` | Reasoning effort level (unspecified, disabled, none, minimal, low, medium, high, xhigh) | `medium` | | `--ephemeral` | Run without persisting state (uses temporary storage) | `false` | @@ -189,7 +189,7 @@ roo acp [options] | --------------------------- | -------------------------------------------- | ----------------------------- | | `-e, --extension ` | Path to the extension bundle directory | Auto-detected | | `-p, --provider ` | API provider (anthropic, openai, openrouter) | `openrouter` | -| `-m, --model ` | Model to use | `anthropic/claude-sonnet-4.5` | +| `-m, --model ` | Model to use | `anthropic/claude-opus-4.5` | | `-M, --mode ` | Initial mode (code, architect, ask, debug) | `code` | | `-k, --api-key ` | API key for the LLM provider | From env var | diff --git a/apps/cli/src/acp/agent.ts b/apps/cli/src/acp/agent.ts index a0154cb340..7557419911 100644 --- a/apps/cli/src/acp/agent.ts +++ b/apps/cli/src/acp/agent.ts @@ -14,7 +14,7 @@ import { DEFAULT_FLAGS } from "@/types/constants.js" import { AcpSession, type AcpSessionOptions } from "./session.js" import { acpLog } from "./logger.js" import { ModelService, createModelService } from "./model-service.js" -import { type ExtendedNewSessionResponse, type AcpModelState, DEFAULT_MODELS } from "./types.js" +import { type ExtendedNewSessionResponse, type AcpModelState } from "./types.js" import { envVarMap } from "@/lib/utils/provider.js" // ============================================================================= @@ -223,7 +223,7 @@ export class RooCodeAgent implements acp.Agent { * Get the current model state. */ private async getModelState(): Promise { - const currentModelId = this.options.model || DEFAULT_MODELS[0]!.modelId + const currentModelId = this.options.model || DEFAULT_FLAGS.model return this.modelService.getModelState(currentModelId) } diff --git a/apps/cli/src/acp/types.ts b/apps/cli/src/acp/types.ts index cc0789726e..a6f03fcdea 100644 --- a/apps/cli/src/acp/types.ts +++ b/apps/cli/src/acp/types.ts @@ -55,16 +55,16 @@ export interface ExtendedNewSessionResponse extends acp.NewSessionResponse { * These map to Roo Code Cloud model tiers. */ export const DEFAULT_MODELS: AcpModel[] = [ - { - modelId: "anthropic/claude-sonnet-4.5", - name: "Claude Sonnet 4.5", - description: "Best balance of speed and capability", - }, { modelId: "anthropic/claude-opus-4.5", name: "Claude Opus 4.5", description: "Most capable for complex work", }, + { + modelId: "anthropic/claude-sonnet-4.5", + name: "Claude Sonnet 4.5", + description: "Best balance of speed and capability", + }, { modelId: "anthropic/claude-haiku-4.5", name: "Claude Haiku 4.5", diff --git a/apps/cli/src/types/constants.ts b/apps/cli/src/types/constants.ts index f11973bf45..04abb90ad4 100644 --- a/apps/cli/src/types/constants.ts +++ b/apps/cli/src/types/constants.ts @@ -3,7 +3,7 @@ import { reasoningEffortsExtended } from "@roo-code/types" export const DEFAULT_FLAGS = { mode: "code", reasoningEffort: "medium" as const, - model: "anthropic/claude-4.5-sonnet", + model: "anthropic/claude-opus-4.5", provider: "openrouter", }