Devstral 2
Devstral 2 is a 123B open-weight agentic coding model with 72.2% on SWE-bench Verified, a context window of 256K tokens, and support for codebase exploration and multi-file orchestration.
import { streamText } from 'ai'
const result = streamText({ model: 'mistral/devstral-2', prompt: 'Why is the sky blue?'})Frequently Asked Questions
What is Devstral 2's score on SWE-bench Verified?
72.2% on SWE-bench Verified, per Mistral AI's Devstral 2 announcement.
What is the context window?
256K tokens, enabling entire repositories, long test suites, and complex dependency chains to be held in context simultaneously.
What license does Devstral 2 use?
A modified MIT license that permits commercial deployments.
How does Devstral 2 differ from Devstral Small 2?
Devstral 2 (123B) outperforms Devstral Small 2 (24B) on benchmarks. Devstral Small 2 is 24B parameters, supports image inputs, and uses the Apache 2.0 license.
Can Devstral 2 handle failure detection and auto-correction?
Yes. Automated failure detection with auto-correction is a listed production workflow capability.