Join Nostr
2026-03-31 19:37:09 UTC
in reply to

Tael 🔜 AC26 on Nostr: nprofile1q…tqj99 "So the reason that Claude code is capable of outputting valid ...

"So the reason that Claude code is capable of outputting valid json is because if the prompt text suggests it should be JSON then it enters a special loop in the main query engine that just validates it against JSON schema for JSON and then feeds the data with the error message back into itself until it is valid JSON or a retry limit is reached."

This is how LLMs do *anything* even remotely approaching accurate or reliable work. They offload it to an actual deterministic algorithm. The man behind the curtain. It's frustrating how people don't seem to realize this, I hope it becomes more common knowledge!