A grammar-based approach stops local models from breaking JSON in production agents

paulqq · reddit · 2026-07-29

The post explains how to make small local models stop breaking JSON by using grammar constraints instead of hoping the model behaves.

Key points:

The article is presented as a deep dive into Eris, a local Rust agent that uses Markdown notes as memory and runs entirely on the user’s machine, with code and a public repo included.

Original post →

More from coding & agent

coding & agent channel →