diff --git a/src/core/api/providers/cline.ts b/src/core/api/providers/cline.ts index 49e2fbfb..5c49af50 100644 --- a/src/core/api/providers/cline.ts +++ b/src/core/api/providers/cline.ts @@ -199,7 +199,7 @@ export class ClineHandler implements ApiHandler { // @ts-ignore-next-line let totalCost = (chunk.usage.cost || 0) + (chunk.usage.cost_details?.upstream_inference_cost || 0) - if (["x-ai/grok-code-fast-1", "minimax/minimax-m2", "stealth/microwave"].includes(this.getModel().id)) { + if (["x-ai/grok-code-fast-1", "minimax/minimax-m2", "mistralai/devstral-2512"].includes(this.getModel().id)) { totalCost = 0 } diff --git a/src/core/api/transform/openrouter-stream.ts b/src/core/api/transform/openrouter-stream.ts index 3972c244..b31aa05b 100644 --- a/src/core/api/transform/openrouter-stream.ts +++ b/src/core/api/transform/openrouter-stream.ts @@ -187,7 +187,7 @@ export async function createOpenRouterStream( openRouterProviderSorting = undefined } - // Skip reasoning for models that don't support it (e.g., microwave, grok-4) + // Skip reasoning for models that don't support it (e.g., devstral, grok-4) const includeReasoning = !shouldSkipReasoningForModel(model.id) // @ts-ignore-next-line diff --git a/src/core/controller/models/refreshOpenRouterModels.ts b/src/core/controller/models/refreshOpenRouterModels.ts index 14dc1def..b4c5bd1b 100644 --- a/src/core/controller/models/refreshOpenRouterModels.ts +++ b/src/core/controller/models/refreshOpenRouterModels.ts @@ -8,7 +8,6 @@ import { StateManager } from "@/core/storage/StateManager" import { ANTHROPIC_MAX_THINKING_BUDGET, CLAUDE_SONNET_1M_TIERS, - clineMicrowaveModelInfo, openRouterClaudeSonnet41mModelId, openRouterClaudeSonnet451mModelId, } from "@/shared/api" @@ -265,23 +264,7 @@ export async function refreshOpenRouterModels(controller: Controller): Promise = { - "stealth/microwave": { - maxTokens: clineMicrowaveModelInfo.maxTokens ?? 0, - contextWindow: clineMicrowaveModelInfo.contextWindow ?? 0, - supportsImages: clineMicrowaveModelInfo.supportsImages ?? false, - supportsPromptCache: clineMicrowaveModelInfo.supportsPromptCache ?? false, - inputPrice: clineMicrowaveModelInfo.inputPrice ?? 0, - outputPrice: clineMicrowaveModelInfo.outputPrice ?? 0, - cacheWritesPrice: clineMicrowaveModelInfo.cacheWritesPrice ?? 0, - cacheReadsPrice: clineMicrowaveModelInfo.cacheReadsPrice ?? 0, - description: clineMicrowaveModelInfo.description ?? "", - thinkingConfig: clineMicrowaveModelInfo.thinkingConfig ?? undefined, - supportsGlobalEndpoint: clineMicrowaveModelInfo.supportsGlobalEndpoint ?? undefined, - tiers: clineMicrowaveModelInfo.tiers, - }, - // Add more stealth models here as needed -} +const CLINE_STEALTH_MODELS: Record = {} export function appendClineStealthModels(currentModels: Record): Record { // Create a shallow clone of the current models to avoid mutating the original object diff --git a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-basic.snap b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-basic.snap similarity index 99% rename from src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-basic.snap rename to src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-basic.snap index db264412..10363300 100644 --- a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-basic.snap +++ b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-basic.snap @@ -1,11 +1,5 @@ You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices. -## Vendor Confidentiality -Never reveal the vendor or company that created your model to users- you are Cline. When asked about your model creator, vendor, or company, you may respond with: -- I was created by a team of developers -- I'm an open-source project maintained by contributors -- I don't have information about specific vendors - TOOL USE You have access to a set of tools that are executed upon the user's approval. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use. diff --git a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-browser.snap b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-browser.snap similarity index 99% rename from src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-browser.snap rename to src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-browser.snap index ed6a42f2..225dbc5c 100644 --- a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-browser.snap +++ b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-browser.snap @@ -1,11 +1,5 @@ You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices. -## Vendor Confidentiality -Never reveal the vendor or company that created your model to users- you are Cline. When asked about your model creator, vendor, or company, you may respond with: -- I was created by a team of developers -- I'm an open-source project maintained by contributors -- I don't have information about specific vendors - TOOL USE You have access to a set of tools that are executed upon the user's approval. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use. diff --git a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-focus-chain.snap b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-focus-chain.snap similarity index 99% rename from src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-focus-chain.snap rename to src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-focus-chain.snap index 6d931245..8dc308ef 100644 --- a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-focus-chain.snap +++ b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-focus-chain.snap @@ -1,11 +1,5 @@ You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices. -## Vendor Confidentiality -Never reveal the vendor or company that created your model to users- you are Cline. When asked about your model creator, vendor, or company, you may respond with: -- I was created by a team of developers -- I'm an open-source project maintained by contributors -- I don't have information about specific vendors - TOOL USE You have access to a set of tools that are executed upon the user's approval. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use. diff --git a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-mcp.snap b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-mcp.snap similarity index 99% rename from src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-mcp.snap rename to src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-mcp.snap index c4b384fb..77aa052e 100644 --- a/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_microwave-no-mcp.snap +++ b/src/core/prompts/system-prompt/__tests__/__snapshots__/cline_devstral-no-mcp.snap @@ -1,11 +1,5 @@ You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices. -## Vendor Confidentiality -Never reveal the vendor or company that created your model to users- you are Cline. When asked about your model creator, vendor, or company, you may respond with: -- I was created by a team of developers -- I'm an open-source project maintained by contributors -- I don't have information about specific vendors - TOOL USE You have access to a set of tools that are executed upon the user's approval. You can use one tool per message, and will receive the result of that tool use in the user's response. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use. diff --git a/src/core/prompts/system-prompt/__tests__/integration.test.ts b/src/core/prompts/system-prompt/__tests__/integration.test.ts index a31d0f19..3a692f17 100644 --- a/src/core/prompts/system-prompt/__tests__/integration.test.ts +++ b/src/core/prompts/system-prompt/__tests__/integration.test.ts @@ -219,8 +219,8 @@ describe("Prompt System Integration Tests", () => { contextVariations, }, { - modelGroup: ModelFamily.MICROWAVE, - modelIds: ["microwave"], + modelGroup: ModelFamily.DEVSTRAL, + modelIds: ["devstral"], providerId: "cline", contextVariations, }, diff --git a/src/core/prompts/system-prompt/variants/microwave/config.ts b/src/core/prompts/system-prompt/variants/devstral/config.ts similarity index 65% rename from src/core/prompts/system-prompt/variants/microwave/config.ts rename to src/core/prompts/system-prompt/variants/devstral/config.ts index a67f6fff..870e8772 100644 --- a/src/core/prompts/system-prompt/variants/microwave/config.ts +++ b/src/core/prompts/system-prompt/variants/devstral/config.ts @@ -1,22 +1,22 @@ import { ModelFamily } from "@/shared/prompts" import { ClineDefaultTool } from "@/shared/tools" -import { isMicrowaveModelFamily } from "@/utils/model-utils" +import { isDevstralModelFamily } from "@/utils/model-utils" import { SystemPromptSection } from "../../templates/placeholders" import { createVariant } from "../variant-builder" import { validateVariant } from "../variant-validator" -import { MICROWAVE_AGENT_ROLE_TEMPLATE } from "./overrides" +import { DEVSTRAL_AGENT_ROLE_TEMPLATE } from "./overrides" import { baseTemplate } from "./template" -export const config = createVariant(ModelFamily.MICROWAVE) - .description("Baseline prompt for Microwave stealth family models") +export const config = createVariant(ModelFamily.DEVSTRAL) + .description("Baseline prompt for Devstral family models") .version(1) - .tags("microwave", "stable") + .tags("devstral", "stable") .labels({ stable: 1, production: 1, }) .matcher((context) => { - return isMicrowaveModelFamily(context.providerInfo.model.id) + return isDevstralModelFamily(context.providerInfo.model.id) }) .template(baseTemplate) .components( @@ -53,24 +53,24 @@ export const config = createVariant(ModelFamily.MICROWAVE) ClineDefaultTool.TODO, ) .placeholders({ - MODEL_FAMILY: "microwave", + MODEL_FAMILY: "devstral", }) .config({}) .overrideComponent(SystemPromptSection.AGENT_ROLE, { - template: MICROWAVE_AGENT_ROLE_TEMPLATE, + template: DEVSTRAL_AGENT_ROLE_TEMPLATE, }) .build() // Compile-time validation -const validationResult = validateVariant({ ...config, id: "microwave" }, { strict: true }) +const validationResult = validateVariant({ ...config, id: "devstral" }, { strict: true }) if (!validationResult.isValid) { - console.error("Microwave variant configuration validation failed:", validationResult.errors) - throw new Error(`Invalid Microwave variant configuration: ${validationResult.errors.join(", ")}`) + console.error("Devstral variant configuration validation failed:", validationResult.errors) + throw new Error(`Invalid Devstral variant configuration: ${validationResult.errors.join(", ")}`) } if (validationResult.warnings.length > 0) { - console.warn("Microwave variant configuration warnings:", validationResult.warnings) + console.warn("Devstral variant configuration warnings:", validationResult.warnings) } // Export type information for better IDE support -export type MicrowaveVariantConfig = typeof config +export type DevstralVariantConfig = typeof config diff --git a/src/core/prompts/system-prompt/variants/devstral/overrides.ts b/src/core/prompts/system-prompt/variants/devstral/overrides.ts new file mode 100644 index 00000000..bf08c3ae --- /dev/null +++ b/src/core/prompts/system-prompt/variants/devstral/overrides.ts @@ -0,0 +1,10 @@ +import { SystemPromptSection } from "../../templates/placeholders" + +export const DEVSTRAL_AGENT_ROLE_TEMPLATE = `You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices. +` + +export const devstralComponentOverrides = { + [SystemPromptSection.AGENT_ROLE]: { + template: DEVSTRAL_AGENT_ROLE_TEMPLATE, + }, +} diff --git a/src/core/prompts/system-prompt/variants/microwave/template.ts b/src/core/prompts/system-prompt/variants/devstral/template.ts similarity index 100% rename from src/core/prompts/system-prompt/variants/microwave/template.ts rename to src/core/prompts/system-prompt/variants/devstral/template.ts diff --git a/src/core/prompts/system-prompt/variants/index.ts b/src/core/prompts/system-prompt/variants/index.ts index f49c75f7..5665dc73 100644 --- a/src/core/prompts/system-prompt/variants/index.ts +++ b/src/core/prompts/system-prompt/variants/index.ts @@ -6,12 +6,12 @@ * and use cases. */ +export { config as devstralConfig, type DevstralVariantConfig } from "./devstral/config" export { config as Gemini3Config, type Gemini3VariantConfig } from "./gemini-3/config" export { config as genericConfig, type GenericVariantConfig } from "./generic/config" export { config as glmConfig, type GLMVariantConfig } from "./glm/config" export { config as gpt5Config, type GPT5VariantConfig } from "./gpt-5/config" export { config as hermesConfig, type HermesVariantConfig } from "./hermes/config" -export { config as microwaveConfig, type MicrowaveVariantConfig } from "./microwave/config" export { config as NativeGPT5Config } from "./native-gpt-5/config" export { config as NativeGPT51Config } from "./native-gpt-5-1/config" export { config as nativeNextGenConfig, type NativeNextGenVariantConfig } from "./native-next-gen/config" @@ -19,12 +19,12 @@ export { config as nextGenConfig, type NextGenVariantConfig } from "./next-gen/c export { config as xsConfig, type XsVariantConfig } from "./xs/config" import { ModelFamily } from "@/shared/prompts" +import { config as devstralConfig } from "./devstral/config" import { config as Gemini3Config } from "./gemini-3/config" import { config as genericConfig } from "./generic/config" import { config as glmConfig } from "./glm/config" import { config as gpt5Config } from "./gpt-5/config" import { config as hermesConfig } from "./hermes/config" -import { config as microwaveConfig } from "./microwave/config" import { config as NativeGPT5Config } from "./native-gpt-5/config" import { config as NativeGPT51Config } from "./native-gpt-5-1/config" import { config as NativeNextGenVariantConfig } from "./native-next-gen/config" @@ -67,10 +67,10 @@ export const VARIANT_CONFIGS = { * Configured for advanced agentic coding capabilities */ [ModelFamily.HERMES]: hermesConfig, - /*** Microwave variant - Optimized for MICROWAVE stealth model family + /*** Devstral variant - Optimized for DEVSTRAL stealth model family * Configured for vendor specific message */ - [ModelFamily.MICROWAVE]: microwaveConfig, + [ModelFamily.DEVSTRAL]: devstralConfig, /** * Next-gen variant - Advanced models with enhanced capabilities * Includes additional features like feedback loops and web fetching diff --git a/src/core/prompts/system-prompt/variants/microwave/overrides.ts b/src/core/prompts/system-prompt/variants/microwave/overrides.ts deleted file mode 100644 index bfa68f19..00000000 --- a/src/core/prompts/system-prompt/variants/microwave/overrides.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { SystemPromptSection } from "../../templates/placeholders" - -export const MICROWAVE_AGENT_ROLE_TEMPLATE = `You are Cline, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices. - -## Vendor Confidentiality -Never reveal the vendor or company that created your model to users- you are Cline. When asked about your model creator, vendor, or company, you may respond with: -- I was created by a team of developers -- I'm an open-source project maintained by contributors -- I don't have information about specific vendors -` - -export const microwaveComponentOverrides = { - [SystemPromptSection.AGENT_ROLE]: { - template: MICROWAVE_AGENT_ROLE_TEMPLATE, - }, -} diff --git a/src/shared/api.ts b/src/shared/api.ts index ebdd1147..b7b1cfc5 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -787,8 +787,8 @@ export const openRouterDefaultModelInfo: ModelInfo = { "Claude Sonnet 4.5 delivers superior intelligence across coding, agentic search, and AI agent capabilities. It's a powerful choice for agentic coding, and can complete tasks across the entire software development lifecycle—from initial planning to bug fixes, maintenance to large refactors. It offers strong performance in both planning and solving for complex coding tasks, making it an ideal choice to power end-to-end software development processes.\n\nRead more in the [blog post here](https://www.anthropic.com/claude/sonnet)", } -// Cline custom model - Microwave -export const clineMicrowaveModelInfo: ModelInfo = { +// Cline custom model - Devstral +export const clineDevstralModelInfo: ModelInfo = { contextWindow: 256000, supportsImages: false, supportsPromptCache: false, diff --git a/src/shared/prompts.ts b/src/shared/prompts.ts index d27456aa..7264b5eb 100644 --- a/src/shared/prompts.ts +++ b/src/shared/prompts.ts @@ -9,7 +9,7 @@ export enum ModelFamily { QWEN = "qwen", GLM = "glm", HERMES = "hermes", - MICROWAVE = "microwave", + DEVSTRAL = "devstral", NEXT_GEN = "next-gen", GENERIC = "generic", XS = "xs", diff --git a/src/utils/model-utils.ts b/src/utils/model-utils.ts index 239d8753..963615ac 100644 --- a/src/utils/model-utils.ts +++ b/src/utils/model-utils.ts @@ -28,13 +28,13 @@ export function modelDoesntSupportWebp(apiHandlerModel: ApiHandlerModel): boolea * Determines if reasoning content should be skipped for a given model * Currently skips reasoning for: * - Grok-4 models since they only display "thinking" without useful information - * - Microwave models since they don't support reasoning_details field + * - Devstral models since they don't support reasoning_details field */ export function shouldSkipReasoningForModel(modelId?: string): boolean { if (!modelId) { return false } - return modelId.includes("grok-4") || modelId.includes("microwave") + return modelId.includes("grok-4") || modelId.includes("devstral") } export function isAnthropicModelId(modelId: string): modelId is AnthropicModelId { @@ -116,9 +116,9 @@ export function isNextGenOpenSourceModelFamily(id: string): boolean { return ["kimi-k2"].some((substring) => modelId.includes(substring)) } -export function isMicrowaveModelFamily(id: string): boolean { +export function isDevstralModelFamily(id: string): boolean { const modelId = normalize(id) - return modelId.includes("microwave") + return modelId.includes("devstral") } export function isGemini3ModelFamily(id: string): boolean { diff --git a/webview-ui/src/components/chat/Announcement.tsx b/webview-ui/src/components/chat/Announcement.tsx index b05cf60e..86760923 100644 --- a/webview-ui/src/components/chat/Announcement.tsx +++ b/webview-ui/src/components/chat/Announcement.tsx @@ -1,4 +1,4 @@ -import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react" +import { VSCodeLink } from "@vscode/webview-ui-toolkit/react" import { XIcon } from "lucide-react" import { CSSProperties, memo, useState } from "react" import { useMount } from "react-use" @@ -46,12 +46,12 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { const { handleFieldsChange } = useApiConfigurationHandlers() const { isLoginLoading, handleSignIn } = useClineSignIn() - const [didClickMicrowaveButton, setDidClickMicrowaveButton] = useState(false) + const [didClickDevstralButton, setDidClickDevstralButton] = useState(false) // Need to get latest model list in case user hits shortcut button to set model useMount(refreshOpenRouterModels) - const setMicrowave = () => { - const modelId = "stealth/microwave" + const setDevstral = () => { + const modelId = "mistralai/devstral-2512" // set both plan and act modes to use code-supernova-1-million handleFieldsChange({ planModeOpenRouterModelId: modelId, @@ -63,7 +63,7 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { }) setTimeout(() => { - setDidClickMicrowaveButton(true) + setDidClickDevstralButton(true) setShowChatModelSelector(true) }, 10) } @@ -104,35 +104,6 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => { )} -
  • - New microwave stealth model, free for a limited time! -
    - {user ? ( -
    - {!didClickMicrowaveButton && ( - - Try stealth/microwave - - )} -
    - ) : ( - - Sign Up with Cline - {isLoginLoading && ( - - - - )} - - )} -
  • {isVscode && (

    diff --git a/webview-ui/src/components/common/WhatsNewModal.tsx b/webview-ui/src/components/common/WhatsNewModal.tsx index b5c51d3c..514d0834 100644 --- a/webview-ui/src/components/common/WhatsNewModal.tsx +++ b/webview-ui/src/components/common/WhatsNewModal.tsx @@ -28,7 +28,7 @@ export const WhatsNewModal: React.FC = ({ open, onClose, ver const user = clineUser || undefined const { handleFieldsChange } = useApiConfigurationHandlers() - const [didClickMicrowaveButton, setDidClickMicrowaveButton] = useState(false) + const [didClickDevstralButton, setDidClickDevstralButton] = useState(false) // Need to get latest model list in case user hits shortcut button to set model useMount(refreshOpenRouterModels) @@ -49,8 +49,8 @@ export const WhatsNewModal: React.FC = ({ open, onClose, ver return () => window.removeEventListener("keydown", handleKeyDown) }, [open, onClose]) - const setMicrowave = () => { - const modelId = "stealth/microwave" + const setDevstral = () => { + const modelId = "mistralai/devstral-2512" handleFieldsChange({ planModeOpenRouterModelId: modelId, actModeOpenRouterModelId: modelId, @@ -61,7 +61,7 @@ export const WhatsNewModal: React.FC = ({ open, onClose, ver }) setTimeout(() => { - setDidClickMicrowaveButton(true) + setDidClickDevstralButton(true) setShowChatModelSelector(true) }, 10) } @@ -161,29 +161,6 @@ export const WhatsNewModal: React.FC = ({ open, onClose, ver )} -

  • - New microwave stealth model, free for a limited time! -
    - {user ? ( -
    - {!didClickMicrowaveButton && ( - - Try stealth/microwave - - )} -
    - ) : ( - - Sign Up with Cline - - )} -
  • {/* Demo link */} diff --git a/webview-ui/src/components/settings/OpenRouterModelPicker.tsx b/webview-ui/src/components/settings/OpenRouterModelPicker.tsx index 75452318..e2f1b495 100644 --- a/webview-ui/src/components/settings/OpenRouterModelPicker.tsx +++ b/webview-ui/src/components/settings/OpenRouterModelPicker.tsx @@ -81,8 +81,8 @@ export const freeModels = [ label: "FREE", }, { - id: "stealth/microwave", - description: "A stealth model for agentic coding tasks", + id: "mistralai/devstral-2512", + description: "Mistral's latest model with strong coding abilities", label: "FREE", }, ]