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.
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.
Sources
Where this comes from
Read on 28 November 2026. Posts on X were cross-checked against public mirrors.
- Bend 2 repository, README and guide, Higher Order Company
- Bend 2 changelog, release 2.0.0 dated 17 September 2026
- bend-lang.com
- Victor Taelin's launch post, 17 September 2026
- Hacker News discussion of the launch, 17 September 2026
- Bend checker evaluation, result dated 10 October 2026
- Fabio Akita, "New AI-Focused Language Just Released: Bend 2", 19 September 2026
- lean-zip, a compression library written and proved by AI agents
- Deng, Fan and Meng, "Understanding the (In)Security of Vibe-Coded Applications", 2026
- The PrimeTime, "finally a language for vibecoders", 17 November 2026
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.