Devstral 2
Mistral coding-agent model entry for software engineering tasks, coding workflows, and agentic development evaluation.
Devstral 2 is Mistral AI’s coding-specialized model, designed specifically for software engineering tasks, code review, and agentic development workflows. Unlike general-purpose models, Devstral 2 is optimized for understanding code context, generating multi-file changes, and maintaining coherence across long editing sessions.
For agentic coding workflows, Devstral 2 excels at tasks that require repository-aware edits, test generation, and iterative debugging. It integrates through the Mistral API and can be used with both Mistral-native SDKs and OpenAI-compatible adapters, making it accessible to teams with existing toolchains.
Compared to general-purpose coding models like GPT-5.5 Codex and Claude Opus 4.7, Devstral 2 is purpose-built for the coding domain rather than being a general model with coding capabilities. Teams should evaluate it on their specific codebase and workflow patterns to determine whether specialized coding performance outweighs the broader capability coverage of general-purpose alternatives.
| Provider | Mistral AI |
|---|---|
| Context Window | Verify from official source |
| Pricing | Verify Mistral pricing, deployment availability, and exact model identifier before production use. |
| API Style | Mistral API |
| SDK | Mistral SDK, custom HTTP client |
| MCP | Works through Mistral-compatible coding Agent adapters when tool workflows are validated. |
| Agent | Good fit for agentic coding workflows where Mistral infrastructure or model families are preferred. |
| RAG | Useful for repository RAG and codebase context workflows when retrieval boundaries are preserved. |
| Source Freshness | recently_verified |
| Version Status | current |
| Version Boundary | Current ContextHub entry for Devstral 2; verify the exact API model ID and hosting path in Mistral documentation before production pinning. |
Key Facts
- Mistral model docs list Devstral 2 as a frontier code agents model for software engineering tasks.
- Mistral provides official SDKs for TypeScript and Python integration.
- Coding-agent use should be validated against repository context handling, tool execution, and deployment availability.
Best For
Not Ideal For
Capability Matrix
| Capability | Status |
|---|---|
| Coding | Strong |
| Agentic Coding | Strong |
| Tool Use | Supported |
| Software Engineering | Supported |
SEO
| SEO Title | Devstral 2 API, Pricing, SDK, MCP & Agent Compatibility |
|---|---|
| Description | Devstral 2 by Mistral AI: Mistral coding-agent model entry for software engineering tasks, coding workflows, and agentic development evaluation. |
| Canonical | /model/devstral-2 |
| Updated | 2026-05-19 |
Compare
| Comparison | Compared With |
|---|---|
| Devstral 2 vs GPT-5.5 Codex | GPT-5.5 Codex |
Compatibility Facts
| Layer | Target | Status | Evidence | Updated |
|---|---|---|---|---|
| sdk | Mistral SDK | supported | Mistral model docs list Devstral 2 for code-agent workflows, and the Mistral TypeScript client documents official API integration. | 2026-05-19 |
FAQ
| What is Devstral 2? | Devstral 2 is tracked as a Mistral coding-agent model for software engineering and agentic development workflows. It should be compared with coding-focused API and open-weight alternatives. |
|---|---|
| What is Devstral 2 best for? | Devstral 2 is best for coding, agent workflow, code review, software engineering tasks. |
| How should Devstral 2 be verified before production use? | Check current pricing, availability, limits, and API behavior against the listed official and GitHub sources. This entry was updated on 2026-05-19. |
| How should agentic coding models be compared? | Agentic coding models should be compared by repository-context handling, tool execution reliability, code review quality, SDK support, and whether the provider publishes stable model identifiers. |
Relationship Facts
| Source | Type | Target | Confidence |
|---|---|---|---|
| devstral-2 | best_for | software engineering tasks | 0.82 |
| devstral-2 | works_with | Mistral SDK | 0.86 |
Sources
| Name | Type | Citation | Last Verified |
|---|---|---|---|
| Mistral Models | docs | Official Mistral model documentation for Devstral model positioning and model catalog status. | 2026-05-19 |
| Mistral TypeScript Client | github | GitHub SDK reference for Mistral TypeScript and JavaScript API integration. | 2026-05-19 |
External Resources
- Mistral Models — Official Mistral model documentation for Devstral model positioning and model catalog status.
- Mistral TypeScript Client — GitHub SDK reference for Mistral TypeScript and JavaScript API integration.