Repository-scale coding agents
Use it when an agent needs to inspect a codebase, call tools, plan changes, and edit multiple files.
Independent tool overview
Devstral was Mistral AI's family of models for software-engineering agents. Mistral deprecated Devstral 2 in May 2026 and recommends Mistral Medium 3.5 for new integrations.
Visit the official Devstral site ↗
Overview
Mistral introduced Devstral in 2025 as a model built for code agents that inspect repositories, use tools, edit multiple files, and work through real software-engineering tasks. The family progressed from the Apache 2.0 Devstral Small releases to Devstral 2 and Devstral Small 2.
The standalone Devstral models are now deprecated. Mistral's current replacement is Mistral Medium 3.5, a 128B open-weight multimodal model optimized for agentic and coding workloads with a 256K context window. It also powers Mistral's current Vibe remote coding agents.
That transition matters for buyers and developers: Devstral remains useful historical context, but new API integrations should target Mistral Medium 3.5 instead of an older Devstral model ID. Teams can use the hosted API or evaluate the released weights under Mistral's Modified MIT license.
Use cases
The strongest fit depends on the job you need the product to complete, not the size of its feature list.
Use it when an agent needs to inspect a codebase, call tools, plan changes, and edit multiple files.
The 256K context window and agent-oriented training suit debugging, refactoring, and multi-step implementation work.
Mistral publishes weights for Medium 3.5, giving qualified teams a path beyond a hosted-only API.
Capabilities
Designed for software-engineering workflows that combine reasoning, repository exploration, tool use, and code changes.
The current replacement can process large code and documentation contexts in one interaction.
Supports function calling, structured outputs, agents, conversations, and chat completions through Mistral's APIs.
Mistral Medium 3.5 expands beyond the original text-focused Devstral line with multimodal capabilities.
Use Mistral's managed API or evaluate the released weights for controlled deployment requirements.
Process
Step 1
Start new integrations with `mistral-medium-3-5`, not a deprecated Devstral model ID.
Step 2
Provide the model with repository access and narrowly scoped tools for search, editing, testing, and version control.
Step 3
Require human approval for sensitive commands, dependency changes, deployments, and destructive operations.
Step 4
Measure task completion, test pass rate, latency, and token cost on representative engineering work before rollout.
Cost
Mistral Medium 3.5 is usage-priced through the Mistral API. Self-hosting the open weights adds infrastructure and operations costs.
$1.50 per 1M tokens
Hosted input-token pricing for Mistral Medium 3.5.
$7.50 per 1M tokens
Hosted output-token pricing for Mistral Medium 3.5.
Infrastructure costs apply
Weights are available under Mistral's Modified MIT license.
Pricing checked . Check current pricing at the source ↗
Assessment
Compare
The right alternative depends on the specific output, workflow, controls and budget your project requires.
Coding
A polished coding agent with strong terminal and repository workflows.
Explore Claude Code →Coding
A full AI code editor for developers who want an integrated desktop experience.
Explore Cursor →Agents
Explore Mistral's broader current model and platform lineup.
Explore Mistral AI →Questions
The original Devstral line is no longer the recommended choice for new integrations. Mistral marks Devstral 2 as deprecated and directs developers to Mistral Medium 3.5.
Mistral Medium 3.5 is the official replacement. It is a 128B open-weight multimodal model optimized for agentic and coding work.
Mistral lists Medium 3.5 at $1.50 per million input tokens and $7.50 per million output tokens through its hosted API.
Mistral publishes Medium 3.5 weights under a Modified MIT license. Self-hosting is possible for teams with suitable compute, security, and model-operations capacity.
Treat model output as untrusted until tested and reviewed. Limit tool permissions, isolate execution, protect secrets, and require human approval for deployments or destructive actions.
Bottom line
Devstral established Mistral's coding-agent line, but new users should evaluate Mistral Medium 3.5 instead. It is compelling for teams that want strong agentic coding capabilities plus an open-weight option, provided they can manage the review and infrastructure requirements.
Visit Devstral website ↗
Get access to all our AI courses, hundreds of real-world AI use cases, live expert-led workshops, an exclusive network of AI early adopters, and more.
Get unlimited access to all of our current & upcoming industry-specific AI courses for the duration of your subscription.
To keep up with the rapid pace of AI, our team publishes AI implementation guides daily. Our library contains 300+ practical use cases to automate real-world work.
Join weekly, live, interactive sessions with industry leaders who are at the forefront of AI for hands-on implementation guidance and exclusive insights.
Network with an exclusive community of AI-first professionals who are working smarter with AI. Learn how early adopters are using AI in their work and businesses.