frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A Markdown DSL to stop AI agents from hallucinating UI code

https://github.com/MegaByteMark/markdown-ui-dsl
1•MegaByteMark•2h ago

Comments

MegaByteMark•2h ago
Hi HN,

I built this after getting incredibly frustrated with how LLMs handle UI scaffolding in tools like Cursor and Copilot.

If you ask an agent to "build a dashboard," you get a different result every time. If you write a massive, descriptive prompt detailing every padding and flex-box property, you waste time. Figma screenshots work sometimes (with vision models), but they are token-heavy, slow, and impossible to git commit as text.

I wanted a deterministic Intermediate Representation (IR) for UI that both humans and LLMs could read effortlessly. So, I built a lightweight Markdown DSL.

Instead of a paragraph of vague text, you just give your workspace a .ui.md file that looks like this:

```markdown --- framework: React + Tailwind CSS theme: ./design-system.md component: src/components/LoginForm.tsx ---

||| COLUMN ||| ::: CARD ::: # Welcome Back [ text: Email Address ] [ text: Password ] [ Login ](#login) --- END --- --- END --- ```

Why this works better:

It's deterministic: LLMs inherently understand tree mapping and markdown. ||| COLUMN ||| maps to standard flex-col logic every single time without hallucinating.

Two-Way Code Sync: Because of the component: frontmatter, the AI knows exactly which file this wireframe maps to. If a PM or dev updates the text in the .ui.md file (e.g., adding a checkbox), you just hit Cmd+I / Copilot Chat and say "Sync changes", and it automatically hunts down the React/Vue file and reconstructs the component.

True separation of concerns: The structural wireframe is entirely isolated from the design system/styling rules.

It's essentially Spec-Driven Development taking advantage of native LLM text-parsing strengths.

It’s just a set of instructions/skills you can drop into your .github/copilot-instructions.md or .cursorrules.

Would love to hear your thoughts on this approach, or if any of you have found better ways to enforce strict layout constraints on coding agents!

Show HN: I built an open harness that excels at autonomous ML research

https://github.com/snoglobe/helios
1•snwy•4m ago•0 comments

AI should help us produce better code

https://simonwillison.net/guides/agentic-engineering-patterns/better-code/
2•birdculture•5m ago•0 comments

DIY scanner to visualize sound waves in 3D [video]

https://www.youtube.com/watch?v=Ky7AWh8nd-A
1•i2pi•5m ago•0 comments

Do AI-enabled companies need fewer people?

https://seldo.com/posts/do-ai-enabled-companies-need-fewer-people/
1•handfuloflight•5m ago•0 comments

SmallClaw: Local-first AI agent framework built for small models

https://github.com/XposeMarket/SmallClaw
1•thunderbong•6m ago•0 comments

Windows 98 NVMe Driver [video]

https://www.youtube.com/watch?v=YUoJS2xXRmQ
1•Modified3019•7m ago•1 comments

Iran warns US tech firms could become targets as war expands

https://www.wired.com/story/iran-warns-us-tech-firms-could-become-targets-as-war-expands/
4•anigbrowl•9m ago•1 comments

Why isn't vibe coding creating more shareware?

1•watershawl•11m ago•1 comments

Divine-OS – Persistent Identity Layer for AI Agents

https://github.com/AetherLogosPrime-Architect/Divine-OS
1•Aetherlogos•11m ago•1 comments

I-Harmonium

https://github.com/gajraj-m/iharmonium
1•macote•13m ago•0 comments

Show HN: s@: decentralized social networking over static sites

http://satproto.org/
2•remywang•13m ago•0 comments

Experimental Type Union Type C#

https://github.com/dotnet/csharplang/discussions/9663
1•ahmedfouad•14m ago•0 comments

PFAS pesticides contaminate nearly 40% of non-organic California produce

https://www.ewg.org/research/forever-chemicals-contaminate-nearly-40-non-organic-california-grown...
2•OutOfHere•17m ago•0 comments

The Perverse, Tender Worlds of Paul Thomas Anderson

https://www.newyorker.com/magazine/2026/03/16/the-perverse-tender-worlds-of-paul-thomas-anderson
2•tzury•17m ago•0 comments

Show HN: AI-nexus – Only 2-3 rules and skills load per prompt in Claude Code

https://github.com/JSK9999/ai-nexus
1•suntrix3•19m ago•0 comments

Atlassian lays off 1,600 workers ahead of AI push

https://www.theguardian.com/technology/2026/mar/12/atlassian-layoffs-software-technology-ai-push-...
2•voxadam•20m ago•1 comments

Why Physical AI Is Hard

https://dexterity.ai/blog/why-physical-ai-is-hard
1•devy•26m ago•1 comments

Hex1b, the .NET Terminal Application Stack

https://hex1b.dev/
2•bladeee•28m ago•0 comments

Postman: predicting spatial protein expression from pathology slides

https://strandai.com/blog/postman-early-access
1•odedfalik•28m ago•1 comments

Is AI the end of software engineering or the next step in its evolution?

https://www.theverge.com/ai-artificial-intelligence/767973/vibe-coding-ai-future-end-evolution
1•ianrahman•28m ago•0 comments

I built a protocol to catch LLMs mid-thought, before they commit to an answer

https://github.com/IvY-Rsearch/wire
1•IvY-Rsearch•29m ago•3 comments

An agent that starts learning from zero state

https://github.com/ChangweiZhou/digitalbaby
1•Pencilbard•30m ago•0 comments

Startup Idea: Make geography irrelevant when browsing the internet

1•mowcirclular•30m ago•1 comments

Mac Neo and my afternoon of reflection and melancholy

https://twitter.com/stevesi/status/2031842797838614548
1•cebert•31m ago•1 comments

'Convincing' AI scams drove UK fraud cases to record 444,000 last year

https://www.theguardian.com/money/2026/mar/12/ai-scams-uk-fraud-artificial-intelligence-mobile-ba...
2•chrisjj•31m ago•0 comments

Show HN: Gitingest for Jupyter Notebook Accessibility

https://jupycheck.vercel.app/
1•deviscold•33m ago•1 comments

David Foster Wallace: This Is Water (2005)

https://fs.blog/david-foster-wallace-this-is-water/
2•vermilingua•35m ago•0 comments

Plan to Unblock Strait of Hormuz Collides with Realities of Global Insurance

https://www.wsj.com/finance/u-s-plan-to-unblock-strait-of-hormuz-collides-with-realities-of-globa...
6•petethomas•36m ago•1 comments

One of Grammarly's 'experts' is suing the company over its AI feature

https://www.theverge.com/ai-artificial-intelligence/893451/grammarly-ai-lawsuit-julia-angwin
3•october8140•44m ago•0 comments

MiniGTD: GTD but Smol

https://nekolucifer.substack.com/p/minigtd-gtd-but-smol
2•andai•48m ago•1 comments