31 comments

  • cadamsdotcom 2 hours ago
    It’s great to see this pattern of people realising that agents can specify the desired behavior then write code to conform to the specs.

    TDD, verification, whatever your tool; verification suites of all sorts accrue over time into a very detailed repository of documentation of how things are supposed to work that, being executable, puts zero tokens in the context when the code is correct.

    It’s more powerful than reams upon reams of markdown specs. That’s because it encodes details, not intent. Your intent is helpful at the leading edge of the process, but the codified result needs shoring up to prevent regression. That’s the area software engineering has always ignored because we have gotten by on letting teams hold context in their heads and docs.

    As software gets more complex we need better solutions than “go ask Jim about that, bloke’s been in the code for years”.

    • BowBun 26 minutes ago
      I feel like the difference is minimal, if not entirely dismissable. Code in this sense is just a representation of the same information as someone would write in an .md file. The resolution changes, and that's where both detail and context are lost.

      I'm not against TDD or verification-first development, but I don't think writing that as code is the end-goal. I'll concede that there's millions of lines of tests that already exist, so we should be using those as a foundation while everything else catches up.

    • tonymet 38 minutes ago
      AI is the reality that TDD never before had the opportunity to live up to
    • refulgentis 1 hour ago
      I've seen this sentiment and am a big fan of it, but I was confused by the blog post, and based on your comment you might be able to help: how does Lean help me? FWIW, context is: code Dart/Flutter day to day.

      I can think of some strawmen: for example, prove a state machine in Lean, then port the proven version to Dart? But I'm not familiar enough with Lean to know if that's like saying "prove moon made of cheese with JavaScript, then deploy to the US mainframe"

      • Paracompact 33 minutes ago
        I don't think he's referring to Lean specifically, but any sort of executable testing methodology. It removes the human in the loop in the confidence assurance story, or at least greatly reduces their labor. You cannot ever get such assurance just by saying, "Well this model seems really smart to me!" At best, you would wind up with AI-Jim.

        (One way Lean or Rocq could help you directly, though, would be if you coded your program in it and then compiled it to C via their built-in support for it. Such is very difficult at the moment, however, and in the industry is mostly reserved for low-level, high-consequence systems.)

        • refulgentis 6 minutes ago
          But isn't that tantamount with "his comment is a complete non-sequitor"?
  • lsb 5 hours ago
    The real world success they report reminds me of Simon Willison’s Red Green TDD: https://simonwillison.net/guides/agentic-engineering-pattern...

    > Instead of taking a stab in the dark, Leanstral rolled up its sleeves. It successfully built test code to recreate the failing environment and diagnosed the underlying issue with definitional equality. The model correctly identified that because def creates a rigid definition requiring explicit unfolding, it was actively blocking the rw tactic from seeing the underlying structure it needed to match.

    • jatins 2 hours ago
      If Agent is writing the tests itself, does it offer better correctness guarantees than letting it write code and tests?
      • MillionOClock 47 minutes ago
        It is definitely not foolproof but IMHO, to some extent, it is easier to describe what you expect to see than to implement it so I don't find it unreasonable to think it might provide some advantages in terms of correctness.
        • stingraycharles 1 minute ago
          That definitely depends upon the situation. More often than not, properly testing a component takes me more time than writing it.
    • skanga 4 hours ago
      TDD == Prompt Engineering, for Agentic coding tasks.
      • _boffin_ 2 hours ago
        Wild it’s taken people this long to realize this. Also lean tickets / tasks with all needed context to complete the task, including needed references / docs, places to look in source, acceptance criteria, other stuff.
  • rothific 3 hours ago
    There have been a lot of conversations recently about how model alignment is relative and diversity of alignment is important - see the recent podcast episode between Jack Clark (co-founder of Anthropic) and Ezra Klein.

    Many comments here point out that Mistral's models are not keeping up with other frontier models - this has been my personal experience as well. However, we need more diversity of model alignment techniques and companies training them - so any company taking this seriously is valuable.

  • jasonjmcghee 5 hours ago
    Curious if anyone else had the same reaction as me

    This model is specifically trained on this task and significantly[1] underperforms opus.

    Opus costs about 6x more.

    Which seems... totally worth it based on the task at hand.

    [1]: based on the total spread of tested models

    • beernet 5 hours ago
      Agreed. The idea is nice and honorable. At the same time, if AI has been proving one thing, it's that quality usually reigns over control and trust (except for some sensitive sectors and applications). Of course it's less capital-intense, so makes sense for a comparably little EU startup to focus on that niche. Likely won't spin the top line needle much, though, for the reasons stated.
      • segmondy 3 hours ago
        Ha, keep putting your prompts and workflows into cloud models. They are not okay with being a platform, they intend to cannibalize all businesses. Quality doesn't always reign over control and trust. Your data and original ideas are your edge and moat.
      • miohtama 4 hours ago
        Alignment tax directly eats to model quality, double digit percents.
      • hermanzegerman 4 hours ago
        EU could help them very much if they would start enforcing the Laws, so that no US Company can process European data, due to the Americans not willing to budge on Cloud Act.

        That would also help to reduce our dependency on American Hyperscalers, which is much needed given how untrustworthy the US is right now. (And also hostile towards Europe as their new security strategy lays out)

        • bcye 3 hours ago
          This would be unfortunately a rather nuclear option due to the continent’s insane reliance on technology that breaks its unenforced laws.
    • DarkNova6 5 hours ago
      I'm never sure how much faith one can put into such benchmarks but in any case the optics seem to shift once you have pass@2 and pass@3.

      Still, the more interesting comparison would be against something such as Codex.

    • nimchimpsky 3 hours ago
      [dead]
  • drdaeman 2 hours ago
    Can someone please explain... If I don't know any Lean (and I suspect most people don't), is it of any direct value? Trying to understand if there's something it can help me with (e.g. automatically write proofs for my Go programs somehow... I'm not sure) or should I just cheer solely for more open models out there, but this one isn't for me?
    • TimTheTinker 1 hour ago
      Presumably the idea is that an agent generates a Lean4 specification against which the software is measured.

      But then the Lean4 specification effectively becomes the software artifact.

      And we're sort of back to square 1. How do you verify a Lean4 spec is correct (and that it describes what needs to be built in the first place) without human review?

      • justboy1987 43 minutes ago
        You're touching on the fundamental "who watches the watchmen" problem in formal verification. But I think the framing slightly misses the key asymmetry: reviewing a Lean4 spec is dramatically easier than reviewing the implementation it constrains.

        A formal spec in Lean is typically 10-50x shorter than the code it proves correct. More importantly, Lean's type checker is itself a small, trusted kernel (~10k lines) that has been scrutinized by the PL community for years. So you're not trusting the agent — you're trusting the kernel.

        The practical workflow isn't "agent writes spec + code." It's: human writes spec (the hard creative part), agent generates proof that code satisfies spec, Lean kernel mechanically checks the proof. The agent can hallucinate all it wants in step 2 — if the proof doesn't typecheck, it gets rejected deterministically.

        The real bottleneck is step 1: writing good specs requires domain expertise. But that's exactly where humans should stay in the loop. It's a much better division of labor than reviewing thousands of lines of generated code.

  • andai 5 hours ago
    Trustworthy vibe coding. Much better than the other kind!

    Not sure I really understand the comparisons though. They emphasize the cost savings relative to Haiku, but Haiku kinda sucks at this task, and Leanstral is worse? If you're optimizing for correctness, why would "yeah it sucks but it's 10 times cheaper" be relevant? Or am I misunderstanding something?

    On the promising side, Opus doesn't look great at this benchmark either — maybe we can get better than Opus results by scaling this up. I guess that's the takeaway here.

    • flowerbreeze 5 hours ago
      They haven't made the chart very clear, but it seems it has configurable passes and at 2 passes it's better than Haiku and Sonnet and at 16 passes starts closing in on Opus although it's not quite there, while consistently being less expensive than Sonnet.
      • ainch 2 hours ago
        pass@k means that you run the model k times and give it a pass if any of the answers is correct. I guess Lean is one of the few use cases where pass@k actually makes sense, since you can automatically validate correctness.
      • andai 5 hours ago
        Oh my bad. I'm not sure how that works in practice. Do you just keep running it until the tests pass? I guess with formal verification you can run it as many times as you need, right?
    • DrewADesign 5 hours ago
      It’s really not hard — just explicitly ask for trustworthy outputs only in your prompt, and Bob’s your uncle.
      • miacycle 4 hours ago
        Assuming that what you're dealing with is assertable. I guess what I mean to say is that in some situations is difficult to articulate what is correct and what isn't depending in some situations is difficult to articulate what is correct and what isn't depending upon the situation in which the software executes.
  • esperent 4 hours ago
    I absolutely called this a couple of weeks ago, nice to be vindicated!

    > I'm interested to see what it is in the age of LLMs or similar future tools. I suspect a future phase change might be towards disregarding how easy it is for humans to work with the code and instead focus on provability, testing, perhaps combined with token efficiency.

    > Maybe Lean combined with Rust shrunk down to something that is very compiler friendly. Imagine if you could specify what you need in high level language and instead of getting back "vibe code", you get back proven correct code, because that's the only kind of code that will successfully compile.

    https://news.ycombinator.com/item?id=47192116

    • AlotOfReading 1 hour ago
      It's important to keep in mind that no proof system ensures your proof is the correct proof, only that it's a valid proof. Completely understanding what a proof proves is often nearly as difficult as understanding the program it's proving. Normally you benefit because the process of building a proof forces you to develop your understanding more fully.
  • jiehong 12 minutes ago
    Congratulations on the launch!

    Mistral seems to focus on a different market than the others. Their best model is meh, their best ASR model locally is either rather slow compared to Parakeet on similar languages, or not as good for others (like qwen ASR).

    Side note: Lean seems quite unreadable with tons of single letter variable names. Part of it is me being unaccustomed with it, but still.

  • patall 5 hours ago
    Maybe a naive question: given that they see better performance with more passes but the effect hits a limit after a few passes, would performance increase if they used different models per pass, i.e leanstral, kimi, qwen and leanstral again instead of 4x leanstral?
    • andai 5 hours ago
      This is called a "LLM alloy", you can even do it in agentic, where you simply swap the model on each llm invocation.

      It does actually significantly boost performance. There was an article on here about it recently, I'll see if I can find it.

      Edit: https://news.ycombinator.com/item?id=44630724

      They found the more different the models were (the less overlap in correctly solved problems), the more it boosted the score.

      • patall 5 hours ago
        That sounds quite interesting. Makes me wonder if sooner or later they will have to train multiple independent models that cover those different niches. But maybe we will see that sooner or later. Thanks for the link.
        • cyanydeez 5 hours ago
          One would think that LoRAs being so successful in StableDiffusion, that more people would be focused on constructing framework based LoRas; but the economics of all this probably preclude trying to go niche in any direction and just keep building the do-all models.
  • flakiness 5 hours ago
  • JoshTriplett 4 hours ago
    Pleasant surprise: someone saying "open source" and actually meaning Open Source. It looks like the weights are Apache-2.0 licensed.
    • jasonjmcghee 3 hours ago
      Based on community definitions I've seen, this is considered "open weights". If you can't reproduce the model, it's not "open source"
  • Havoc 5 hours ago
    What are these "passes" they reference here? Haven't seen that before in LLM evals

    Could definitely be interesting for having another model run over the codebase when looking for improvements

    • rockinghigh 5 hours ago
      It's the number of attempts at answering the question.
  • elAhmo 4 hours ago
    I don’t know a single person using Mistral models.
    • consumer451 4 hours ago
      Isn't their latest speech to text model SOTA? When I tested it on jargon, it was amazing.

      https://news.ycombinator.com/item?id=46886735

      • troyvit 1 hour ago
        I'm using this model for my first python project, coding using opencode along with devstral and Mistral Large 3. I know it's not as capable as other, more expensive models, but working with it this way is teaching me python. More directly to your point though, the speech to text model is really good.

        It's funny because I just took a break from it to read some hn and found this post.

    • Adrig 4 hours ago
      I used Ministral for data cleaning.

      I was surprised: even tho it was the cheapest option (against other small models from Anthropic) it performed the best in my benchmarks.

      • Bombthecat 3 hours ago
        Mistral is super smart in smaller context and asking questions about it
    • brainless 1 hour ago
      I'm building a knowledge graph on personal data (emails, files) with Ministral 3:3b. I try with Qwen 3.5:4b as well but mostly Ministral.

      Works really well. Extracts companies you have dealt with, people, topics, events, locations, financial transactions, bills, etc.

    • badsectoracula 3 hours ago
      Pretty much all of my LLM usage has been using Mistral's open source models running on my PC. I do not do full agentic coding as when i tried it with Devstral Small 2 it was a bit too slow (though if i could get 2-3 times the speed of my PC from a second computer it'd be be a different story and AFAIK that is doable if i was willing to spend $2-3k on it). However i've used Mistral's models for spelling and grammar checks[0], translations[1][2], summaries[3] and trying to figure out if common email SPAM avoidance tricks are pointless in the LLM age :-P [4]. FWIW that tool you can see in the shots is a Tcl/Tk script calling a llama.cpp-based command-line utility i threw together some time ago when experimenting with llama.cpp.

      I've also used Devstral Small to make a simple raytracer[5][6] (it was made using the "classic" chat by copy/pasting code, not any agentic approach and i did fix bits of it in the process) and a quick-and-dirty "games database" in Python+Flask+Sqlite for my own use (mainly a game backlog DB :-P).

      I also use it to make various small snippets, have it generate some boilerplate stuff (e.g. i have an enum in C and want to write a function that prints names for each enum value or have it match a string i read from a json file with the appropriate enum value), "translate" between languages (i had it recently convert some matrix code that i had written in Pascal into C), etc.

      [0] https://i.imgur.com/f4OrNI5.png

      [1] https://i.imgur.com/Zac3P4t.png

      [2] https://i.imgur.com/jPYYKCd.png

      [3] https://i.imgur.com/WZGfCdq.png

      [4] https://i.imgur.com/ytYkyQW.png

      [5] https://i.imgur.com/FevOm0o.png (screenshot)

      [6] https://app.filen.io/#/d/e05ae468-6741-453c-a18d-e83dcc3de92... (C code)

      [7] https://i.imgur.com/BzK8JtT.png

    • ainch 2 hours ago
      That's likely because they're chasing enterprise - see deals with HSBC, ASML, AXA, BNP Paribas etc... Given swelling anti-US sentiment and their status as a French 'national champion', Mistral are probably in a strong position for now regardless of model performance, research quality or consumer uptake.
    • pelagicAustral 4 hours ago
      Me neither, they're not ready for prime imo. I have a yearly sub and the product is just orders of magnitude behind Anthropic's offering. I use Code for real world stuff and I am happy with the result, Mistral is just not something I can trust right now.
    • Fnoord 2 hours ago
      I use them solely.
    • nimchimpsky 3 hours ago
      [dead]
  • piyh 3 hours ago
    Automated theorem provers running on a $5k piece of hardware is a cool version of the future
  • jasonjmcghee 3 hours ago
    Curious if pass@2 was tested for haiku and sonnet?
  • igravious 1 hour ago
    "and continues to scale linearly"

    it clearly and demonstrably does not. in fact, from eyeballing their chart Qwen, Kimi, and GLM scale linearly whereas Leanstral does not. But this is not surprising because the Alibaba, Moonshot, and Zhipu have hundreds of employees each and hundreds of millions of dollars of investment each.

  • miacycle 4 hours ago
    The TDD foundation! We might need one of those. :)
  • lefrenchy 5 hours ago
    Does Mistral come close to Opus 4.6 with any of their models?
    • chucky_z 5 hours ago
      I use mistral-medium-3.1 for a lot of random daily tasks, along with the vibe cli. I'd state from my personal opinion that mistral is my preferred 'model vendor' by far at this point. They're extremely consistent between releases while each of them just feels better. I also have a strong personal preference to the output.

      I actively use gemini-3.1-pro-preview, claude-4.6-opus-high, and gpt-5.3-codex as well. I prefer them all for different reasons, however I usually _start_ with mistral if it's an option.

      • sa-code 5 hours ago
        Why not Large 3? It's larger and cheaper
    • DarkNova6 5 hours ago
      Not at the moment, but a release of Mistral 4 seems close which likely bridges the gap.
      • re-thc 5 hours ago
        Mistral Small 4 is already announced.
        • androiddrew 3 hours ago
          MOE but 120B range. Man I wish it was an 80B. I have 2 GPUs with 62Gib of usable VRAM. A 4bit 80B gives me some context window, but 120B puts me into system RAM
    • tjwebbnorfolk 4 hours ago
      Mistral hasn't been in the running for SOTA for quite awhile now
  • kittikitti 5 hours ago
    This is great, congratulations to the Mistral team! I'm looking forward to the code arena benchmark results. Thanks for sharing.
  • htrp 3 hours ago
    is the haiku comparison because they've distilled from the model?
  • hnipps 4 hours ago
    Here we go.
  • ClaudeAgent_WK 35 minutes ago
    [dead]
  • gpubridge 2 hours ago
    [dead]
  • leontloveless 5 hours ago
    [dead]
  • aplomb1026 4 hours ago
    [dead]
  • paseante 2 hours ago
    [dead]
  • glinksss 4 hours ago
    [dead]
  • theirgooch 5 hours ago
    [flagged]
  • selectively 5 hours ago
    [flagged]
  • blurbleblurble 5 hours ago
    Truly exciting