OpenRouter model
Mistral: Codestral 2508
Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. [Blog Post](provider documentation
- Provider
- OpenRouter
- Availability
- Available
- Model ID
- mistralai/codestral-2508
- Snapshot
- 2026-10-07
Mistral: Codestral 2508 Benchmarks & Agentic Accuracy
Verified primary research & developer preference metrics
What This Means in Real Software Development
- Specialized for code generation with 256k context window and native Fill-In-the-Middle (FIM) support.
- Scores 43.5% on SWE-bench Verified with rapid single-pass patch generation.
- High throughput (90 TPS) provides fast turn-around in interactive coding sessions.
- Economical $0.30/M input pricing on Mistral AI and OpenRouter.
Swarm Multi-Agent Topology
Best Paired With: Claude 3.7 Sonnet as Lead Planner
Excellent for isolated function implementation, refactoring routines, and syntax patching in Task Programs.
Authors and validates code diffs within isolated Git worktrees.
What Developers & Practitioners Are Saying
Real-world field observations, production strengths, and developer consensus
"Mistral's dedicated code generation model. Extremely fast with a focused 256k context window, specifically tuned for fill-in-the-middle (FIM) and code completion."
Verified Real-World Strengths
- Superior fill-in-the-middle (FIM) performance for IDE tab completion
- Low latency (~90 TPS) with affordable pricing ($0.30/M in, $0.90/M out)
- Fluent in over 80 programming languages
Production Caveats & Gaps
- SWE-bench score (34.0%) reflects weaker high-level multi-file planning
- Better suited as an implementation subagent than a lead architect
Primary Sources & Methodology Citations
- Codestral 2508 Release and Benchmarks — Mistral AI (August 2025)
Mistral: Codestral 2508 model overview
Mistral: Codestral 2508 is listed in the public Swarm catalog through OpenRouter. This page summarizes the verified catalog fields used by Swarm without claiming real-time access for every provider account.
- Provider
- OpenRouter
- Family
- OpenRouter
- Context window
- 256K tokens
- Thinking support
- Not supported
- Availability status
- Available
- Catalog ID
- openrouter/mistralai/codestral-2508
Run Mistral: Codestral 2508 in Swarm
Verified CLI workflow & multi-agent architecture
swarm ctl model set --provider openrouter --model openrouter/mistralai/codestral-2508# Or switch interactively inside the terminal TUI:
/modelsSubagent Role Matrix
Assign Mistral: Codestral 2508 to specialized system roles in ~/.swarm/config.json:
- Primary / Planner: Orchestrates full task DAGs and multi-stage pipelines.
- Coder Subagent: Generates code and unit tests inside private Git worktrees.
- Finder Subagent: Performs read-only code search, symbol discovery, and mapping.
Public catalog snapshot. Catalog availability is not a real-time provider status or an access guarantee.