Stop writing LLM instructions in prose: structure criteria as JSON instead
iamrobotbear · x · 2026-09-17
A technical thread on structuring LLM inputs: in @typesafeai's approach, the instructions, criteria and input document can all be JSON — with the first two being the least obvious candidates.
The author notes most people write instructions as prose like instructions: "classify this as a foo or bar" alongside object-form criteria, and argues structuring instructions and criteria reduces parsing ambiguity.
More from coding & agent
- Claude Code Tells Dev a Feature Is Too Simple to Code, Go Do It Yourself — bendee983 · 2026-09-17
- Microsoft's MarkItDown Passes 100K Stars: Turn Almost Any File Into Clean Markdown — mdancho84 · 2026-09-17
- What breaks when an LLM agent moves from demo to production? — Substantial_Bus_5237 · 2026-09-17
- 'When Context and Code Live Together': Devs Revive Knuth's Literate Programming for AI — carsonfarmer · 2026-09-17
- Switching tweet classification to Jev: 6x faster, ~40x cheaper than fastest LLMs — altryne · 2026-09-17
- Dev says Jev classifies tweets 6X faster and ~40X cheaper than fastest LLM — altryne · 2026-09-17