CSPL: enforcing small-model structured output via game engines

bye_ella · reddit · 2026-11-29

Follow-up on the DSL vs JSON tool-calls debate for small models: the author's team uses CSPL, where the model writes short programs in tiny game-specific languages and a server-side engine enforces the rules, rejecting violations with line numbers. Rule changes live in handlers — a wine container delivered under the old rule was rejected by the same saved program after the rule tightened, with no model call on re-run. Demos at extella.dev/demos; the author asks which rules from your agent setup you'd move out of the prompt and into an engine.

Related event: CSPL: game engines enforce structured output for small models(2 posts)→

Original post →

More from coding & agent

coding & agent channel →