News for hackers. Stuff that matters.
Re:GLM-5.2 is the new leading open weights model on Artifici... by giancarlostoro on Wednesday June 17, 2026 @08:26AM (#48569422)
I usually have Claude build a plan first, then I put it into an XML file it updates with phases, usually we talk about some of those tasks, and then once its good and I like it, I have Claude implement the plan.

Another thing I tell Claude to do is to not guess, but look at documentation, it messes up a lot less, might use some tokens reading docs, but at least it has a higher success rate code wise.

Re:GLM-5.2 is the new leading open weights model on Artifici... by xstas1 on Wednesday June 17, 2026 @08:56AM (#48569825)
XML??
Re:GLM-5.2 is the new leading open weights model on Artifici... by giancarlostoro on Wednesday June 17, 2026 @09:08AM (#48570001)
Apparently because of how Claude is trained, even the system level prompts go through as XML, it works better with XML "prompting" so I figured I could have it write plans in XML. I need to update my ticketing tool to output XML maybe by default.

https://www.reddit.com/r/ClaudeAI/comments/1psxuv7/anthropic...

Re:GLM-5.2 is the new leading open weights model on Artifici... by saltsucker on Wednesday June 17, 2026 @09:48AM (#48570554)
Comments later in thread say markdown works just as fine and that it’s more important to organize your plan into sections.

Also just think about it, why would a model trained on the world’s corpus of text (that isnt formatted in xml) perform better with XML? It would be a better study if that post tested markdown, org, xml, json, etc. 10 times to see if their is a difference

Re:GLM-5.2 is the new leading open weights model on Artifici... by swingboy on Wednesday June 17, 2026 @11:53AM (#48572213)
Anthropic’s best practices still include the use of XML: https://platform.claude.com/docs/en/build-with-claude/prompt...
Re:GLM-5.2 is the new leading open weights model on Artifici... by adastra22 on Wednesday June 17, 2026 @11:08AM (#48571578)
A year or so ago XML worked more reliably for long-lived prompt instructions. Now it is cargo culting.
Re:GLM-5.2 is the new leading open weights model on Artifici... by orbital-decay on Wednesday June 17, 2026 @06:15PM (#48577700)
XML consistently performed better than markdown and JSON in all evals I've ever seen on any model, except for a couple very specific ones.
Re:GLM-5.2 is the new leading open weights model on Artifici... by root-parent on Wednesday June 17, 2026 @09:33AM (#48570348)
XML stands for Xtra ML....
Re:GLM-5.2 is the new leading open weights model on Artifici... by noworriesnate on Wednesday June 17, 2026 @11:23AM (#48571754)
I'd like to switch to a sales career--can you give me any pointers?
Re:GLM-5.2 is the new leading open weights model on Artifici... by aesthesia on Wednesday June 17, 2026 @04:59PM (#48576820)
One reason to use XML-like formatting is that it makes the beginning and end of sections explicit. This is less of an issue when the model is generating text but can still be helpful when using templated prompts.