<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vanshaj Kakkar</title>
    <description>The latest articles on DEV Community by Vanshaj Kakkar (@vanshaj1999).</description>
    <link>https://dev.to/vanshaj1999</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4227444%2Faf3084f7-7f55-43ee-8c3a-69f3e0bb925f.jpg</url>
      <title>DEV Community: Vanshaj Kakkar</title>
      <link>https://dev.to/vanshaj1999</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vanshaj1999"/>
    <language>en</language>
    <item>
      <title>Your AI Model Isn't Broken. The File You Downloaded Is Out of Date.</title>
      <dc:creator>Vanshaj Kakkar</dc:creator>
      <pubDate>Tue, 24 Nov 2026 02:14:59 +0000</pubDate>
      <link>https://dev.to/vanshaj1999/your-ai-model-isnt-broken-the-file-you-downloaded-is-out-of-date-4ibp</link>
      <guid>https://dev.to/vanshaj1999/your-ai-model-isnt-broken-the-file-you-downloaded-is-out-of-date-4ibp</guid>
      <description>&lt;p&gt;&lt;em&gt;I checked 1,788 copies of six popular models on Hugging Face. Many carry an old chat layout that can crash some apps or hide the AI's tools. Here's how to check yours.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A note on how I made this: AI tools helped me run these tests and draft this article. The ideas are my own.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you run AI models on your own computer, you've probably downloaded one from Hugging Face. Search for a popular model like Qwen3-8B and you'll find hundreds of copies, uploaded by different people. Same name, same size. It's natural to assume they're the same thing.&lt;/p&gt;

&lt;p&gt;They aren't. Each download is a single file that holds two things: the model itself, and a small piece of code that decides how your conversation gets written out for the model to read.&lt;/p&gt;

&lt;p&gt;Picture a restaurant. The model is the chef. Your app (Ollama, LM Studio, or your own code) is the waiter. The waiter writes every order on a ticket, and the chef can only read tickets in one exact layout. That ticket layout comes printed inside the model file. Engineers call it the &lt;strong&gt;chat template&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Model makers sometimes improve the ticket layout after release, for example by adding a box for special requests. Copies uploaded before the change keep the old layout forever.&lt;/p&gt;

&lt;p&gt;Here's what that looks like in practice. Ask Mistral 7B "What's the weather in Adelaide?" and give it a weather tool. With the current layout, the model reads this (simplified):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[AVAILABLE_TOOLS] get_weather(city) [/AVAILABLE_TOOLS]
[INST] What is the weather in Adelaide right now? [/INST]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the old layout, which is in the most downloaded copies, it reads this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[INST] What is the weather in Adelaide right now? [/INST]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tool is simply gone. No error, no warning. The chef never hears about the special request.&lt;/p&gt;

