u/Not-That-rpg

▲ 6 r/Common_Lisp+1 crossposts

Coding agent and lisp s-expressions

I've been using Opencode + a local model (Qwen3.6-35B-A3B-Claude-4.6-Opus-Reasoning-Distilled-MLX-8bit) as a coding assistant for common lisp. I've been disappointed to find that the LLM frequently fails to properly balance parentheses (although ... in some sense it's a finite automaton, and LLMs are not good at counting, so it's not that surprising).

Does anyone have a work-around for this to make a coding agent write s-expressions properly?

reddit.com
u/Not-That-rpg — 5 days ago
▲ 0 r/lisp

I have been experimenting with using Opencode to assist common lisp coding and I'm finding that, at least with qwen3-coder-next, it has a terrible time matching parentheses. I suppose in a way this should not be surprising: LLMs are still regular language tools, and don't have any CFG features.

Has anyone out there figured out a lisp reading skill that understands s-expression structures, and isn't boggled by issues with parens?

reddit.com
u/Not-That-rpg — 2 months ago