./bench --your-repo
The Best Coding Model Is the One You Tested.
Everyone wants a name. The best local ai model for coding depends on your language, your card and your job, and the honest answer is a short list plus a test you run yourself.

Pages that crown one model are out of date by the time they are indexed. Open weight coding models are released, superseded and quietly improved month by month, and a page that says "run this one" would be a lie within a season. So this page does something else: it tells you what we actually look for, which families keep delivering, and how to settle it for your own repository. The method is laid out in back to choosing a local coding model; this is the opinionated part.
For Completion

We want the smallest model that still finishes a line correctly in mainstream languages. The families that have consistently done well for us here are the dedicated coder variants from the large open weight families, the ones trained on code with fill-in-the-middle support built in. The small sizes are good enough on a laptop. The deciding factor is latency, and we would rather run a smaller model fast than a bigger one with a visible pause.
For Chat and Review
Here a mid-sized general or coder model on a shared server wins. It needs to explain, not just complete, and that benefits from more parameters and a longer context. Several of the families covered in our model pages have coder-tuned versions at this size. Our experience: they explain a stack trace well, propose a fix well, and over-claim about whether the fix is complete. Read the diff.
For Agents

The requirement that trips most models is reliable tool calling plus the discipline to stop. Only the larger open weight models have been dependable for us in a loop. If you cannot run one of those, run a simpler completion-and-chat setup instead and keep the agent idea for later.
Run the Test
Collect a folder of real tasks. Rename a function across files. Add a test. Fix a bug you already fixed last month, with the bug reintroduced. Give each candidate the same prompts, in the same editor, and score whether you would merge the result. Count the plausible wrong answers separately from the obvious wrong ones, because the plausible ones are what costs you later.
Do this once a quarter. The ranking will change, and that is the point: the best model is a measurement, not a brand.

Prove it on your documents.
Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.