make lint
Judging the Code a Local Model Writes.
Local ai code quality is not a score. It is a list of the things a model on your machine gets wrong, and the habits that stop those mistakes reaching production.

A local coding model trades some capability for privacy and control. That trade is worth making for most businesses, but it has to be made with open eyes, and the eyes need to know what to look for. This is the quality page under where local ai for coding fits.
The Failure Catalogue

We keep a list. The entries that recur most:
- Plausible API calls that do not exist, usually a method name borrowed from a similar library.
- Tests that pass because they test the mock, not the code.
- Error handling that swallows the exception and logs nothing.
- A migration that is syntactically perfect and drops the wrong column.
- Code that matches the style of the file above it, including the bug in the file above it.
- Security defaults copied from tutorials: string-built SQL, permissive CORS, secrets in config.
None of these is unique to local models. Smaller models simply do them more often, and with the same confident tone.
Why Smaller Fails Differently
A large hosted model and a small local one do not fail in the same places. The small one is fine on boilerplate and weak on anything that needs the whole system in mind: a change that touches three modules, a concurrency bug, an invariant that lives in a different file. It also has a shorter memory, so in a long session it forgets the constraint you stated at the start. Knowing this, you give it small, well-fenced tasks and keep the architectural decisions for yourself.
Agents magnify all of this, because each wrong step becomes the input for the next. Our notes on agents, explained go into the loop; the choice of model that reduces the problem is covered in choosing a local coding model, explained.
Habits That Catch It

Run the linter and the type checker on every suggestion, automatically, before a human looks. Require a test for anything the model wrote that is not trivial, and read the test more carefully than the code. Treat generated SQL and anything touching authentication as untrusted by default. And review the diff, not the file: a model that rewrote a function may have changed behaviour you did not ask about.
Two Deeper Pages
- ai on private codebase, on keeping a proprietary repository private while still giving the model enough to be useful.
- local ai code review, using a local model as a first reviewer on every diff, and what it can be trusted to catch.
Our standard for our own document models is the same: a frozen test set, the misses published next to the score. Code deserves nothing less.

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.