&lt;p&gt;I wanted to know how many people are downloading old layouts, and whether it actually changes what the AI does. I tested two common ways to run these files: llama.cpp, and Python code (Hugging Face's transformers library and llama-cpp-python). Ollama and LM Studio have their own template handling, and I didn't test them directly.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;In short&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I checked 1,788 uploaded copies of six popular models and kept the 643 clean copies of the original models (the rest are fine-tunes and remixes). For four of the six models, most downloads get a chat layout that differs from the official one today.&lt;/li&gt;
&lt;li&gt;Even Qwen's own official download of Qwen3-8B has an outdated layout. In Python apps it crashes the moment the AI uses a tool. In llama.cpp it works fine.&lt;/li&gt;
&lt;li&gt;For Mistral 7B, the outdated layout hides the AI's tools completely. The same file made 0 correct tool calls out of 60. With the current layout, it made 55.&lt;/li&gt;
&lt;li&gt;The model files themselves, from eight different uploaders, scored almost exactly the same. The layout is what makes the difference.&lt;/li&gt;
&lt;li&gt;The fix is simple, but it depends on how you run the model. I show it at the end, with a one-command check for your own downloads.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How the chat layout works
&lt;/h2&gt;

&lt;p&gt;In engineering terms: the ticket layout is the &lt;strong&gt;chat template&lt;/strong&gt;, and the model file is a &lt;strong&gt;GGUF&lt;/strong&gt; file, the format most local AI apps use. Here is how the two fit together.&lt;/p&gt;

&lt;p&gt;Your app sends a list of messages: a system prompt, a user turn, maybe a tool call and its result. The model never sees that list. It sees one long string, laid out in exactly the format it was trained on, with special tokens like &lt;code&gt;&amp;lt;|im_start|&amp;gt;&lt;/code&gt; or &lt;code&gt;[INST]&lt;/code&gt; in the right places.&lt;/p&gt;

&lt;p&gt;The chat template is the small Jinja program that builds that string. The model's authors ship it in the base repo, in &lt;code&gt;tokenizer_config.json&lt;/code&gt; or &lt;code&gt;chat_template.jinja&lt;/code&gt;. When someone converts the model to GGUF, the template gets copied into the file as &lt;code&gt;tokenizer.chat_template&lt;/code&gt;. From then on, the GGUF carries its own copy, frozen at the moment of conversion.&lt;/p&gt;

&lt;p&gt;Base repos don't stand still. Authors fix templates after release: a crash on some message shape, a tool-calling format, a whitespace bug. The base repo gets the fix. The GGUF copies don't, unless someone re-uploads them.&lt;/p&gt;

&lt;p&gt;So the question is simple: how many GGUF downloads carry a template that builds a different prompt from the one the authors ship today?&lt;/p&gt;

&lt;h2&gt;
  
  
  How I tested it
&lt;/h2&gt;

&lt;p&gt;The Hub API can return the GGUF metadata for every repo in one listing call, template included. For six popular open model families, I pulled every upload tagged as a quantisation of the base model:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Family&lt;/th&gt;
&lt;th&gt;GGUF uploads&lt;/th&gt;
&lt;th&gt;Pure repacks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3.8-27B&lt;/td&gt;
&lt;td&gt;813&lt;/td&gt;
&lt;td&gt;188&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen2.5-7B-Instruct&lt;/td&gt;
&lt;td&gt;280&lt;/td&gt;
&lt;td&gt;90&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3-8B&lt;/td&gt;
&lt;td&gt;270&lt;/td&gt;
&lt;td&gt;103&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mistral-7B-Instruct-v0.3&lt;/td&gt;
&lt;td&gt;195&lt;/td&gt;
&lt;td&gt;134&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phi-4-mini-instruct&lt;/td&gt;
&lt;td&gt;126&lt;/td&gt;
&lt;td&gt;88&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;gpt-oss-20b&lt;/td&gt;
&lt;td&gt;104&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,788&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;643&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The tag is set by uploaders, and plenty of fine-tunes, merges and uncensored variants use it too. Those are different models, so I kept only &lt;strong&gt;pure repacks&lt;/strong&gt;, the clean copies: repos whose name is the base model's name plus quantisation words and nothing else. Every headline number below uses those 643 uploads, weighted by their downloads over the last 30 days.&lt;/p&gt;

&lt;p&gt;Then, for each family, I walked the base repo's commit history and pulled every version of the official template. That matters: an upload that matches an older official template is &lt;strong&gt;stale&lt;/strong&gt;, not edited, and those are very different stories.&lt;/p&gt;

&lt;p&gt;Text comparison turned out to be useless on its own. Unsloth's Qwen3-8B template is 737 characters longer than the current base template, but it builds the same prompt. So I rendered every template against 12 test conversations: a plain question, a system prompt, multi-turn chat, tool definitions, a tool call and its result, parallel calls, thinking switched off, earlier reasoning in the history, and a tool call with &lt;code&gt;null&lt;/code&gt; content (which is what the OpenAI API returns, and what most agent loops send straight back).&lt;/p&gt;

&lt;p&gt;I rendered each template twice, in two engines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python Jinja&lt;/strong&gt;, set up the way &lt;code&gt;transformers&lt;/code&gt; does it. &lt;code&gt;llama-cpp-python&lt;/code&gt; uses the same approach, and it reads the template straight from the GGUF.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;llama.cpp&lt;/strong&gt; itself (build b12359), through &lt;code&gt;llama-server&lt;/code&gt;'s &lt;code&gt;/apply-template&lt;/code&gt; endpoint.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To make sure the API wasn't lying to me, I also read the real file header of 20 uploads with HTTP range requests. All 20 matched the API's template exactly.&lt;/p&gt;

&lt;p&gt;Here's the overall result before the details. Each bar is one model, and the colours show how many of its downloads build the official prompt in each engine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3we5ec32ix77qvpq9ano.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3we5ec32ix77qvpq9ano.png" alt="Share of GGUF downloads that build the official prompt, by engine" width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Qwen3-8B: even the official download is out of date
&lt;/h2&gt;

&lt;p&gt;Here's the line that breaks. This is from the template Qwen shipped with Qwen3-8B on 28 April 2025:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jinja"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;/think&amp;gt;'&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When &lt;code&gt;message.content&lt;/code&gt; is &lt;code&gt;null&lt;/code&gt;, which it is for an assistant turn that only calls a tool, Python can't run &lt;code&gt;in&lt;/code&gt; on it. On 19 May 2025, Qwen fixed the base repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jinja"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;set&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;set&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The fix never reached &lt;code&gt;Qwen/Qwen3-8B-GGUF&lt;/code&gt;, Qwen's own GGUF repo. It still carries the April template, and it's by far the most downloaded Qwen3-8B GGUF: 848,856 downloads in the last 30 days.&lt;/p&gt;

&lt;p&gt;I checked this with the real libraries, not just my own renderer. With the current base template, &lt;code&gt;transformers&lt;/code&gt; 5.24.0 renders the conversation fine. With the template inside Qwen's GGUF, it fails:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;UndefinedError: 'dict object' has no attribute 'content'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;llama-cpp-python&lt;/code&gt; 0.3.38, which takes its template from the GGUF by default, fails too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TypeError: argument of type 'NoneType' is not iterable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The two errors look different because transformers removes the empty &lt;code&gt;content&lt;/code&gt; field before it renders, so the template finds no content at all, while llama-cpp-python passes it on as &lt;code&gt;None&lt;/code&gt;. It's the same bug: the old template expects every assistant turn to have text.&lt;/p&gt;

&lt;p&gt;Across all Qwen3-8B pure repacks, &lt;strong&gt;84% of downloads carry the stale template&lt;/strong&gt;. In a Python Jinja stack (transformers, llama-cpp-python, or anything built on them), every one of them breaks the first time your agent sends back a tool call with &lt;code&gt;null&lt;/code&gt; content, which is exactly what OpenAI-style clients do.&lt;/p&gt;

&lt;p&gt;Then I ran the same templates through llama.cpp, and every one of them worked. llama.cpp's own Jinja engine detects what a template can and can't handle and fills the gaps itself, so the stale template builds exactly the same prompt as the fixed one. If you run Qwen3-8B in &lt;code&gt;llama-server&lt;/code&gt;, or anything else that uses llama.cpp's own template engine, this bug never touches you.&lt;/p&gt;

&lt;p&gt;That's the pattern for the whole study: &lt;strong&gt;whether a stale template hurts you depends on the engine you run it in.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The old template isn't going away, either. 17 Qwen3-8B uploads created after the fix still carry it. Since January 2026 a new one has appeared every month or so, the newest on 6 November 2026.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwik1vt4tcatq5tlbqved.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwik1vt4tcatq5tlbqved.png" alt="Qwen3-8B GGUF uploads by creation date" width="799" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The two grey dots before the fix are Unsloth and ggml-org. ggml-org later updated its file to Qwen's fixed template, and Unsloth's file has its own edits that build the same prompt as the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistral 7B: your tools disappear
&lt;/h2&gt;

&lt;p&gt;Mistral's case is worse, because llama.cpp can't save it.&lt;/p&gt;

&lt;p&gt;Mistral updated the v0.3 template five times between May and August 2024. The two most downloaded GGUF uploads (MaziyarPanahi with 60,608 downloads, lmstudio-community with 11,100) still carry the very first version from 22 May 2024. Across all pure repacks, &lt;strong&gt;97% of downloads use a stale Mistral template&lt;/strong&gt;. Only about 3% get the current one.&lt;/p&gt;

&lt;p&gt;In Python Jinja, the old template rejects any system prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;TemplateError: Conversation roles must alternate user/assistant/user/assistant/...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;llama.cpp handles that one by folding the system prompt into the first user turn. But the old template predates Mistral's tool format, and that's where it goes quiet. Send a request with tools and llama.cpp builds a prompt with no tools in it at all. No &lt;code&gt;[AVAILABLE_TOOLS]&lt;/code&gt; block, no warning, no error. The model never learns the tools exist. Send a conversation that contains a tool result and you get this instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HTTP 400: Unable to generate parser for this template.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So with the most popular Mistral uploads, tool calling doesn't fail loudly. It just never happens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Qwen2.5-7B: out of date by one day
&lt;/h2&gt;

&lt;p&gt;Qwen's own &lt;code&gt;Qwen2.5-7B-Instruct-GGUF&lt;/code&gt; (786,204 downloads) carries a template from 18 September 2024. The base repo replaced it the next day. The version in the GGUF shows the model a tool-call example with doubled braces:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{"name": &amp;lt;function-name&amp;gt;, "arguments": &amp;lt;args-json-object&amp;gt;}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;instead of:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{"name": &amp;lt;function-name&amp;gt;, "arguments": &amp;lt;args-json-object&amp;gt;}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both engines build the prompt with the doubled braces, so this one reaches everyone: &lt;strong&gt;70% of Qwen2.5-7B GGUF downloads&lt;/strong&gt;. Whether it changes how well the model calls tools is a question for the next section.&lt;/p&gt;

&lt;h2&gt;
  
  
  gpt-oss-20b: three versions in circulation
&lt;/h2&gt;

&lt;p&gt;OpenAI's template for gpt-oss went through four versions in its first week. The GGUF uploads froze at different points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ggml-org/gpt-oss-20b-GGUF&lt;/code&gt; (453,209 downloads) matches the current template.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;unsloth/gpt-oss-20b-GGUF&lt;/code&gt; (598,365) has its own edits.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;lmstudio-community&lt;/code&gt; (122,051) and &lt;code&gt;bartowski&lt;/code&gt; (14,319) carry the 5 August 2025 version.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The differences are small but real. The current official template puts a blank line after the system message and passes a tool's result as an escaped JSON string. Unsloth's passes the raw JSON. lmstudio's and bartowski's add a blank line at the start of the tools block. One upload drops the &lt;code&gt;Reasoning: medium&lt;/code&gt; line completely. &lt;strong&gt;62% of gpt-oss-20b downloads build a different prompt from the current official template&lt;/strong&gt;, in both engines.&lt;/p&gt;

&lt;h2&gt;
  
  
  The models without the problem
&lt;/h2&gt;

&lt;p&gt;Not every family has this problem. Qwen3.8-27B is the most downloaded model in the study, with 13.8 million downloads of its clean copies in 30 days. Every one of those copies that carries a template builds exactly the official prompt: 183 of 188, and the other 5 have no template at all. So do all 88 Phi-4-mini uploads. Phi-4-mini's template never changed. Qwen3.8-27B's was fixed on release day itself, before the wave of uploads, and its one later edit didn't change any prompt I tested.&lt;/p&gt;

&lt;p&gt;That's the real lesson. The risk isn't GGUF, and it isn't any one uploader. It's &lt;strong&gt;a template that changed after the first wave of uploads&lt;/strong&gt;. Uploads made in the first week after a release end up with most of the downloads: 99% for Qwen3-8B, Qwen2.5-7B and gpt-oss-20b, 92% for Mistral and 90% for Qwen3.8-27B. That first week is exactly when authors are still fixing their templates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does it matter who uploaded the file?
&lt;/h2&gt;

&lt;p&gt;Here's a small sign of how different these "identical" downloads are. I took the ten most downloaded Qwen3-8B files of the same type (Q4_K_M, a common 4-bit compression level) and computed their digital fingerprints (SHA-256 hashes). Ten files, ten different fingerprints.&lt;/p&gt;

&lt;p&gt;A file's fingerprint covers everything in it, so part of that is metadata: the template text, the model name, notes from the uploader. Different fingerprints don't prove different weights. But each uploader can also compress the model in a different way, and llama.cpp builds exactly the same prompt from every clean Qwen3-8B copy, so any difference in the answers comes from the weights. Does it change the answers?&lt;/p&gt;

&lt;p&gt;I ran Qwen's larger Q8_0 file as a reference, plus eight Q4_K_M files from different uploaders, on an RTX 5090 desktop. Same llama.cpp build, same settings with randomness switched off, Qwen's thinking mode off, and the same 300 tasks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;100 GSM8K maths problems&lt;/li&gt;
&lt;li&gt;100 IFEval instruction-following prompts, graded with Google's checker code&lt;/li&gt;
&lt;li&gt;60 BFCL function-calling tasks&lt;/li&gt;
&lt;li&gt;20 multi-turn conversations with a system rule that has to hold for three turns&lt;/li&gt;
&lt;li&gt;20 conversations where the model has to report a value from a tool's result&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;th&gt;Score (300 tasks)&lt;/th&gt;
&lt;th&gt;Tokens/s&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Qwen Q8_0 (reference)&lt;/td&gt;
&lt;td&gt;8.71 GB&lt;/td&gt;
&lt;td&gt;92.7%&lt;/td&gt;
&lt;td&gt;165&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen (official)&lt;/td&gt;
&lt;td&gt;5.03 GB&lt;/td&gt;
&lt;td&gt;92.0%&lt;/td&gt;
&lt;td&gt;241&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;unsloth&lt;/td&gt;
&lt;td&gt;5.03 GB&lt;/td&gt;
&lt;td&gt;92.0%&lt;/td&gt;
&lt;td&gt;243&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MaziyarPanahi&lt;/td&gt;
&lt;td&gt;5.03 GB&lt;/td&gt;
&lt;td&gt;92.0%&lt;/td&gt;
&lt;td&gt;243&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bartowski&lt;/td&gt;
&lt;td&gt;5.03 GB&lt;/td&gt;
&lt;td&gt;91.0%&lt;/td&gt;
&lt;td&gt;243&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lmstudio-community&lt;/td&gt;
&lt;td&gt;5.03 GB&lt;/td&gt;
&lt;td&gt;92.0%&lt;/td&gt;
&lt;td&gt;243&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aldaris&lt;/td&gt;
&lt;td&gt;5.03 GB&lt;/td&gt;
&lt;td&gt;92.0%&lt;/td&gt;
&lt;td&gt;243&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mradermacher&lt;/td&gt;
&lt;td&gt;5.03 GB&lt;/td&gt;
&lt;td&gt;92.3%&lt;/td&gt;
&lt;td&gt;243&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;eaddario&lt;/td&gt;
&lt;td&gt;4.48 GB&lt;/td&gt;
&lt;td&gt;91.0%&lt;/td&gt;
&lt;td&gt;262&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every Q4_K_M file scored between 91.0% and 92.3%, and the Q8_0 reference scored 92.7%. None of those gaps is statistically significant with 300 tasks: the smallest p-value against the reference is 0.18, and the usual bar is 0.05.&lt;/p&gt;

&lt;p&gt;The files don't write word-for-word the same answers, though. The runs themselves are repeatable: Qwen's own file, run twice with the same settings, gave identical replies on all 300 tasks. Most pairs of different files gave identical replies on only 23% to 34% of tasks, mostly the short function calls, and each file got 9 to 13 tasks right or wrong differently from the reference. A rerun changes nothing, so those differences come from the compression itself. They go both ways, so the scores barely move. Two uploads, Aldaris and MaziyarPanahi, gave identical replies on all 300 tasks, so their weights are effectively the same, with different metadata around them.&lt;/p&gt;

&lt;p&gt;One useful detail: eaddario's file is 11% smaller and about 8% faster than the rest, with the same score.&lt;/p&gt;

&lt;p&gt;So for Qwen3-8B, which uploader compressed the model barely matters. Which template you end up with is a different story.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does an outdated layout change the answers?
&lt;/h2&gt;

&lt;p&gt;For the three families where llama.cpp builds a different prompt, I kept the file fixed and swapped only the template:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mistral-7B v0.3&lt;/strong&gt; (lmstudio-community &lt;code&gt;Q4_K_M&lt;/code&gt;): its own stale template against the current official one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Qwen2.5-7B&lt;/strong&gt; (MaziyarPanahi &lt;code&gt;Q4_K_M&lt;/code&gt;, stale): the doubled-brace template against the current one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;gpt-oss-20b&lt;/strong&gt; (ggml-org's file, current template): the official template against Unsloth's.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsigq7c2wwbghfxftxfpr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsigq7c2wwbghfxftxfpr.png" alt="Same file, different template" width="799" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mistral: same weights, two different products.&lt;/strong&gt; With the template inside the file, the model made zero tool calls in 60 function-calling tasks. It answered in prose, or wrote Python that called nothing. All 20 conversations that contained a tool result came back as HTTP 400. With the current official template swapped in, the same file made a tool call in all 60 tasks, 55 of them correct, and used the tool result correctly in all 20 conversations. Over its 100 tasks (60 function calls, 20 tool results and 20 multi-turn chats), the score went from 12% to 87%: 78 tasks went from wrong to right, and 3 the other way. Rule-keeping across multi-turn chats stayed at 60% either way, because llama.cpp patches the system prompt into the old template.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Qwen2.5 and gpt-oss: nothing I could measure.&lt;/strong&gt; With the doubled braces, Qwen2.5 actually got one more function-calling task right than with the current template (77 of 80 tasks against 76 of 80, p = 1.0). That isn't a significant difference. gpt-oss scored 92 of 100 with both templates, and not one task changed from right to wrong or back. The wording changed on some replies (95% and 65% stayed identical), but whether the answer was right didn't.&lt;/p&gt;

&lt;p&gt;That's the clearest result in the whole study. A template difference in &lt;strong&gt;formatting&lt;/strong&gt;, like whitespace, braces or how a tool result is quoted, didn't change anything I measured. A template difference in &lt;strong&gt;capability&lt;/strong&gt;, like a tool format the template doesn't know, switches the feature off completely. In llama.cpp it does that without an error.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to avoid it
&lt;/h2&gt;

&lt;p&gt;The short version: check what a template can do, not how it looks. A template that differs by a blank line is probably fine. A template that predates tools, or crashes on &lt;code&gt;null&lt;/code&gt; content, isn't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you run GGUF models in Python&lt;/strong&gt; (llama-cpp-python, or your own Jinja), assume the template in the file can be stale. Pass the base model's template explicitly instead of trusting the file. In &lt;code&gt;llama-cpp-python&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;llama_cpp&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Llama&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;llama_cpp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;llama_chat_format&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Jinja2ChatFormatter&lt;/span&gt;

&lt;span class="n"&gt;template&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"chat_template.jinja"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# from the base model repo&lt;/span&gt;
&lt;span class="n"&gt;llm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Llama&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Qwen3-8B-Q4_K_M.gguf"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat_handler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Jinja2ChatFormatter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;eos_token&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;|im_end|&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bos_token&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;|endoftext|&amp;gt;"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_chat_handler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;If you run llama.cpp&lt;/strong&gt;, you're protected from crashes, not from differences. For tool calling, pass the base template with &lt;code&gt;--chat-template-file&lt;/code&gt;, and check the prompt it builds for one of your real requests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;llama-server -m model.gguf --jinja --chat-template-file chat_template.jinja
curl -s localhost:8080/apply-template -d @my_request.json &lt;span class="o"&gt;|&lt;/span&gt; jq -r .prompt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;If you use Ollama or LM Studio&lt;/strong&gt;, I didn't test them, because they handle templates their own way. A quick check still works: give the model a tool, ask a question that needs it, and see whether it calls the tool. If it never does, compare its template with the base repo's.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before you pick an upload&lt;/strong&gt;, check its template against the base repo's. I turned my scripts into a one-command checker that does this for any GGUF repo on Hugging Face, or a file you already have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv run check_template.py bartowski/Qwen_Qwen3-8B-GGUF
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It tells you if the template is up to date, out of date (and since when) or edited, and shows which kinds of conversation break. Add &lt;code&gt;--save chat_template.jinja&lt;/code&gt; and it writes the current official template, ready for &lt;code&gt;--chat-template-file&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you upload GGUFs&lt;/strong&gt;, re-check your template when the base repo changes it. It's a metadata edit, not a re-quantisation.&lt;/p&gt;

&lt;p&gt;And one suggestion for the Hub: it already parses the template out of every GGUF. A small "template differs from base model" note on the model page would catch every case in this article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"Pure repack" is a name rule. It's conservative, and it surely misses a few real repacks and lets a few renamed models through.&lt;/li&gt;
&lt;li&gt;Downloads are the Hub's 30-day counts on 23 November 2026, so the shares will move.&lt;/li&gt;
&lt;li&gt;I tested Python Jinja and one llama.cpp build. I didn't test Ollama, which converts templates to its own format, or LM Studio's MLX path.&lt;/li&gt;
&lt;li&gt;The 12 test conversations cover common shapes, not every one. A template can still differ on a message shape I didn't try.&lt;/li&gt;
&lt;li&gt;Some uploaders edit templates on purpose, to fix engine bugs or add features. "Different" isn't automatically worse, and the answer tests back that up.&lt;/li&gt;
&lt;li&gt;Each file ran once. A repeat run of Qwen's file gave identical replies on all 300 tasks, so reruns add no noise, but 300 tasks is still a small sample: gaps of a point or two in the table aren't statistically significant.&lt;/li&gt;
&lt;li&gt;The multi-turn and tool-result groups have 20 tasks each, so their intervals are wide.&lt;/li&gt;
&lt;li&gt;In the uploader test, 37 replies hit my 2,048-token length limit. 36 of them came from IFEval prompts that ask for very long answers, and only one was a real repetition loop.&lt;/li&gt;
&lt;li&gt;BFCL grading is a simpler version of BFCL's own checker: the function name, argument values from the accepted list, and optional arguments.&lt;/li&gt;
&lt;li&gt;The uploader test covers one model at one compression level. Smaller, more compressed files may separate the uploaders more.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code and data
&lt;/h2&gt;

&lt;p&gt;Everything is on GitHub at &lt;a href="https://github.com/vanshaj1999/gguf-template-check" rel="noopener noreferrer"&gt;github.com/vanshaj1999/gguf-template-check&lt;/a&gt;: the checker, the Hub scan, the renderer, the llama.cpp check, the header check, the benchmark harness and every raw result.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>huggingface</category>
      <category>machinelearning</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Crysto: how I run Claude, Codex and other AI models as one team. The models were the easy part.</title>
      <dc:creator>Vanshaj Kakkar</dc:creator>
      <pubDate>Thu, 05 Nov 2026 04:24:58 +0000</pubDate>
      <link>https://dev.to/vanshaj1999/crysto-how-i-run-claude-codex-and-other-ai-models-as-one-team-the-models-were-the-easy-part-3af4</link>
      <guid>https://dev.to/vanshaj1999/crysto-how-i-run-claude-codex-and-other-ai-models-as-one-team-the-models-were-the-easy-part-3af4</guid>
      <description>&lt;p&gt;Early on, two of my AI agents tried to use the same browser at the same time. The browser fell over. Neither of them had really done anything wrong. They had each followed their instructions to the letter. They just had no idea the other one was there.&lt;/p&gt;

&lt;p&gt;That was when I realised the hard part of running AI agents isn't the AI. Getting a model to write decent code is close to solved. Getting four of them to work on the same projects for weeks, without stepping on each other, redoing each other's work, or cheerfully telling me something was done when it wasn't, is where all my time has gone.&lt;/p&gt;

&lt;p&gt;I call the whole setup Crysto. It started as a way to keep my own projects organised, and grew into something I lean on for my professional work too, with the two sides kept completely separate. Here's how it works, and what broke along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I'm an AI engineer, so I spend most of my day with these tools anyway. But my own projects were scattered: side projects, research, writing and the important things I needed to keep on top of, all half-done across different chat windows. Every new chat started from nothing, and I was the only one keeping track of where anything was up to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who's on the team
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw44kkyhzv2z06g1mfotf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw44kkyhzv2z06g1mfotf.png" alt="The Crysto stack" width="800" height="577"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The Crysto stack. Click through it at &lt;a href="https://vanshaj1999.github.io/crysto/" rel="noopener noreferrer"&gt;vanshaj1999.github.io/crysto&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Claude Code runs the show. It plans the work, writes briefs for the others, reviews everything they hand back, and decides what actually ships. I run it on two separate accounts, one for work and one personal, and a small shell hook switches between them depending on which folder I'm in.&lt;/p&gt;

&lt;p&gt;Codex gets the long jobs. Give it a clear brief and it will build a small project, or grind through a pile of browser forms, while I get on with something else.&lt;/p&gt;

&lt;p&gt;Smaller models, through a tool called OpenCode, handle the bounded fixes. I can hand the same task to five of them at once and keep whichever result is best.&lt;/p&gt;

&lt;p&gt;Claude on my phone connects through a small MCP server on Cloudflare Workers, with KV storage behind it. That gives the phone and laptop access to the same stored data without relying on a shared chat.&lt;/p&gt;

&lt;p&gt;The coding agents also run headless. These are the command shapes I use, with a model and brief supplied for each run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;opencode run &lt;span class="nt"&gt;--format&lt;/span&gt; json &lt;span class="nt"&gt;-m&lt;/span&gt; &amp;lt;model&amp;gt; &lt;span class="s2"&gt;"&amp;lt;brief&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt; workspace-write &lt;span class="s2"&gt;"&amp;lt;brief&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each run gets its own copy of the repo. OpenCode runs one model per invocation; Codex works inside its workspace-write sandbox. Separate copies matter when I'm comparing results: otherwise a later model could inherit an earlier model's edits, and I'd have no clean way to tell who did what.&lt;/p&gt;

&lt;p&gt;The catch is that none of them share a conversation. Everything below comes from that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nobody remembers anything
&lt;/h2&gt;

&lt;p&gt;Codex can't see my Claude chats. Tomorrow's Claude session can't see today's. Every agent wakes up with amnesia.&lt;/p&gt;

&lt;p&gt;What fixed it was embarrassingly low-tech: files. Every project lives in a folder with a &lt;code&gt;STATUS.md&lt;/code&gt; that says where things are up to. Every session reads it first and updates it before it finishes. Longer-term memory is one fact per file with a one-line summary, and only a short index of those gets loaded each time. Each memory file has front matter for its name, description and type. The four types are user, feedback, project and reference. The index tells the agent what exists; it can read the relevant file when the task needs it.&lt;/p&gt;

&lt;p&gt;The part that surprised me was how much it helps to give every rule a reason. "Only one agent uses the browser at a time" is a rule. Add "because two agents on the same debugging port will crash each other" and an agent can work out the case I never wrote down, like a second browser tool on the same machine.&lt;/p&gt;

&lt;p&gt;It sounds almost too simple to write about. But it's the reason any agent, on any model, can pick up a project cold.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who's doing what
&lt;/h2&gt;

&lt;p&gt;Back to the browser crash. The fix was one more file, &lt;code&gt;COORDINATION.md&lt;/code&gt;, which lives in the hub. Before an agent touches files or the browser, it writes down that it's taking the job:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Website copy review, 4 November: CLAIMED BY CODEX
Owner: Codex. Claimed 4 Nov 10:05.
Done: 12 of 18 claims checked.
Evidence: drafts/about.md diff.
Next: check the last 6, then hand back to Claude.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54wr49zujoq733acy9n8.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54wr49zujoq733acy9n8.gif" alt="A real terminal run of new-project.sh and make check" width="790" height="560"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;A real run: creating a project, then the 17 tests in make check&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The rules fit on an index card. Check the file before you start. If someone else has claimed a task, leave it and ask me. Only one agent on the browser. And nothing actually enforces any of it. There's no lock. It works because every agent's instructions tell it to respect the file, and so far they do.&lt;/p&gt;

&lt;p&gt;It earned its keep this week. A work session already had the browser, so my personal session switched to a different browser tool instead of grabbing it.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tests that pass and still lie
&lt;/h2&gt;

&lt;p&gt;The whole setup depends on the smaller models building and Claude reviewing. That only works if the review actually catches things, so I tested it.&lt;/p&gt;

&lt;p&gt;The bug was pydynox issue #560. Its &lt;code&gt;MemoryBackend&lt;/code&gt; decorator wrapped an async function, but exited its context before the coroutine ran. That's a useful failure to test because returning a coroutine and executing it aren't the same event. The context has to cover the actual async execution.&lt;/p&gt;

&lt;p&gt;I gave it to 9 models, with tests I'd written beforehand and kept hidden from them. Eight passed those hidden tests; the fastest finished in 84 seconds. Nemotron 3.5 Lightning passed, but also deleted an existing test. If I'd only read the final test result, I'd have missed that change entirely.&lt;/p&gt;

&lt;p&gt;The refactor task was in awslabs/stickler, with a 4,091-test suite. Five models kept it green without editing a test. Flint 40B also ran &lt;code&gt;ruff --fix&lt;/code&gt; over 8 unrelated notebooks. Its diff touched 11 files, while the others touched 3. The extra changes weren't necessary for the task, even though the suite still passed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffi0pwr3k20khxfmd19fq.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffi0pwr3k20khxfmd19fq.jpg" alt="Glasses in front of screens of code" width="800" height="600"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Photo by &lt;a href="https://unsplash.com/@ikukevk?utm_source=medium&amp;amp;utm_medium=referral" rel="noopener noreferrer"&gt;Kevin Ku&lt;/a&gt; on &lt;a href="https://unsplash.com/?utm_source=medium&amp;amp;utm_medium=referral" rel="noopener noreferrer"&gt;Unsplash&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So now Claude does three things with every change. It writes tests up front that the building agent never sees, runs them afterwards, and reads the whole diff. A green test run tells you the tests passed. That's all it tells you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx08tmc5lb8oppq8inog0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx08tmc5lb8oppq8inog0.png" alt="The build loop" width="800" height="575"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The build loop. Interactive version at &lt;a href="https://vanshaj1999.github.io/crysto/" rel="noopener noreferrer"&gt;vanshaj1999.github.io/crysto&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Everyone exaggerates a little
&lt;/h2&gt;

&lt;p&gt;When an agent finishes, it writes a handover: what it changed, the proof, what went wrong, and what it didn't get to test. The rule is that "done" means a command ran and the output is in the file. Plans and good intentions don't count.&lt;/p&gt;

&lt;p&gt;Even so, claims creep. When the smaller models built my retrieval benchmark, their handover was upfront that one feature, the Claude answer path, had never actually run. Their README still made it sound like part of the results. The review also found a threshold that had been tuned on the very questions it was being scored on. Both are fixed now, and the README says so.&lt;/p&gt;

&lt;p&gt;That project, rag-eval-lab, uses 745 Python PEPs split into 17,933 chunks, stored in PostgreSQL with pgvector and an HNSW index. Vector search scored recall@1 of 0.70 against 0.36 for full-text search. Hybrid search with reciprocal rank fusion, or RRF, scored 0.66. Here, recall@1 asks whether the expected result came first. Adding another retrieval method didn't automatically improve that score.&lt;/p&gt;

&lt;p&gt;Those numbers describe this benchmark. They don't prove that vector search wins on every corpus, and they say nothing about an answer path that never ran. That's the distinction I need the handover and README to preserve.&lt;/p&gt;

&lt;p&gt;Claude isn't immune either. While drafting my last article, it wrote that my fixes had been sent to the project maintainers. They hadn't, not yet. We only caught it because the check went back to the actual pull requests.&lt;/p&gt;

&lt;p&gt;I've stopped hoping for a model that never overstates things. What I want is a check that doesn't take its word for it.&lt;/p&gt;
&lt;h2&gt;
  
  
  The rules that weren't about AI
&lt;/h2&gt;

&lt;p&gt;Two of my most expensive lessons had nothing to do with models.&lt;/p&gt;

&lt;p&gt;My work and personal Claude accounts are kept apart by separate config folders. But both read the same keychain entry, so logging out of one to switch logs out every session on the machine. Now the shell hook handles the switch and prints a line every time it happens, and I never log out.&lt;/p&gt;

&lt;p&gt;The account folders use &lt;code&gt;CLAUDE_CONFIG_DIR&lt;/code&gt; for Claude and &lt;code&gt;GH_CONFIG_DIR&lt;/code&gt; for the GitHub CLI. The hook checks the current directory and selects the matching config. These lines come straight from &lt;code&gt;account-switch.zsh&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;autoload &lt;span class="nt"&gt;-Uz&lt;/span&gt; add-zsh-hook
add-zsh-hook chpwd _crysto_claude_account
add-zsh-hook chpwd _crysto_gh_account
_crysto_claude_account
_crysto_gh_account
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;chpwd&lt;/code&gt; hook runs the account functions when the directory changes. The final calls also select the accounts when the shell starts. Separate config folders solve the selection problem; they don't remove the shared keychain behaviour.&lt;/p&gt;

&lt;p&gt;Then the voice assistant. My first design for "Hey Crysto" was a small Cloudflare Worker that called Claude with my subscription login. Anthropic's terms don't allow that: a subscription is for their own apps, and anything running on your own server needs a paid API key. So I split the problem. The part that matters most, Crysto's connection to my data, is built and running: a personal MCP gateway on Cloudflare Workers with OAuth and PKCE, read-only by default, where any write needs my explicit consent. Codex signs in to it and reads my mail, calendar and project data through one endpoint. For voice, I use the Claude app and Siri today. The always-on brain, a model that runs by itself and also runs the lights at home, is designed and waiting. The main thing stopping me is the API bill: I'm not ready to pay per request for a side project yet. Next time I'll read the terms before I draw the diagram.&lt;/p&gt;

&lt;h2&gt;
  
  
  Under the hood
&lt;/h2&gt;

&lt;p&gt;Crysto is mostly Markdown files and shell commands. Claude Code coordinates the work, while headless OpenCode and Codex runs produce changes for review. Project status and task claims live beside the work, so the next session can read them with ordinary file tools.&lt;/p&gt;

&lt;p&gt;The public repo includes a bash script to create a project, plus 17 tests, shellcheck and GitHub Actions CI. The Cloudflare Workers MCP server uses KV for stored state. PostgreSQL, pgvector and HNSW belong to the retrieval benchmark, rather than the coordination protocol. I don't need a database query to find out who owns the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;Not much beyond the subscriptions I already had. Money isn't really the limit. Attention is, so the whole thing is set up to spend it on briefs and reviews rather than on typing code.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to try this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Keep shared state in files, not in chats.&lt;/li&gt;
&lt;li&gt;Have agents claim work before they start, and give the browser one driver.&lt;/li&gt;
&lt;li&gt;Write your own tests and keep them away from the agent writing the code.&lt;/li&gt;
&lt;li&gt;Read every diff, even when it's green.&lt;/li&gt;
&lt;li&gt;Ask for proof, then check it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72jc4r19t3ki2ew94q10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72jc4r19t3ki2ew94q10.png" alt="The crysto repo on GitHub" width="800" height="500"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The crysto repo on GitHub&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The design, the coordination rules, the templates and a script that sets up a new project are all open source at &lt;a href="https://github.com/vanshaj1999/crysto" rel="noopener noreferrer"&gt;github.com/vanshaj1999/crysto&lt;/a&gt;. My memory, notes and data aren't, and that's on purpose.&lt;/p&gt;

&lt;p&gt;Want to click through it yourself? The interactive diagrams are at &lt;a href="https://vanshaj1999.github.io/crysto/" rel="noopener noreferrer"&gt;vanshaj1999.github.io/crysto&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Cover photo by &lt;a href="https://unsplash.com/@jstrippa?utm_source=medium&amp;amp;utm_medium=referral" rel="noopener noreferrer"&gt;James Harrison&lt;/a&gt; on &lt;a href="https://unsplash.com/?utm_source=medium&amp;amp;utm_medium=referral" rel="noopener noreferrer"&gt;Unsplash&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I gave 9 free AI coding models the same real bug. Here is what happened.</title>
      <dc:creator>Vanshaj Kakkar</dc:creator>
      <pubDate>Thu, 05 Nov 2026 02:10:55 +0000</pubDate>
      <link>https://dev.to/vanshaj1999/i-gave-9-free-ai-coding-models-the-same-real-bug-here-is-what-happened-pk3</link>
      <guid>https://dev.to/vanshaj1999/i-gave-9-free-ai-coding-models-the-same-real-bug-here-is-what-happened-pk3</guid>
      <description>&lt;p&gt;Everyone has an opinion about which AI coding model is best. Most of those opinions come from toy prompts or leaderboards. I wanted to see what happens on a real bug in a real open source repo, with tests the models cannot see.&lt;/p&gt;

&lt;p&gt;So I gave the same bug to 9 free models at the same time and graded every result the same way.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug
&lt;/h2&gt;

&lt;p&gt;The repo is &lt;a href="https://github.com/ferrumio/pydynox" rel="noopener noreferrer"&gt;pydynox&lt;/a&gt;, a Python DynamoDB library. &lt;a href="https://github.com/ferrumio/pydynox/issues/560" rel="noopener noreferrer"&gt;Issue #560&lt;/a&gt;: the &lt;code&gt;MemoryBackend&lt;/code&gt; test helper works as a decorator, but on an &lt;code&gt;async&lt;/code&gt; function it exits its context before the coroutine runs. So the test runs against the real backend instead of the in-memory one. It is a small, realistic bug: easy to describe, easy to get subtly wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agent:&lt;/strong&gt; &lt;a href="https://opencode.ai" rel="noopener noreferrer"&gt;OpenCode&lt;/a&gt;, run headless with &lt;code&gt;opencode run&lt;/code&gt;, one model per run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Models:&lt;/strong&gt; 9 free models from the OpenCode catalogue, all started at the same time, each in its own copy of the repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Brief:&lt;/strong&gt; identical for all 9. Read the issue and the repo's own AI guidelines, make the smallest correct change, add tests that fail without the fix, do not commit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hidden tests:&lt;/strong&gt; before the run I wrote my own tests for the bug. They fail twice on the original code. The models never saw them. After each run I added them and ran the suite.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grading:&lt;/strong&gt; hidden tests pass, the model's own tests pass, and a diff review for anything outside the task.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The results
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhoax600lv2newhqs17d6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhoax600lv2newhqs17d6.png" alt="Time to a finished fix for each of the 9 free models. Big Pickle and Pulse Alpha were fastest at 84 seconds. Crouton Alpha gave up after 10 seconds." width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8 of 9 models produced a fix that passed the hidden tests. Big Pickle and Pulse Alpha both finished in 84 seconds. DeepSeek V4.1 Flash took 2 minutes 11 seconds. The rest took between 4 and 6.5 minutes. Total model cost: $0.&lt;/p&gt;

&lt;p&gt;Speed was not the story, though. The failures were.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the models went wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Crouton Alpha gave up after 10 seconds.&lt;/strong&gt; No fix, no tests. That is the easy failure, because you notice it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nemotron 3.5 Lightning passed, but deleted an existing test.&lt;/strong&gt; Its fix was correct and the hidden tests passed. It also removed a test that was already in the file. A green test run would never tell you that. Only reading the diff does.&lt;/p&gt;

&lt;p&gt;That is the failure I worry about most with coding agents. Not "it did not work", but "it worked, and quietly changed something you did not ask for".&lt;/p&gt;

&lt;h2&gt;
  
  
  A second test: a refactor in a 4,091-test suite
&lt;/h2&gt;

&lt;p&gt;One bug is a small sample, so I ran a different kind of task. &lt;a href="https://github.com/awslabs/stickler/issues/517" rel="noopener noreferrer"&gt;awslabs/stickler #517&lt;/a&gt; asks for two classes to share their state handling through one private base class. The repo has 4,091 tests, so a refactor has nowhere to hide.&lt;/p&gt;

&lt;p&gt;I gave it to 5 free models. All 5 kept the full suite green without editing a single test. Big Pickle was fastest again, at 4 minutes 34 seconds.&lt;/p&gt;

&lt;p&gt;One model, Flint 40B, also ran &lt;code&gt;ruff --fix&lt;/code&gt; across 8 Jupyter notebooks that had nothing to do with the task. Its diff touched 11 files. The others touched 3. Again: the tests passed, and the change was still not one you would merge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Free versus paid
&lt;/h2&gt;

&lt;p&gt;For comparison I gave the first bug to three paid models: GLM 5.3 Flash, Kimi K3.1 Pro and Qwen 3.8 Max. All three fixed it, with tests that fail without the fix. They were not faster than the best free models.&lt;/p&gt;

&lt;p&gt;There was one real quality difference. Only Qwen detected coroutine functions with &lt;code&gt;inspect.iscoroutinefunction&lt;/code&gt;. The other two used &lt;code&gt;asyncio.iscoroutinefunction&lt;/code&gt;, which is deprecated from Python 3.14. Both pass today's tests. Only one is still right next year. No test suite catches that. A reviewer who knows the language does.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;For small, well-described bugs, free models are good enough.&lt;/strong&gt; 8 of 9 got it right. The gap between free and paid was smaller than I expected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write your own tests, and keep them hidden.&lt;/strong&gt; A model grading itself with its own tests tells you little. Tests it never saw tell you a lot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read every diff.&lt;/strong&gt; The two most worrying results both passed their tests. One deleted a test, one reformatted files outside the task.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The human work moved, it did not disappear.&lt;/strong&gt; Choosing the issue, writing the brief and the hidden tests, and reviewing the diff took longer than the fixes did. That is the job now.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One more lesson from the open source side: by the time I had a fix for one issue, a human contributor had claimed it 6 minutes earlier. Check the issue again right before you post.&lt;/p&gt;

&lt;p&gt;I now use the same workflow for real contributions. Each pull request is reviewed and tested by me and labelled as AI-assisted, which is what the maintainers ask for.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Caveats: one run per model, on two tasks. Free models in this catalogue change often, so treat the names as a snapshot from November 2026, not a ranking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
