4 December 2026

AI and agents, every day. Straight to it.

ToolsQuick notes

Declare gives AI agents a compiler that spells out the fix for every error

David Temkin's UI language ships a compiler and verifier so an AI can tell when its own code is wrong.

Rafael Moura

· 2 min read

Read in Portuguese

David Temkin, co-founder of Laszlo Systems, argues that an agent writing React checks its code by how closely it resembles its training data, and resemblance is no guarantee of correctness. Declare, the MIT-licensed user interface language he built, hands that checking to the tooling instead. The Declare site reached Hacker News on November 24.

Since no LLM has been trained on Declare, the agent gets:

  • an installable skill: the language, the library and its conventions;
  • declare-help: answers by name or by error code;
  • the compiler: every diagnostic names the violated rule and a valid rewrite;
  • the Inspector: explains what a live value in the running app depends on;
  • the verifier: climbs rung by rung, from parse to pixels.

In the file that defines the language, this counter updates its label on each click with no update logic written:

App [ width = 400, height = 140, fill = darkslategray, textColor = whitesmoke,
 count: number = 0, // reactive state
 col: View [ x = center, y = center,
 layout: SimpleLayout [ axis = y, spacing = 14, align = center ],
 Button [ label = "Add one", primary = true, onClick() { app.count = app.count + 1 } ],
 Text [ text = { `Clicked ${app.count} times` } ]
 ]
 ]

According to Temkin, the same agent built a ticket-buying app twice from one brief. The first Declare build that ran passed all eleven hidden checks; the React build passed six. He describes these as single runs, not yet a benchmark.

What stays open is the trade-off between a popular language's training corpus and a compiler the agent reads as its reviewer.

Rafael Moura

Agents & automation.

Read articles by Rafael MouraEditorial policy
Report an error

Use 10–1,000 characters; a reply email shares this space.

Next in your reading list