Jonathan Field released lest-c64 on GitHub as a first-person 3D game that runs on a stock Commodore 64, with README credits stating the codebase was written with Claude in Claude Code. The project reached the Hacker News front page on December 4, 2026. You can play online or clone needlestack/lest-c64.
It is a builder artifact in the same conversation as llm.asm and cell-llm on PlayStation 3: how far agentic coding can push absurdly constrained targets when a human owns profiling, layout, and ship tests.
TL;DR
| Question | Answer |
|---|---|
| Platform | Unmodified C64, character-mode 160×200 multicolour |
| Authorship | Jonathan Field with Claude in Claude Code (README credits) |
| License | MIT project; Krill loader BSD |
| Play now | GitHub Pages cartridge; VICE for local |
| Build | node src/build-iray.mjs needs Node 26, ImageMagick 7, optional GoatTracker |
| HN | 41 points, Dec 4 2026 thread |
Why the demo impresses retro builders
Prior C64 3D ports often run under 10 FPS with chunky tiles. Field’s goal was full-resolution character mode at a playable frame rate on real hardware, documented in README.
Tricks include:
- Charset learned from millions of prerendered frames instead of naive bitmap mode.
- Vertical mirroring so the engine shades only the top half of the view.
- Ray casting hinted from the previous frame with binary search on corners only.
- Hardware sprites for entities with occlusion stamps each frame.
- Aggressive memory compaction assigning code from the bottom and tables from the top.
Those are human-driven architecture choices. Claude’s role is implementation velocity across 6502, build scripts, and tooling—similar to how teams use Claude Code on Foxhound for production repos, but exported as a cultural demo anyone can flash to a CRT.
Game controller spark evoking lest-c64 Claude Code retro 3D game build
Build, test, and ship discipline
The repo is not a novelty ROM only:
src/build-iray.mjsemits assembly, builds ten levels, writes D64 and CRT images.docs/TESTING.mdmaps which script answers regression, FPS, or cycle questions.- Caches under
build/.cache/hash inputs so rebuilds drop to ~5 s when unchanged.
That structure is what separates agent-assisted repos from vibe-only dumps. Compare Datadog Ephyra property-based agent testing for a different domain’s rigor.
How to try it responsibly
- Play the browser CRT first; add
?diskonly if you want authentic 1541 load times. - Clone and run
node src/build-iray.mjsonly if you plan to modify levels—GoatTracker patch steps apply for music builds. - Credit Field and Claude per README when you fork; respect third-party licenses.
- Do not treat HN points as proof LLMs replace engine programmers; this is one skilled maintainer with agents as accelerators.
Developers exploring Claude Code on unconventional stacks can join explainx.ai Claude for work workshops for harness patterns that respect tests and licenses.
Renderer deep dive (character mode at speed)
Character mode means the screen is a 40×25 cell grid with a custom charset learned from sampling millions of prerendered frames. That is fundamentally different from bitmap engines that fill 320×200 directly. The compactor assigns code at the bottom and tables at the top of RAM, loading levels on demand via Krill’s loader so optional per-level code does not bloat other stages.
Ray casting reuses previous-frame hints, doing binary search only near corners, while wall seams are projected rather than fully recast. Sprites handle entities with per-frame occlusion stamps, keeping CPU for walls.
Cartridge versus disk: why both ship
lest-c64.crt is byte-identical content arranged for EasyFlash banks with a 251-byte loader mimicking Krill conventions. Disks need true 1541 emulation for the fast loader stage; SD2IEC users are steered to CRT. Browser builds default to CRT for instant loads.
Music toolchain and reproducibility
Full builds expect GoatTracker 2 with a project-specific player patch. MUSIC=0 builds silence for contributors without tracker installs. That is normal retro hygiene, but it also shows agents did not skip licensed audio plumbing.
Layout of the repository for learners
| Path | Purpose |
|---|---|
src/build-iray.mjs | Main orchestrator |
src/levels.mjs | Ten level definitions |
docs/RENDERING.md | Renderer theory |
tools/regress.sh | Regression entry |
tools/fpsr, tools/prof | Performance probes |
If you are evaluating Claude Code, spend one hour in docs/TESTING.md before judging output quality.
Ethics and license hygiene
MIT release covers Field’s code and art, but Krill, exomizer, and GoatTracker carry their own notices. Commercial reuse requires compliance, not only GitHub stars.
Comparison with other agentic retro repos
- cell-llm — inference on exotic hardware.
- llm.asm — tiny model runtime.
- lest-c64 — full game with art, audio, levels, and ship scripts.
The lesson: agents help most when maintainers supply tests, caches, and profilers.
Controls and UX for real hardware
README documents keyboard and dual-port joystick bindings, strafe semantics, and pick-up on release behavior. NTSC is preferred over PAL for timing. These details matter because AI codegen often forgets input debouncing on real 6526 CIA timings.
What developers said on Hacker News
The December 4 thread mixes nostalgia, emulator tips, and skepticism about authorship claims. Treat commenter performance numbers as anecdotes until you reproduce them in tools/fpsr locally. When hands-on notes surface in the thread, they belong in a future UPDATE, not as fact here without reruns.
Level design and narrative framing
Ten levels in src/levels.mjs include sockets, exits, entities, and per-level code for features like failing lights or ball lightning that other levels do not pay for. That modular 6502 layout is how professional retro teams kept ROM budgets—agents accelerates typing, not design judgment.
branch history-main and attribution hygiene
README references history-main with 645 commits across two months before main. If you fork, preserve commit messages that document optimization passes—they are pedagogy for performance culture.
Online EmulatorJS deployment
index.html pins EmulatorJS from CDN, maps keyboard to C64, and loads CRT from the repo so git push updates playable builds. That DevOps loop is modern even if the target CPU is 1982.
Why Commodore 64 specifically
1 MHz 6502 with 64 KB RAM is a stress test for codegen: no floating point, manual cycle counting, hardware sprites as co-processors. Success here does not imply Linux kernel readiness, but it does disprove “LLMs only web apps” memes.
Prompting lessons for agent harness users
Maintainers still specify invariants—no overlapping zero-page, verified alignment, deterministic builds. Copy those patterns into your Claude Code or Codex AGENTS.md files even for TypeScript services.
Performance expectations on real CRTs
Expect NTSC smoothness targets; PAL machines work but README prefers NTSC timing. True drive emulation matters for disk builds because fast loaders execute 1541 code.
Teaching use in classrooms
CS educators can assign lest-c64 as a reverse-engineering lab: students change one optimizer flag, rebuild, and measure fps regression. That teaches evidence-based AI coding better than slide decks about tokens.
Security note for enterprises
Allowing agents on retro repos is low risk relative to production keys, but still scan artifacts before internal mirrors. MIT code is safe to read; your CI secrets are not.
Star count and HN momentum
GitHub showed seven stars early December 4; HN 39 points drove traffic, not enterprise adoption. Use it as a craft benchmark, not vendor selection.
Step-by-step first hour for new clones
- Open the browser CRT and finish level 1 to feel controls.
- Skim
docs/RENDERING.mdfor charset intuition. - Run
node src/build-iray.mjsonce with cache cold, once warm, and record seconds. - Change one constant in a level file, rebuild, and confirm
tools/regress.shstill passes. - Read
src/asm6502.mjsonly if you plan to port the pipeline—otherwise stay in JavaScript tooling.
That hour teaches more about agent limits than asking for “write me a C64 game” without tests.
Share ship.sh output when you demo lest-c64 to executives so they see green regressions, not only marketing trailers.
Pair this repo with explainx coverage of Inkling coding adapters when you argue small targets and large targets both benefit from human-owned test harnesses.
If your org blocks browser emulators, ship a lunch-and-learn with photos of real hardware running CRT builds—physical proof still wins skeptics who dismiss web demos.
Bottom line: lest-c64 is evidence that Claude Code plus disciplined 6502 maintainers can ship playable art—not that agents replace engine judgment.
Star the repo, file issues with repro steps, and treat December 4 HN threads as feedback, not spec. Upvote maintainers who publish tests, not only demos.
Related reading
- llm.asm pure assembly inference
- Cell-llm on PS3 bare metal
- Scarlet AI video editor agent repo
- Skill Distill session-to-model tool
- Datadog Ephyra agent testing
- GTA Foxhound Claude Code org limits
Maintainer note
Jonathan Field credits Claude in Claude Code in the README; explainx.ai does not claim independent 6502 authorship tests beyond what tools/regress.sh documents upstream.
Repository details follow needlestack/lest-c64 on GitHub as of December 4, 2026. Emulator and hardware behavior can differ; verify on your target machine before demoing.
