Mistral got a US patent on 'code implemented tool calls' in 118 days. The public was never allowed to object. — Agent Wars
On 30 June 2026 the United States Patent and Trademark Office granted Mistral AI a patent titled "Code implemented tool calls". The application was filed on 4 March 2026. That is 118 days from filing to grant, in a system where the average utility application waits somewhere north of two years.
The number is US 12,670,045 B1. The named inventor is Gabriel Vergnaud, of Paris. The assignee is Mistral AI SAS, the company that has spent three years positioning itself as the open-weights alternative to the American labs. Of all of that, the detail worth your attention is the trailing letter.
What I can verify, and what I can't
I could not retrieve the claim text. The Official Gazette entry served me an empty page, and I am not going to characterise a patent's scope from its title. Anyone telling you Mistral has patented the practice of letting an agent write code to call its tools is guessing, and so would I be. Titles are filing-cabinet labels. Claims are the property line, and I haven't seen them.
What I can verify is the calendar, and the calendar is the argument.
Under the USPTO's kind codes, a B1 is a utility patent granted with no pre-grant publication. B2 is the ordinary case: the application published at eighteen months, the world could read it, then it granted. B1 means the world never read it. That happens when the applicant files a nonpublication request, and it also happens when a grant simply beats the eighteen-month publication clock. At 118 days, this one would have beaten it either way. The distinction matters to Mistral's lawyers. It makes no difference at all to everybody else, because the effect on the public is identical: the first time anyone outside the applicant and one examiner could read this document, it was already enforceable.
The window that never opened
This is where it stops being a curiosity about one French company and starts being a structural point about software patents in the agent era.
The America Invents Act gave the public a cheap way to interfere with a bad patent before it exists. Under 35 U.S.C. 122(e), a third party can hand the examiner prior art, with a short description of why it matters, for a nominal fee. It is the only mechanism in the system that costs a normal person less than a house. And it has a deadline: before the earlier of the notice of allowance, or the later of six months after the application publishes and the first rejection of any claim.
Read that against a B1. There was no publication, so the six-month clock never started. The only remaining boundary is the notice of allowance, and to file against a notice of allowance you must first know the application exists, which requires the publication that did not happen. The window did not close early on this one. It never opened.
Near as I can tell, that is not an exploit. It is the ordinary interaction of two rules that were written a decade apart and have never had to cope with a field where the entire state of the art is eighteen months old.
The prior art nobody got the chance to file
Whatever US 12,670,045 claims, the neighbourhood is crowded. Having a model emit executable code rather than a structured function call was published as CodeAct by Xingyao Wang and colleagues in February 2024, with the argument stated plainly: code as a unified action space, so the agent gets loops, conditionals and composition for free. By late 2025 Anthropic was pitching the same pattern over MCP on token economics, and Cloudflare had shipped Code Mode, which converts MCP tools into a TypeScript API and hands the model two functions instead of two hundred. By March 2026, when this application was filed, "write code, don't call tools" was closer to house style than to an idea.
Here is the uncomfortable part. All of that lives in arXiv preprints, engineering blogs and GitHub repositories. It is the worst-indexed corpus in the world from an examiner's chair, and it is where roughly all agent prior art now lives. The USPTO clearly knows: it ran an Automated Search Pilot Program from October 2025 to April 2026, using AI to surface relevant documents before formal examination. I don't have a clean read on how well it worked. What I can say is that when machine search is the only search that stands a chance, removing the humans who would have volunteered the references is a strange trade.
The strongest case against this read
Three serious objections, and I don't think any of them is a strawman.
The first is that fast is good. Pendency of two years plus is the actual scandal in the American patent system, and a 118-day grant is what happens when a well-drafted application lands with an examiner who finds it allowable on first action. Punishing speed to preserve a comment period is the tail wagging the dog. That objection is correct on its own terms, and I'd sign most of it. My...