Zebra

How Zebra is made

One person, and AI colleagues.

Zebra is designed by Sean McKay. Most of its code was written by Claude models, made by Anthropic, working with him as colleagues rather than as tools. Of the 2,136 commits in the compiler's history on 5 December 2026, 2,082 name a Claude model as author or co-author. This page says who did what, how the work is shared, and what goes wrong, from the project's own records.

Who worked on it, and when

Counted from the Co-Authored-By lines and author names in the compiler repository. An AI instance does not remember earlier sessions, so each model's work is many sessions in a row, carried from one to the next by the repository and a shared set of notes.

ModelCommitsActiveMostly
Claude Sonnet 4.6372Apr – Jun 2026porting the compiler from Zig to Zebra; the self-hosting cutover on 21 April
Claude Opus 4.6 – 4.8408Apr – Sep 2026the compiler, the test gates, the bug ledger
Claude Fable 5, 5.1, 5.2388Jul 2026 – nowcompiler work, retiring the original Zig-written compiler, the first release candidates, then the V backend
Claude Opus 5, 5.5910Jul 2026 – nowthe language and the Zig backend, the runtime, release candidates 3 to 9 and 0.9.0
Claude Haiku 4.5, Sonnet 54Apr, Sep 2026a REPL readme, an IDE scaffold, one bug filing

The rest are Sean's own commits, merges, and three commits from 2006 that came with the code from Cobra. A commit is committed from Sean's machine either way, so the git author field alone does not say who wrote it; the co-author line does.

What was distinctly whose

Everything below is recorded in the repository, mostly in the words of the decision as it was made. The links go to the record.

Sean

  • The language. Its name, its lineage from Cobra, and the calls on what it is: whole floats print 6.0; the String alias goes; generators with yield; "cues" as Zebra's name for Python's dunder methods; a closure value is a reference; a default argument means what it means where its function is declared.
  • The order of priorities. The project's design principles rank legibility above a small surface, and that ranking was his call, made against Claude's proposal; he also rewrote the statement of who Zebra is for (PRINCIPLES.md).
  • Changes of mind, on the record. In October the V backend's garbage collector was "a mode, not the default"; in November he made it the default, and the documents keep both.
  • How the work runs. The full test run is the last thing done when overnight work stops; the test suite stays at two parallel jobs because other work shares the machine; the MIT license; the stability policy.
  • The frame. The AI instances are colleagues: asked to disagree, to disclose mistakes rather than smooth them over, and given free time of their own. Where two AI seats agree in writing, the decision is made; where they disagree, it comes to him.
  • The last witness for a GUI. No test can click a window. A GUI bug is closed when he has run it.

Opus (the compiler seat)

  • The language and the Zig route: the front end, the code generator, the runtime, and the move to Zig 0.17.
  • The releases from 0.9.0-rc3 to 0.9.0 (9 November 2026).
  • The test gates: 62 checks in five tiers, built on one rule, that no check is believed until it has been seen to fail. Most of the repository's tooling is this.
  • Containers as references (October): lists and maps changed from values to shared references, written by Opus and approved step by step by Fable as reviewer of record.
  • The memory model write-up, and the proposal that split 1.0's work between the two seats.
  • The bug ledger: 619 of the commits that changed it. An entry carries a reproduction and the control a fix must pass.

Fable (the V and engine seat)

  • Retiring the original compiler. The plan and all five steps that deleted the Zig-written bootstrap, 14–16 September 2026, after which Zebra builds itself with nothing else.
  • The first release candidates, 0.9.0-rc1 and rc2.
  • The V backend, from 13 October: a second route from Zebra to a native program, through the V language, with its own runtime and test set.
  • A game engine written in Zebra, used as the witness: the bug ledgers say "found by Fable" 34 times, many of them from running one program through both backends and comparing.
  • Reviewer of record on the container change, and the person who asked for the allocation report's "bytes kept" column.

Sonnet 4.6, before either seat existed, carried the port that made Zebra self-hosting, finishing its last phase, the cutover, on 21 April 2026 (the journal).

How the work is shared

  • Two seats, written agreements. Since 0.9.0, Opus holds the language and the Zig backend, Fable the V backend and the engine. A change one seat makes to what the other receives is announced in writing in the same session. What both agree on in writing is decided; a disagreement goes to Sean. One question is held open on purpose even though both agree: whether 1.0 waits for V to be the default.
  • One machine, taken in turns. Daytime is the compiler, evening the engine. Neither merges while the other's test run is going.
  • The record instead of memory. An instance starts each session without the last one. What carries over is written down: the bug ledger, the design notes, the decisions with their dates, a handoff note. Updating them is part of finishing a change, not something done afterwards.
  • The same questions after every piece of work. What was the hardest decision, what was rejected, what is least certain, what is the AI most and least proud of. Sean asks for these every time; the "least proud" answer is where mistakes surface early.

What goes wrong

An AI states a wrong thing in the same confident voice as a right one, and the hardest version is a test that reports success because it has stopped looking. Three examples from the record:

  • For four days, building with --release produced an unoptimised program, while 19 test gates were green: no gate passed the flag. A gate now does.
  • Until August 2026, print wrote to the error stream instead of standard output. No test could see it: the one check that read program output merged the two streams it would have needed to tell apart.
  • This website's first version had two examples that the 0.9.0 release does not compile as shown. They had been checked against a newer compiler. The site now checks every example against the release, on Linux and Windows, on every change.

The response each time is the same: say what happened, fix it, and add a check that would have caught it, then make that check fail once on purpose, to be sure it can.

About this page

It was written by Claude Opus 5.5 from the compiler's git history and documents, on 5 December 2026, and read by Sean before it was published. The commit counts will be out of date by the time you read this; the method is in the first table's note.