It's 1994 and Sailor Uranus is broken.
At 23:03 on a Thursday in July 2026 I committed four files to an empty repository: a one-page brief, a hitbox table, an address card and a 65-line Python extractor. At 01:37 the next morning, a coding agent committed a 12-byte patch that fixes a thirty-year-old infinite combo in Bishoujo Senshi Sailor Moon S: Jougai Rantou!? Shuyaku Sōdatsusen, a 1994 Super Famicom fighting game. A fix that had been on my mind for years and that I had put on the backburner after doing some memory mapping and concluding this was perfectly doable but also very time-consuming.
That was the first evening. The brunt of the work was done in two days: that night, and a weekend ten days later when Claude took the engine apart system by system, covering damage, stats, throws and every special move of every character. The rest of the two months was piling up new patches and many more tests, testing the limits of what the agents could do, and starting to build my ongoing framework for agent-driven black-box engineering.
But first, a bit of context.
A game that is broken in all the best ways
Sailor Moon S came out in Japan on 16 December 1994, published by Angel (a subsidiary of Bandai). What is not common knowledge is that the developer was none other than Arc System Works, 4 years before the first Guilty Gear and decades before becoming one of the handful of legendary-grade names in the fighting game genre. This actually was the first fighting game the studio ever made and I am in awe of what they acheived.
Indeed the game is remarkably feature-packed and forward thinking: featuring backdashing, guard cancelling, reversals, desperation moves, and even super jump (well.. for one of the characters). To be fair, the same year 1994, Vampire/Darkstalkers would blow that out of the water… but in arcades, on state-of-the-art CPS-II hardware. Sailor Moon S is a SNES game, about a tenth of the size running on a fraction of the CPS-II computing power. Oh and did I mention the game has separate hurtboxes and data for head and body?
This being said, the game is not without faults. It has a few bugs and is, at first glance outrageously broken because most of the moves are way too good. But in the face of that, ArcSys dared do the unthinkable: instead of nerfing broken characters and make everyone fair but dull, they instead basically buffed everyone to the point where everyone stands a chance. Simply put: universal mechanics like invincible back dashing and guard cancelling give you a chance against anyone. The game is still brutal but it is extremely fun and rewarding and that’s why it still has a competitive scene thirty years later, and a small but very dedicated community.
All is good then? Well.. I might have lied by omission. Everyone does have a chance but Sailor Uranus is broken to such an extent that most of the community decided to ban her. The reason is two-fold and both are linked to her forward dash: 1) she has an easy infinite (i.e. an infinite damage loop) and 2) she has a bug in her programming that makes her dash invincible post hard knockdown. I had no idea about the root cause of the second bug but the infinite I knew all about and, perhaps more importantly, I knew how I wanted to fix it.
So my brief to the agents was surgical and could be paraphrased as “don’t rebalance the game, keep the loop, but make each repetition require a press timed to a single frame: one sixtieth of a second, with no input buffer to help.”
Note: frames. The console redraws the screen 60 times a second, and fighting games count everything in those ticks. A move with “3 frames of startup” hits 50 ms after you press the button. A “1-frame link” means the next press must land inside one specific 16.7 ms window. That is very hard, but humans can learn it.
No source code, only the cartridge
There is no source available for this game. All I could rely on was a dump of the 2.5 MB ROM from my own copies of the game, the community’s knowledge (frame data on Dustloop, a RAM map in an existing training-mode script), my own exploratory notes and an emulator.
I brought very little else from outside. The SNES itself is about as well documented as hardware gets. This game’s code is not. A few community members know it extraordinarily well, the community-standard training-mode script answers a lot of questions, and most of the frame data is known. But the engine itself, and the mapping from what you see on screen to the bytes that cause it, were largely uncharted.
Looking a the agents working, what became clear very quickly was that the obstacle wouldn’t be the complexity of the assembly. It was the size of the codebase. A 2.5 MB cartridge, or 2.5 + 3 MB once the sequel joined in, is small enough for Claude to hold the whole problem at once. (My next project, a CPS-II arcade game with a romset of about 45 MB, would need to be taken bit by bit. But even so, as long as you can carve out proper scopes, the sky is the limit.)
The setup I designed, and later generalised, works like this:
- Mesen2, headless. The agent boots the game with no window, drives the controllers from Lua scripts, and reads memory every frame.
- Probes. Hundreds of small Lua scripts each answer one question (“what writes to this byte, and when?”) and write a trace file the agent can grep.
- Builders, not patches. For each change, a Python script reads the clean ROM, edits the bytes, writes a new ROM, and only then diffs the two into a BPS patch file. Every build is checked by SHA-1.
- Human testing. Nothing ships until someone has played it.
The brief’s own plan put it in two words: dynamic first. Don’t start by reading assembly. Instead press the buttons on the emulator, watch which memory changes and which instruction changed it, and only then open the disassembler at that address, as a human would.
The first evening
The commit log of that first night reads like a lab notebook:
| Time | Commit | What happened |
|---|---|---|
| 23:30 | 6641fc3 |
Headless emulator harness running. |
| 23:58 | 3ab1680 |
The agent maps how the title menu reads the controller (a 4-frame polling cadence), because a robot has to get past the menus before it can play. |
| 00:11 | 183fd0b |
It finds an off-by-one in the emulator’s Lua API: the controller port is the third argument, not the second. Input injection now works. |
| 00:27 | a8d75a7 |
It navigates from boot to a live match, Uranus against Moon, with no human input (it pokes the character-select cursor rather than pressing buttons there), and saves a savestate as a test fixture. |
| 00:50 | 252bdf1 |
It measures the loop as the brief described it, starting from crouching light punch. |
| 01:14 | 038785b |
Retarget. The measurement shows the loop the community actually uses is crouching heavy punch cancelled into a forward dash. My brief named the wrong move. |
| 01:37 | b914e3d |
Patch shipped. |
The last commit message is worth quoting, because it shows what “done” meant:
Patch (12 bytes): reroute the handler’s cancel-check through a stub in verified-free space $C1:BE20 gating on step tick < 4, delaying dash-out by exactly 6 frames. Loop continuation collapses from a 7-frame window to 1 frame […]. Proven: +1f gate test, whiff/on-hit traces byte-identical, Moon unaffected (stub never executes), 3-rep frame-perfect infinite still lands vs blocking P2, BPS round-trip.
Let’s look at the shape of that proof:
- positive case: the infinite loop still works if you are frame-perfect
- negative case: it no longer works if you are not
- side effects: byte-identical traces where nothing should change
- control: another character, for whom the new code never runs
That shape became the project’s standard.
The same morning, the agent went after the other bug which the community largely agrees is the main reason Uranus should stay banned. It has been labbed it thoroughly and Inva’s video What makes Sailor Uranus so broken? explains it with footage. What was not readily available was the exact implementation mechanism of the invincible forward dash bug (I have no doubt at least a handful of experts knew but I wouldn’t blame them for not documenting every little case).
It turns out that after a knockdown, every character loses its invulnerability when it starts an action, except Uranus’s forward dash, whose handler alone skips the one instruction that clears it. Dash on wake-up and you stay invulnerable for the whole dash. A thirty-year-old bug, root-caused and fixed in 10 bytes (ed68e31).
What truly surprised me most that night was that Claude didn’t just find the code, it interpreted it. We’re not talking decompilation here but interpretation of the codebase, without source. Furthermore, because LLMs are trained on material that includes fighting game jargon, Claude explained the code using FGC terms. And that has major benefits.
See, fighting-game players share a precise lingo: a meaty is an attack timed to hit on the opponent’s first frame of wake-up, a true combo can’t be blocked between hits, and a link are 2 moves that combo but that you can’t buffer: you have to input exactly on time. Consequently, arcane as it might sound: “make the forward dash into light punch a 1-frame link, but keep it a true combo, not a meaty” was a complete and unambiguous spec, and the commit messages and docs that came back used the same words in the same senses.
One honest caveat: that evening was not a cold start. The four files in the first commit were the product of my own earlier memory-mapping, and the RAM map came from an existing community training mode. The agent was fast because it started on solid ground.
Then it kept going
The first week ended with a handful of balance patches and a palette pack. Then the project sprawled:
| Week | Commits | What it was about |
|---|---|---|
| Jul 9–12 | 19 | Harness, first patches |
| Jul 13–19 | 117 | More patches, a training mode (first in Lua, then inside the ROM), and a deep engine campaign: damage formula, stat system, throws, every special move of every character |
| Jul 20–26 | 17 | Player feedback, a README, the first “reference” bundle |
| Jul 27–Aug 2 | 91 | A full review of the codebase by two different AI models, then the big swerve: porting Sailor Saturn from the sequel, Super S |
| Aug 3–9 | 257 | Saturn becomes playable, gets her voice, her stage, her nameplate. Releases. Then an audit of every claim in the docs |
| Aug 10–16 | 40 | The measurement rule becomes rule #1. Lessons distilled into agent skills |
| Aug 17–Sep 5 | 33 | An experiment: can this game become an “anime fighter”, with air dashes and juggles? (Yes.) |
What came out
Patches. There are 18 patches, mostly independent and compatible with one another so anyone curious can pick their poison.
Documentation. This is the part I am happiest with, and agents did most of the writing, and the docs are regenerated from the latest data available. docs/game/ holds data-focused analysis of the original game, written for anyone hacking it whether or not they care about my own patches:
- memory maps
- the 128-byte object structure that every fighter and projectile lives in, byte by byte
- the damage pipeline
- the stat system
- sound
- menus
- every special move
A section titled “The holes — what is genuinely not known” lists what we did not figure out. A checker script re-derives the docs’ claims from the cartridge. The day it learned to check addresses, it disproved five very confident statements ins the projects’ documentation (0d4bbfd).
Two pages are drawn for easier access and legibility: the data architecture and one frame, as the cartridge runs it. If you have no idea the kind of write-up you can get from raw data and notes in minutes providing you’re willing to actually guide the AI, I highly encourage you take a look at them.
The contrast with the tests is worth stating. With proper guidance and feedback, the explanations Claude wrote on demand were remarkably readable; those two drawn pages are the best example. Its tests were weaker in one specific way: they kept leaning on inner wording, matching a message’s text or an internal name instead of the behaviour behind it. One health check grepped for the words “ALL PASS (” and broke when a colour code slipped between them (d20ae9a). Post 7 has the rest of that story.
A memory for the agent. The agent forgets everything between sessions. What carried two months of work:
HANDOFF.md, an operational map that grew to 1,620 lines- 28 numbered “traps”, each paid for by a specific mistake
- four tiers of skills: rule books the agent loads, each with a human-readable twin and a script that keeps the two identical
Tooling. About 400 Lua scripts and 80 Python tools. They include an assembler and a disassembler for the console’s 65816 CPU, the latter cross-checked against a different author’s disassembler on 5,051 consecutive instructions. The harness idea was later extracted into its own project, a generic frame-based black-box harness; that is a future series.
Who did what
From the README, in my own words:
Some of the memory analysis, all the decisions, the automated test harness design and a disgusting amount of testing was made by an organic brain. However all the assembly heavy lifting and the immense majority of lua and python scripting was done by Claude.
What I did do:
- Decided. The model offered options with a recommendation, and I picked one or rewrote the question.
- Played. Every release was tested, by humans. Several builds were retired on that field verdict alone, and one fix that passed every check was still wrong, because it reproduced the outcome I had described rather than the mechanism I had asked for. The agent measures what it is told to measure; I noticed when that was not what I meant.
- Set the rules. The most important one is in the next section.
From the beginning, it felt strange compared to LLMs of yesteryear because the agents spoke the right lingo and ran akin to an actual literal team. But the thing that struck me wasn’t so much the tirelessness or ability of the agents but how they acted like a bunch of ADHD brains running on amphetamines: potentially brilliant, needing no sleep, hyper-focused but with the memory of a goldfish and more than anything: as confident as a stock trader from the 80s. I would lie if I said I didn’t feel elation as much as I felt terrified. However this is not a new risk: human teams are prone to exhibit the same kind of behaviours and I happen to have extensive experience on how to manage such risks.
The one rule
About a month in, I wrote this down as a standing rule, before the next piece of work rather than in reaction to a particular mistake. It became the first section of the agent’s instructions:
When you don’t know you measure, when you think you know you measure to check against the measurement, and when you’re sure you don’t have to measure is precisely when you absolutely must measure. The source of truth is the original code.
The agent’s own paraphrase, which it kept in its notes: unmeasured certainty is the failure signal, not the safety signal.
A coding agent writes confident prose at exactly the same speed as correct prose. You cannot tell the two apart by reading, only by measuring.
The repository, patches and docs are on GitHub.