Skip to content
trendecs

What shipped in AI.
What it means in practice.

Trendecs · Published: · 2 min read

Mistral released Codestral to fill gaps in existing code, not just finish a prompt

The 22-billion-parameter model could use the lines on both sides of a cursor. Mistral offered downloadable weights for testing, a waitlisted free beta for a dedicated endpoint and a separate metered API.

A translucent orange block hovers over a single gap in a row of wooden typesetter blocks.
Original Trendecs illustration.

What changed

Codestral was Mistral’s first model aimed specifically at writing code. It supported ordinary prompts, but its editor-oriented feature was fill-in-the-middle: given the code above and below a gap, suggest the missing lines. A chatbot can be shown the same context, but in an editor the suggestion lands at the cursor instead of arriving as a separate answer to copy and paste. The original model had 22 billion parameters and a context window of about 32,000 tokens.

Why it matters

Most editing happens inside files that already exist. Consider a missing branch in a function whose next lines expect a particular return value. A suggestion that uses both sides can fit the local code without repeating what is already there. It can still misunderstand what the function is meant to do, and it can still suggest a change that compiles but fails a test. The benefit is less friction between writing and reviewing, not a substitute for either.

The inbox edition

Get the Trendecs brief

A curated look at what shipped in AI, in your inbox. Get it weekly or monthly. No account needed.

Confirm by email. Change your frequency or unsubscribe whenever you like. Privacy