frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Why XML Tags Are So Fundamental to Claude

https://glthr.com/XML-fundamental-to-Claude
33•glth•2h ago

Comments

TheJoeMan•1h ago
That first image, “Structure Prompts with XML”, just screams AI-written. The bullet lists don’t line up, the numbering starts at (2), random bolding. Why would anyone trust hallucinated documentation for prompting? At least with AI-generated software documentation, the context is the code itself, being regurgitated into bulleted english. But for instructions on using the LLM itself, it seems pretty lazy to not hand-type the preferred usage and human-learned tips.
Calavar•1h ago
It looks like a screenshot from the Claude desktop app, so I don't think the author is trying to disguise the AI origin of the marerial
rafram•1h ago
No, it’s two screenshots from Anthropic documentation, stitched together: https://platform.claude.com/docs/en/build-with-claude/prompt...

The post even links to that page, although there’s a typo in the link.

dmd•23m ago
They're not even stitched together ; there's just no padding between the two images.
glth•19m ago
Author here: I have just fixed the typo. Thank you.

And yes, these are screenshots from Anthropic’s documentation.

wolttam•1h ago
Anthropic’s tool calling was exposed as XML tags at the beginning, before they introduced the JSON API. I expect they’re still templating those tool calls into XML before passing to the model’s context
pocketarc•48m ago
Yeah like I remember prior to reasoning models, their guidance was to use <think> tags to give models space for reasoning prior to an answer (incidentally, also the reason I didn't quite understand the fuss with reasoning models at first). It's always been XML with Anthropic.
wolttam•18m ago
Exactly the same story here. I still use a tool that just asks them to use <think> instead of enabling native reasoning support, which has worked well back to Sonnet 3.0 (their first model with 'native' reasoning support was Sonnet 3.7)
imglorp•42m ago
A very minor porcelain on some of the agent input UX could present this structure for you. Instead of a single chat window, have four: task, context, constraints, output format.

And while we're at it, instead of wall-of-text, I also feel like outputs could be structured at least into thinking and content, maybe other sections.

Zebfross•40m ago
I thought the goal was minimal instruction to let Claude determine the best way to solve the problem. Not adding this to my workflow anytime soon.
esafak•35m ago
This sounds like something for harnesses, not end users. Are they really expecting us to format prompts as XML??

Ghostty – Terminal Emulator

https://ghostty.org/docs
205•oli5679•4h ago•86 comments

Ape Coding

https://rsaksida.com/blog/ape-coding/
78•rmsaksida•2h ago•35 comments

AI Made Writing Code Easier. It Made Being an Engineer Harder

https://www.ivanturkovic.com/2026/02/25/ai-made-writing-code-easier-engineering-harder/
262•saikatsg•2h ago•189 comments

Microgpt

http://karpathy.github.io/2026/02/12/microgpt/
1318•tambourine_man•15h ago•232 comments

Setting up phones is a nightmare

https://joelchrono.xyz/blog/setting-up-phones-is-a-nightmare/
24•bariumbitmap•2d ago•30 comments

I built a demo of what AI chat will look like when it's "free" and ad-supported

https://99helpers.com/tools/ad-supported-chat
248•nickk81•5h ago•169 comments

Decision trees – the unreasonable power of nested decision rules

https://mlu-explain.github.io/decision-tree/
244•mschnell•8h ago•41 comments

Aromatic 5-silicon rings synthesized at last

https://cen.acs.org/materials/inorganic-chemistry/Aromatic-5-silicon-rings-synthesized/104/web/20...
40•keepamovin•2d ago•15 comments

We do not think Anthropic should be designated as a supply chain risk

https://twitter.com/OpenAI/status/2027846016423321831
679•golfer•19h ago•365 comments

Interview with Øyvind Kolås, GIMP developer (2017)

https://www.gimp.org/news/2026/02/22/%C3%B8yvind-kol%C3%A5s-interview-ww2017/
58•ibobev•3d ago•19 comments

Flightradar24 for Ships

https://atlas.flexport.com/
65•chromy•5h ago•22 comments

Lil' Fun Langs' Guts

https://taylor.town/scrapscript-001
6•surprisetalk•1h ago•1 comments

10-202: Introduction to Modern AI (CMU)

https://modernaicourse.org
146•vismit2000•9h ago•33 comments

New iron nanomaterial wipes out cancer cells without harming healthy tissue

https://www.sciencedaily.com/releases/2026/02/260228093456.htm
48•gradus_ad•1h ago•7 comments

Why XML Tags Are So Fundamental to Claude

https://glthr.com/XML-fundamental-to-Claude
33•glth•2h ago•11 comments

The real cost of random I/O

https://vondra.me/posts/the-real-cost-of-random-io/
52•jpineman•3d ago•3 comments

Why is the first C++ (m)allocation always 72 KB?

https://joelsiks.com/posts/cpp-emergency-pool-72kb-allocation/
88•joelsiks•7h ago•15 comments

Switch to Claude without starting over

https://claude.com/import-memory
396•doener•9h ago•190 comments

Long Range E-Bike

https://jacquesmattheij.com/long-range-ebike/
12•birdculture•3d ago•12 comments

An ode to houseplant programming (2025)

https://hannahilea.com/blog/houseplant-programming/
93•evakhoury•2d ago•16 comments

Obsidian Sync now has a headless client

https://help.obsidian.md/sync/headless
535•adilmoujahid•1d ago•176 comments

Robust and efficient quantum-safe HTTPS

https://security.googleblog.com/2026/02/cultivating-robust-and-efficient.html
69•tptacek•1d ago•6 comments

Show HN: Vertex.js – A 1kloc SPA Framework

https://lukeb42.github.io/vertex-manual.html
18•LukeB42•5h ago•13 comments

The happiest I've ever been

https://ben-mini.com/2026/the-happiest-ive-ever-been
583•bewal416•3d ago•311 comments

Rydberg atoms detect clear signals from a handheld radio

https://phys.org/news/2026-02-rydberg-atoms-handheld-radio.html
50•Brajeshwar•1d ago•20 comments

Pigeons and Planes Has a Website Again

https://www.pigeonsandplanes.com/read/pigeons-and-planes-has-a-website-again
28•herbertl•3d ago•2 comments

The Windows 95 user interface: A case study in usability engineering (1996)

https://dl.acm.org/doi/fullHtml/10.1145/238386.238611
322•ksec•18h ago•227 comments

MCP server that reduces Claude Code context consumption by 98%

https://mksg.lu/blog/context-mode
501•mksglu•1d ago•94 comments

Hardwood: A New Parser for Apache Parquet

https://www.morling.dev/blog/hardwood-new-parser-for-apache-parquet/
78•rmoff•3d ago•8 comments

H-Bomb: A Frank Lloyd Wright typographic mystery

https://www.inconspicuous.info/p/h-bomb-a-frank-lloyd-wright-typographic
119•mrngm•3d ago•31 comments