Skip to main content

AI

A language that makes AI prove its work

Bend 2 is built so that AI-written code has to come with proof. You shouldn't build a website in it. The idea behind it is the one to steal.

The argument

Writing code is no longer the expensive part. Knowing whether the code is right is.

A programming language launched in September with the heart of its pitch in one line of its README: "PROBLEM: How can you trust AI code, without reading it?"

It's called Bend 2. Two months later ThePrimeagen gave it a video with the title "finally a language for vibecoders", which has had about 372,000 views.

I don't think you should build your website in it. I do think it has asked the right question, and that its answer is where a lot of software is heading.

What Bend 2 is

Bend 2 was released on 17 September 2026 by Victor Taelin and his company, Higher Order Company, in Rio de Janeiro. It's free and open source. It's a new language and not an update: the README says "Bend 1 programs and HVM do not carry over."

His launch post described it as "a new programming language that blocks AI mistakes via proof checking".

The unusual part is who it's for. Most languages are designed for people to write. This one is designed for an AI to write and a person to supervise. The site tells you to paste a few lines of instructions into the file your coding agent reads. The checks are fast on purpose: "Bend takes a second at most, so an AI agent can check after every change."

It got attention. The Hacker News thread had 616 points and 327 comments when I read it, many of them critical.

What a law is

The idea rests on two words, law and proof.

A law is a statement about your program that has to be true for every possible input. You write it in the language itself, so there's no room for interpretation. A proof is a second piece of code that convinces the checker the law holds.

The intended division of labour is that a person writes the laws, and the AI writes the program and the proofs. If the AI later changes the program in a way that breaks a law, the old proof stops fitting and the check fails. It has to fix the code or find a new proof.

The README's quick start is looser. There the AI drafts the laws and runs the check itself, so a person still has to read them.

Here is a real one, from the demo game that ships with Bend 2:

# LAW: for any sequence of moves, replaying them
# from the start can never lead to victory.
law you_cant_win:
  for moves: List<Game.Move>
  board = Game.replay(Game.start(), moves)
  {Game.is_won(board) == False{} : Bool}

The game cannot be won, and that is the point of the demo. In Taelin's words, "the AI is mathematically unable to write a bug. and, per the rules, winning is a bug."

The README sums it up in a way anyone who uses coding agents will recognise: "LAWS.bend is AGENTS.md backed by proof."

That's the line that matters. I already write rules for AI agents, in plain English, in a file. They are requests. A good model follows them most of the time. A law is a rule the machine can't talk its way around, provided the check is run and the law is left alone.

Why it's the right idea

Writing code is no longer the expensive part. Knowing whether the code is right is.

I've quoted the figure before: when researchers audited 200 live apps built with AI coding tools, 91% had at least one security vulnerability. Nobody chose to ship those holes. Nobody looked.

Bend's bet is that the looking can be done by a machine, if you tell it exactly what to look for. There's some evidence the loop works. The project ran its own test: the same model on the same 20 tasks, once with access to the checker and once without. With the checker it passed 20 out of 20. Writing proofs blind, in a single reply with nothing to run, it passed none. That's the project marking its own homework, so treat it as an illustration.

A more useful example came from a reviewer. Fabio Akita tried Bend 2 on launch day and published his review two days later. He deliberately broke a piece of code with an off-by-one error. By his account "the three sample outputs came out identical", so a small test suite would have passed it. Then he ran the proofs: "The proof gate rejected it, with the exact term that stopped matching."

A test checks the cases you thought of. A proof checks all of them.

Bend didn't invent this, and its critics were quick to say so. Proof checkers such as Lean have been used on AI-written work all year. Earlier in 2026, AI coding agents wrote and proved a version of a widely used compression library. What Bend 2 can fairly claim is narrower. It appears to be the first general-purpose language launched with this as its headline purpose.

The catch, which its author admits

A law only protects what you remember to write. That isn't my criticism. It's Taelin's own reply to one: "that's the issue with laws: they only protect what you remember to write. They're not a silver bullet."

His demo shows it. The law says the game can never be won. In Taelin's own examples, asked to remove the wall on the right, the AI put it on the left. Asked to remove the walls, it made the movement keys move the flag. Every law still held. The game no longer made sense.

It wasn't watertight at launch. Within days, outside testers got released versions to accept proofs of things that were false. Each hole was fixed within a few days, and a stricter second check was added on 27 September. Taelin put up $10,000 for anyone who can prove a falsehood. The stricter check had a hole of its own, fixed on 3 October. When it was submitted for the bounty in November, a maintainer agreed it was real in the version the rules name. Whether it counts is unanswered, and no payout has been confirmed.

The compiler was written by AI and hasn't been fully checked. The README says so: "The compiler (not kernel) is 99% AI-written and not yet fully audited."

It is verbose. The demo game is under 200 lines. The file that proves its two laws is close to 500.

It isn't ready for web work. From the README again: "Bend works best on the back-end, on Linux or macOS." There's no library yet for HTTP, JSON or secure connections.

The company may not last. On 7 November Taelin said the large investors he'd approached had turned it down, and wrote "HOC may die, but not today".

So no, I wouldn't build a client's website in it. I wouldn't build anything a business depends on in it yet.

What I'd take from it anyway

The part worth stealing is the habit. Before you let an agent loose on a codebase, write down what must stay true, in a form a machine can check.

Web development already has weaker versions of a law, and they're worth seeing as a ladder.

  • An instruction in the agent's rules file. The agent is asked. Nothing checks.
  • A test. It checks the cases somebody thought of.
  • A type. It rules out a whole class of mistake, everywhere, every time the code is built. This is a large part of why I think Payload suits AI-assisted work: its types are generated from the content model, so the compiler catches an agent that misuses a field.
  • A proof. It covers every case, for the things you wrote a law about.

Most AI-built software lives on the bottom rung. A prompt says "make it secure" and a person hopes. Every step up the ladder replaces a hope with a check.

That gives a client a better question to ask anyone building with AI. Don't ask whether they use it. Ask what the AI's work has to pass before a person signs it off. How I use AI on client work is set out in my AI policy.

Bend 2 might be gone in a year. The idea that AI should have to show its working will not be.

Want a hand with this on your own site? See Building with AI.

  • AI development
  • Bend 2
  • programming languages
  • code quality
  • vibe coding

Sources

Where this comes from

Read on 28 November 2026. Posts on X were cross-checked against public mirrors.

Who wrote this

I'm Simon, a freelance web designer and developer. I build websites and online shops with AI, and I build AI into them: chatbots, content tools and automations. How I use AI on client work, and what never goes into it, is set out in my AI policy.

How this was written

AI helped write this piece. I've checked it, and I stand behind every claim on it.

Rather talk it through?

Tell me what you're building and I'll say plainly what I'd do.