雪迹游戏画面:晴天逆光下滑雪者转弯扬起雪雾,远处是云海

零 3D 基础,3 天做出 1.5 MB 零素材 3D 滑雪游戏:代码我不写,我只设计循环

我是学设计的,后来转行写代码,没做过游戏,3D 基本是零基础。11 月 11 日我开始做一款网页版滑雪游戏,3 天后就长上面这样了:整个游戏就一个 1.5 MB 的网页,一张图片、一个模型、一段音频都没用,雪山、树、云海、风声、配乐和人,全是代码在你设备上实时算出来的。后面很多轮迭代,都是我睡着后让 agent 自己跑完的。下面是我的具体做法,用到的 prompt 也都贴在后面了。

先玩再看:huisky.xyz/cold-smoke/play(电脑或手机横屏;线上是双板和旧版单板,新单板见第 7 节)。源码:github.com/huiskylabs/cold-smoke

整个游戏 1.5 MB · 3 天出 demo · 30 个版本 · 一晚自跑 13 轮(单板开发版)

第 1 到第 11 轮的游戏画面
第一天 11 轮里挑了 6 轮,每轮各取 agent 对比图里的第一张:第 1 轮,山像刷了白漆的塑料;第 3 轮有了云海,雪雾还像一堵棉花墙;第 5 轮多了树和远处的城;第 7 轮进了树林;第 9 轮光影和天空都像样了;第 11 轮已经接近现在的样子。

起点:一条推文

11 月 9 日,Anthropic 的 Felix Rieseberg 发了一条推文:x.com/felixrieseberg/status/2119925633564463609。他只用一条 prompt,让 Claude Fable 5.2 自己跑了 8 小时左右,做出了一个叫 Saltline 的 3D 射击游戏:整个网页 1.4 MB 左右,模型、贴图、声音全是代码算出来的,按 API 算大概花了 550 美元。

我想:一条 prompt 跑 8 小时都能做成这样,要是人带着 agent 连续磨几天,能做到什么程度?我五年没碰过单板了,很想念在雪山里只管往下滑、进入心流的那种感觉。于是 11 月 11 日我就动手做了这个项目。

工具用的是 Claude Code,前期主力是 Claude Fable 5.2,后期换成了 Claude Opus 5.5。至于开销,他那边按 API 算大概 550 美元,我没走 API,用的是 Ultra 订阅里一周的 Fable 5.2 额度,外加 3 次额度重置。

为什么 1.5 MB 装得下

看到 1.5 MB,你多半会先纳闷:怎么装得下?普通游戏是把做好的东西全存下来——地形图、模型、贴图、录音——所以动不动就几十 GB,我这款游戏(叫《雪迹》)画面对标的那款滑雪大作就要 25 GB。《雪迹》反着来:只存方法,不存结果。

存结果和存方法的对比
按面积等比画的:右边圈出来的那个小点就是 1.5 MB,只有左边 25 GB 方块的一万六千分之一大。

山:先造一种「听话的随机数」——同一个位置,永远算出同一个值。把这些点平滑地连起来,就是一条起伏的线,叫噪声。再往上叠几层更密、更小的起伏,细节就自己长出来了。把噪声对折再翻过来,折痕就成了尖尖的山脊。

随机高度变成山脊的四步(山的侧面)
把山剖开看横截面:从随机高度到山脊分四步,一步叠着一步。游戏里整片地面都这么算,算出来就是下面这几座山。

整座山就是这一套公式加一个数字。这个数字叫种子,换一个种子就是另一座山。

四个种子生成的四座山
同一套代码,只换「种子」这一个数,就能生成四座完全不同的山。

树:一棵树都不是手动摆上去的。把地面切成 4.5 米见方的格子,每格按种子「掷一次骰子」,同一格永远掷出同一个点数,所以一棵树都不用存。长不长树全看规则:离雪道越远越密,过了林线就不长,雪道中间永远留出通道。连雪道本身也是按规则算出来的。

每格掷骰子决定有没有树
俯视示意:三角形是长了树的格子,灰点是没长树的(骰子没掷中,或者过了林线)。

光:屏幕上每个像素的颜色都是现场算出来的:看它朝不朝太阳,落没落在山的阴影里,中间隔着多少雾。光影没有提前存下来,所以挪一下太阳位置,同一个地方就能变成清晨或深夜。

同一个地点六个时刻
同一个地点、一天里的六个时刻,变的只是太阳位置(天黑后头灯会自动打开),每个像素都会按朝向、阴影和雾气重新算一遍。

声音:一秒钟的录音都没用。让一个数值来回振动就能发出声音,磨掉刺耳的部分,再定好它怎么响起、怎么淡出。风声其实就是拿一段杂音,把尖锐的高音磨掉变出来的。配乐一共五层,滑得越快,叠进来的层数越多。

声音怎么用代码合成
一个音是这样算出来的:① 振动 → ② 磨圆波形(浅色是磨之前)→ ③ 套上「由响到弱」的音量变化曲线。④ 是另一种声音的合成:风声。
五层配乐随速度叠加
五层配乐随速度叠加,先后顺序只是示意。

上面有两张实机画面来自我之前做的科普视频,是在真显卡上录的;其余几张都是示意图。

先讲这些,是因为它和后面要聊的循环直接相关:游戏里的一切都是代码,没有任何素材要等人手工做。agent 改一轮无非就是改几行公式,换个种子就能在一座新山上再验一遍,截图、测数据、前后对比全都能自己跑。要是山、树、动作都是提前做好的成品素材,每改一轮都得等人返工,agent 根本不可能一晚上自己跑十几轮。

背后的原理,我之前在小红书发过一条科普视频《纯代码,凭什么逼真?》,讲得更细。这篇只聊我怎么带 agent 干活。

1. 我的分工和这套循环

我自己只管四件事,这四件交不出去:定结果(不是「做个滑雪游戏」,而是具体到「晴天逆光急转弯,扬起一团雪雾,看起来像真的」);给标准(真实照片、视频,后来还有真人滑单板的视频);自己玩、挑毛病;立规矩(agent 每犯一类错,我就加一条规矩,以后所有 agent 都得照着办)。剩下的活全交给 agent:查资料、写代码、跑数据、跑测试、截图、互相挑错。整个游戏的代码都是它们写的。我真正看的,其实就三样:对比图、几个数字,以及能直接上手玩的版本。

这其实是我做设计时的老习惯:先摆参考图,让对方出两三个方案放一块儿挑,靠眼睛判断,而不是自己一笔一笔画。

先说清楚两个词,后面会一直用:

  • 尺子:一套能自动跑完、直接吐出一个数字的检查。比如「人物动作每分钟抖几次」「雪板插进雪里的画面占多少」。有了尺子,agent 才知道这轮是变好了还是改坏了。
  • 方案开关:同一个效果做出 a、b、c 几种做法,全塞进游戏里,我玩的时候随时切着比。

整个项目就是在跑这个循环:

agent 循环示意图
橙框是我管的两件事,灰底是没人盯着时,agent 自己跑的部分。

2. 前 3 天:从概念到 demo

我一开始没让它「做个滑雪游戏」,只让它先出三个画面。我一个人精力有限,先把这三个画面做到能看,别的以后再说。第一条 prompt 大概是这样(改成了通用写法,下同):

做一个在浏览器里跑的 3D 滑雪游戏。
所有东西都用代码生成,不用任何图片、模型、音频文件。

先只做三个画面:
1. 晴天逆光,大力转弯扬起一团雪雾
2. (换成你想要的画面)
3. (换成你想要的画面)

每一轮改完都截张图,把游戏画面和同类场景的真实照片拼成一张并排对比图发给我。
写清楚这一轮改了什么、你觉得还差在哪。我只告诉你哪里不像。

第一天跑了 11 轮,3 天一共 30 个版本。

第 11 轮对比图:游戏画面和两张真实参照照片
第 11 轮 agent 交上来的对比图(裁掉了左边一截)。左边是游戏原画面,没修过图;右边两张「真实参考」是它自己找来对照的照片。每一轮都这么交。

早期 agent 一遇到拿不准「要哪种效果」的地方,就会停下来问我;我人不在,进度就卡住了。所以第二条关键的 prompt 是:

以后遇到要我决定的外观、手感问题,别停下来问我。
在游戏里加个方案菜单,把 2-3 种做法做成 a/b/c 放进去。
默认用你推荐的,旧的保留,我玩的时候自己切。
每个方案附一行说明:具体是什么效果、你为什么推荐它。

这一招顺手解决了三个问题:它不用等我;我是靠玩来比,不是靠读文字描述瞎猜;新方案出了问题,随时切回去就行。现在游戏里有 90 多个这样的方案开关(其中一部分,玩家也能直接在游戏的「场景」菜单里切)。

第一天晚上,我头一回让它通宵跑:

我去睡了,明早 8 点回来验收。你继续做,别停:
- 要我决定的,按上面的规矩做成几个方案。
早上给我三样东西:一个能直接玩的版本、一份昨晚的改动清单,以及每个备选方案的对比截图。
第 3 天时游戏里的六个画面
第 3 天(11 月 14 日):日落、第一人称、极光夜、暴风雪、云海、树林边的正面镜头。全部是代码实时算出来的,没有素材文件。

3 天后,场景、光影和基本玩法就已经接近现在的样子了。就是人物动作还很假,后面的时间基本都花在了这上面。

3. 怎么搭起来的

先说只用 Claude Code 就能照搬的部分:

  • 把规矩写进 CLAUDE.md。每条规矩都记在里面,每次新开对话一开始就会读到,不用我一遍遍重复。(我项目里实际是一组共享的记忆文件,作用一样。)
  • 每轮一个 commit。每一轮都单独做一次 git commit,「退回」就是回滚到上一轮的 commit。
  • 用子 agent 做评审。在 Claude Code 里直接说「开一个子 agent 来评审」就行。这招也不是百分百客观,毕竟给它看什么材料,还是写代码的那个 agent 挑的;但它没看过源码,也没听过前面那些解释,看出哪不对就直接挑刺。
  • 能连着跑几个小时。云端的 Claude Code 接了一个任务就能一直往下跑;上下文满了会自动压缩总结接着干。每一轮的结果都存在 git commit 和记忆文件里,压缩后也不丢。

下面是我自己额外搭的环境,不照搬也行:

  • agent 跑在云端。我用的是 Claude Code 的云端版(claude.ai/code)。改代码全在隔离容器里,碰不到我的电脑和线上网站;权限开的是自动模式(auto mode),只要我没发话让它合并,什么都不会上线。
  • 给它一双眼睛。不过有一件事云端干不了——出图。云端没有显卡,截一张图得等半分钟到一分钟,渲染出来还跟真机不一样,早期很多改动它自己根本没「看」过一眼就交上来了。现在云端 agent 会用 Claude Code 的 Remote Control(远程控制)连上我本地的 Mac,只负责截图、录视频、测速度这几件事,用真显卡在后台跑完,再把结果传回去。
  • 一个主控协调 + 一件事开一个对话。我平时只跟一个 Claude 聊(用的是 Claude「项目」功能里负责统筹的那个)。我交代一件事,它就单开一个 Claude Code 对话去做,做完把改动交上来,我看过再合并。没有这个功能也能这么搭:开一个主对话专门拆任务,每件活儿单开一个对话、拉一条新分支,做完提 PR。

评审 agent 的 prompt:

你现在是评审,不看代码,只看下面的对比视频、截图和量化数字。按这份清单逐项打 1-10 分:
1. 硬伤:雪板有没有悬空离地或插进雪里,关节有没有弯到真人不可能做出来的角度
2. 顺不顺:有没有突然的抖动、跳帧
3. 像不像:跟参考视频比,身体倾角、膝盖、上身和手的位置差在哪
4. 好不好看:放不放松、有没有僵硬或像木偶的地方
每项都写清楚:哪里不像参考视频、出现在第几秒、建议往哪个方向改。
最后列出最该先改的三件事。别客气,直接说哪里差。

尺子都是 agent 自己写的,我只负责说要量什么。比如「动作抖不抖」:固定跑一段操作回放,记下每一帧里每个关节的位置,数加速度突然跳变了多少次。让它造尺子的 prompt 是这样:

在修【动作抖】之前,先写一个自动检查,把它量化成一个数字:
用固定的回放跑一遍,输出一个数。
先在当前版本上跑一次存作基准,再多跑几次,看看正常波动有多大。
之后每一轮都要报这个数,只要比上一轮退步、且超出正常波动范围,就不准交。

项目里用过的几把尺子:

  • 动作抖不抖:每分钟明显抖动几次(88 → 9.4 次)
  • 雪板贴不贴雪:雪板插进雪里超过 1 厘米的画面占多少(见第 6 节)
  • 远处树林闪不闪:同一个画面重复渲染很多遍,看有多少像素在变(0.3% → 0)
  • 开得快不快:真机上从点开到能玩要等几秒(第二次打开,4.1 → 0.65 秒)
  • 有没有改坏别的地方:固定同一座山,改前改后逐像素对比
几把尺子改前改后的数字
上面几把尺子在修复前后的对比数字。每个问题都是先量化成一个数,才动手去修的。

4. 让它一整晚自己迭代

后期要抠的细节越来越细,我越来越习惯直接放手,让它没人盯着也连着干。下面是我现在用的通宵 prompt,每一句都是被坑过之后加上的:

目标:让[单板动作]看起来和我附上的两段参考视频一样。

1. 先把游戏和参考视频的差距量出来,按差距大小排个清单,从差得最多的改起。
2. 每一轮:
   - 把所有尺子跑一遍,只要有任何一项退步超出正常波动,这一轮直接作废,回滚到上一个 commit;
   - 在真显卡上录好改前改后的对比视频;
   - 开一个没看过代码的子 agent,只看对比视频和数字来打分,下一轮优先改它指出的问题。
3. 至少迭代 5 轮。中间的取舍你自己拿主意,别问我。
4. 连续 3 轮看不出进步,停下来找原因、换方法,别继续调参数。
5. 明早 8 点验收,给我:能直接玩的版本、改前改后对比视频、还没解决的问题清单。

每条都不是白写的:不划终点线,它不知道改到哪算完;不写「至少 5 轮」,它改一轮觉得差不多就收工了;不让别的 agent 审,它看不出自己代码的毛病;不写「看不出进步就换方法」,它能一整晚在同一个参数上来回调。

5. 它老犯的几种错,以及换来的规矩

「更真实了」,但看不出来

有一次 agent 做了一整套「物理上更正确」的雪面效果,引用了好几篇论文,还做了改前改后的对比视频。我看完愣是没看出区别。最后只留下三处肉眼看得出来的,其余全砍了。

正确但看不出来的改动,等于没做。

我说不清哪里不对时,它就瞎猜

我经常只能说「像纸片」「不对劲」。让它直接猜怎么改,基本都改不对。后来固定用这条:

这个画面看起来[像纸片]。先别改代码。
去找 5-10 张真实照片或视频截图,讲清楚真实世界里它为什么长那样(从光影、颜色、形状、运动几个方面拆解)。
然后再改,每一轮都把游戏截图和真实照片并排发我,直到一眼看不出明显破绽。
别光靠理论推。
雪杖改前、真人照片、改后的对比
按这条 prompt 交上来的一张对比图:我发了一张截图(左上),说起步时雪杖张成了八字。它先找来真人照片(蓝字两张,Openverse 公开授权),改完后从背后、正面、侧面截了 5 张(橙字)拼在一起交上来。

只打补丁,不找原因

早期它总在出问题的地方硬加限制,把表面的毛病压下去,过几天别处又冒出来了(第 6 节那上百条「不许这样」的规矩就是这么攒出来的)。后来我定了条规矩:先找原因,再动手。最能说明问题的,是连我自己都判断错的那几次:

  • 坡太缓了:我让它把坡改陡。它先去量了一遍,发现坡其实并不缓,是跟拍镜头跟着坡面一起倾斜,把坡度感吃掉了。最后改的是镜头,不是坡。要是真照我说的直接改坡,游戏只会更难玩,毛病照样在。
  • 蘑菇道(连片的雪包):我说滑过一片雪包几乎不减速。它没有直接硬加阻力,而是查了标准蘑菇道的尺寸,估算每个包会吃掉多少能量,按这个去改物理计算。直线冲过蘑菇道的速度,从每小时 60-90 公里降到了 35-50 公里。
同一段陡坡:原来的镜头和现在的镜头
同一段陡坡、同一时刻、同样的速度,地形一点没改,只换了镜头。左边用原来的镜头看出去,坡显得很缓;右边把机位抬高、镜头往下俯拍,前面明显是个扎下去的大陡坡。
我觉得【坡太缓了】。先别动手改,先去量:实际是多少、跟真实情况比怎样、问题到底出在哪。
找到原因后,顺便查查别的地方有没有同根源的毛病,一并修掉。

从文字里推出来的错「常识」

换刃(从一侧刃切到另一侧刃)时,是肩膀先动还是身体先动?它一开始按「肩膀带动身体」来做。我让它去查公开研究和滑雪教练的视频核对,结论正好相反:是身体整体先倾倒过去,肩膀反而保持得更平,只有头和眼睛提前看向下一个弯。

顺手改了我没让改的

让它改 A,它顺手把我已经认可的 B 也给「优化」了。之后我立了规矩:只准动我要求改的地方。新玩法则要先出一份带流程图的方案,我看过再写代码——比如做单板空中动作时,它先交了一张包含 15 个抓板、转体和翻转的动作表。

单板空中动作
动作表定下来之后做出来的一个空中动作(开发版)。

6. 双板动作:试了四种办法,才彻底换了思路

  1. 给上半身、头和手加上「弹簧」效果,让动作带点惯性晃动 → 我说「越做越差,做成一个弹簧了」
  2. 把一个弯分四段,每段摆一个标准姿势 → 像提线木偶
  3. 从公开的真人滑雪视频里提取动作(只提取动作数据,不用画面),让角色照着做 → 有进步,但单个机位看不准前后深度
  4. 单独搭一个调试用的「动作实验室」页面,先在里面把动作调对,再搬回游戏 → 效果明显好了,明显抖动从每分钟 88 次降到了 9.4 次
专业滑手公开视频逐帧,对比游戏里的转弯
第 3 种做法用的对照方式:上排是专业滑手 Reilly McGlashan 公开视频里的连续转弯,每 0.5 秒一帧;下排是游戏里改完后的转弯,每 0.3 秒一帧。留意看,游戏里人物身体倾斜得比专业滑手小得多:光照着视频调,差距还是很大,所以第 3 种办法行不通。

还是不够真。这次我没让它再改,而是发了这条:

先停,别再改代码。
把针对这个问题从头到尾试过的办法全列出来:每次怎么做的、结果怎么样、为什么失败。
然后从最基本的道理重新想:真人做这个动作时,到底是什么决定了身体姿势?我们现在的做法和真实情况根本上差在哪?
给我一份复盘:根本原因、新方案、第一步怎么验证。我看过之后再写代码。

它复盘出来的结论是:真人的动作,是在物理规律、雪面地形和滑行意图共同作用下「逼」出来的;而我们之前的做法,是硬摆出一个个姿势,再用上百条「不许这样」的规则打补丁。于是彻底换了思路:不再摆姿势,改成从雪板往上一层层算出来——先保证雪板贴在雪上,再让重心落在该落的地方,然后才是腿、上身、头和手。

按新思路做第一步排查,就量出了一个藏了很久的问题:在起伏的雪面上,14% 的画面里雪板插进雪里超过 1 厘米,最深达 37 厘米。按原来的做法,每个部位单独看都没毛病,所以一直没人发现。新思路的第一步就是专治这个问题:在起伏最大的 3 个测试场景里,这类画面原本更糟,占到 26.6%,修完直接降到了 0.5%。

雪板插进雪里:改前改后
同一时刻、同一机位、同样的速度。改前:雪板后半截埋进坡里(这一帧量出来最低点在雪面下 25.8 厘米)。改后:雪板不再插进雪里,顺着雪包顶面压过去(板尾自然悬空)。新做法在蘑菇道上偶尔还是会插进去一点,但已经少多了。

7. 单板:这套循环跑得最完整的一次

这一节的单板还在开发版,线上是旧版。

开发版新单板逆光刻滑
开发版里的新单板:逆光下刻滑,扬起一道雪雾。

单板第 4 天就有了初版,但动作一直很假。我本以为之前双板的成果能直接拿来用,让 agent 先测了一遍,结果根本没用上:单板走的是另一套路子,双板的改进一点都没吃到。只好从头再来。

拿真人视频当标准:我找了几段真人滑单板的视频交给它,主力是同一位滑手的两段连续转弯,再补几段公开视频把各种滑法覆盖全。它找了个能从视频里估算 3D 人体姿态的模型,把每个弯的动作数据全量出来,做成一张表:前刃、后刃,搓雪、刻滑,各自对应的身体倾角、膝盖和手臂位置。因为单机位量不准前后深度,这些数只当范围用,不当姿势照抄。既然知道哪些地方容易量偏,每次改动就必须同时过两把不同的尺子才算数。最终规矩是:游戏里每个弯都必须落在这位滑手的动作范围内,全部通过才准交给我试玩。

从真人单板视频估出 3D 身体姿势
「从视频里量姿势」实际长这样:四段公开单板视频里的后刃刻滑,从浅到深,每一帧上都叠着模型估出来的蓝色 3D 人体,上方是量出来的身体倾角、膝盖和髋部角度。这些数只当范围用。

第一晚:它先列出差距清单:手臂摆动太少(视频里手部移动速度是每秒 1.9 到 2.7 米,游戏里只有 1.0 到 1.4 米),刻滑倾角不够(游戏 55 度,视频 58 到 72 度)。接着那一晚它连跑了 7 轮(第 9 到第 15 轮),早上把第 15 轮交给了我。

上:游戏里的单板;下:真人滑单板的视频
上:游戏里的单板(开发版第 15 轮)。下:真人滑单板视频,游戏里的动作就是拿它当标准量的。两张不是同一个弯的同一瞬间,重点看手臂:视频里前手平伸出去找平衡,游戏里两只手却垂在身前,这正是后面几轮要补的差距。

数字过关了,我还是看不出变化:接下来白天的几轮,数字一直在变好,但我玩完说「没有看到提高」。之后胳膊又连着改了 7 轮,7 轮全没过:要么看不出进步,要么带出新的抖动,全部作废,回滚到改胳膊之前的版本。它停下来排查,终于找到原因:尺子只量了手的活动范围,范围早就对了,却没量手是怎么跟着身体动的。游戏里的手臂和身体倾角死死「锁」在了一起,每个弯都停在同一个位置;而视频里滑手的手臂动作跟倾角几乎没关系。它给了我几个方案,我选了把整套手臂动作推倒重做。

尺子过关不等于做好了。最终验收,永远看在屏幕上能不能一眼看出来。

第二晚:它自己跑了 13 轮,和真人视频的总差距从 2.22 降到了 0.905。我把那位滑手自己两个弯之间的正常差别定作 1,低于 1 就说明游戏里的动作已经落进了真人自己的波动范围里。

单板腿部动作改前改后
腿部动作按真人数据校准前后的同一时刻对比(左改前,右改后):前刃压到最深时,改后膝盖沉得更低、更贴近雪面;后刃时,改后不再把膝盖蜷到胸口,胯打开了,腿伸得也更自然。

又一次,问题没出在我以为的地方:后来我又拿育碧《极限巅峰》(Steep)里的单板录像当参考,做了一个可选的滑行风格(录像和公开视频都只用来提取动作数据,游戏里没用任何一帧画面或素材)。玩的时候我说:「左右拐的时候身体应该稳,现在老跟着腿左右摆。」它没急着改身体,先去量了一遍:身体其实没怎么摆,问题出在镜头盯着雪板走——雪板一左一右切,画面里的头就跟着甩出 34 到 55 厘米。把镜头改成跟着胯走之后,头在画面里就只晃 11 到 13 厘米了。

单板镜头:对准板 vs 跟着胯
同一次换刃,每 0.15 秒一帧,5 帧叠在一起。左边镜头盯着板走,人在画面里左右甩;右边镜头跟着胯走,人基本稳在原地。(开发分支)

Steep 这套风格本身也用同一套办法来量:把一个弯里 8 个关节角度的变化和 Steep 录像逐段对比,总差距从 1.26 降到了 0.99(低于 1,就说明已经落进 Steep 自己的正常波动范围里了)。

前后膝弯:Steep、改前、改后
agent 尺子报告里的两张小图:前膝和后膝在一个弯里的弯曲角度(换刃 → 前刃弯中 → 换刃 → 后刃弯中)。黑线是 Steep 录像,红虚线是改前(原来的自由式风格),蓝线是改后。膝盖曲线明显贴近了 Steep;手臂的几个角度(图里没放)当时还差得远,后来又接着改了。

8. 用四句话总结

  1. 我只说要看到什么,不说怎么做;做没做完我说了算。
  2. 要我拍板的事,不让它停下来问:做两三个方案放进游戏,我边玩边挑。
  3. 每类问题配一把「尺子」让它自己量,再让一个没写代码的 agent 来审。
  4. 同一件事连着错几次,就叫停让它从头复盘,别再接着修修补补。

9. 拿来就能用的规则

下面是我项目里真正在用的规则,稍微整理了一下,可以直接贴进你的 CLAUDE.md:

## 结果
- 我只给目标和参考,不规定做法;做法你自己想。
- 外观和手感上的选择别问我:做 2-3 个方案放进产品里,默认用你推荐的,我边用边挑。
- 新玩法、新系统:先出带流程图的方案,我看过再写代码。
- 只改我要求的地方。如果必须动我已经认可的部分,别直接覆盖,做成一个新方案,默认还是保留原来的。

## 参考
- 只要我说「看着不对」,先去找真实照片或视频并排对比,每轮都发我看,直到一眼挑不出明显破绽,别光靠理论硬推。
- 我说的原因不一定对:动手之前先量,确认问题在哪。
- 靠文字推出来的所谓「常识」,必须拿真实数据或视频核对过才算数。

## 验收
- 每类问题配一把能自动跑的尺子,只要比上一轮退步超出正常波动,就不准交。
- 尺子过关不算完:改动必须在 A/B 对比里肉眼可见。
- 截图、视频、速度测试用真显卡跑。
- 修一类,不修一处:找到根因后,顺手排查其他地方有没有同样的问题,一并修掉。
- 同一件事错了几次,停下来从头复盘,不要再打补丁。

## 整晚自己迭代
- 先把和参考的差距按轻重排个序,从差得最多的改起。
- 至少迭代 N 轮;每轮跑完所有检查,有一项变差(超出正常波动)就作废。
- 每轮结束找一个没写代码的 agent 独立打分,按它的意见改。
- 中途别来问我,中间的取舍自己拿主意;需要我拍板的做成几个备选方案。
- 连续几轮看不出进步:先回滚,找原因,换做法。
- 早上交付:能直接玩的版本、改前改后的对比材料、还没解决的问题清单。

真正的瓶颈

几乎从第一天起,写代码本身就不是难事。难的是,agent 自己不知道什么时候做错了。

上面每一条规矩,目的都一样:让它不用等我,自己就能发现哪错了——靠真实照片、靠尺子、靠另一个 agent 挑刺,也靠看得见的对比。

可以直接上手玩:huisky.xyz/cold-smoke/play(线上版有双板、整座雪山和天气切换;第 7 节的新单板还在开发版)。源码见 github.com/huiskylabs/cold-smoke

Cold Smoke gameplay: a skier carving against the sun, a cloud of powder, a sea of clouds below

I built a 1.5 MB, zero-asset 3D ski game in 3 days with no game dev experience: I don't write the code, I design the loop

I trained as a designer before switching to programming. I'd never made a game, and I was starting from scratch on 3D. On November 11, I started building a ski game that runs in the browser. Three days later, it looked like the screenshot above. The whole game is a 1.5 MB web page with not a single image, model, or sound file. The mountains, trees, sea of clouds, wind, music, and skier are all generated by code right on your device. Most of the later iterations ran while I slept. Every prompt I used is below.

Play it first: huisky.xyz/cold-smoke/play (desktop, or phone in landscape; the live version has skiing and the old snowboard, and the new one is in section 7). Source: github.com/huiskylabs/cold-smoke

1.5 MB total · 3 days to a demo · 30 builds · 13 unattended rounds in one night (snowboard dev build)

Game screenshots from rounds 1 to 11
Six of the 11 rounds from day one, showing the first frame from each round's comparison image. Round 1: the mountain looks like white plastic. Round 3: a sea of clouds, but the spray is still a wall of cotton. Round 5: trees and the distant city. Round 7: into the trees. Round 9: the light and sky come together. Round 11: close to how it looks now.

It started with a tweet

On November 9, Felix Rieseberg from Anthropic posted this: x.com/felixrieseberg/status/2119925633564463609. From a single prompt, Claude Fable 5.2 ran on its own for about 8 hours and built Saltline, a 3D shooter. The whole thing is a roughly 1.4 MB web page with every model, texture, and sound generated in code, costing about $550 at API rates.

I thought: if one prompt and 8 hours can produce that, what could one person build by steering agents for several days? I hadn't been snowboarding in five years and missed that feeling of just riding down a mountain. So on November 11 I started this project.

I used Claude Code, running mostly Claude Fable 5.2 early on and Claude Opus 5.5 later. His run cost about $550 at API rates, while mine wasn't billed through the API at all. It took one week of Fable 5.2 quota on an Ultra subscription, plus 3 quota resets.

Why it fits in 1.5 MB

First, to answer the question everyone asks when they see "1.5 MB." Most games store finished assets: terrain maps, models, textures, and audio recordings. That's why they take up tens of gigabytes. The big ski game Cold Smoke is aiming to match visually takes up 25 GB. Cold Smoke does the opposite: it stores the method, not the result.

Storing the result vs storing the method
Drawn to scale by area: the circled dot on the right is 1.5 MB, one sixteen-thousandth of the 25 GB square on the left.

The mountain. Start with "repeatable" randomness: the same spot always gives you the same number. Connect those points smoothly and you get a rolling curve called noise. Stack a few finer, smaller layers on top and detail builds up on its own. Fold the noise over and the creases become sharp ridges.

Four steps from random heights to ridges (a slice through the mountain)
A slice through the mountain: four steps from random heights to ridges, each building on the last. The game runs this across the whole terrain, and the result is the mountains below.

The whole mountain is this set of formulas plus one number. That number is the seed. Change the seed and you get a different mountain.

Four mountains from four seeds
Same code, just a different seed each time: four different mountains.

Trees. Nobody placed a single tree. The terrain is divided into 4.5-meter cells, and each cell "rolls a die" using the seed. A cell always rolls the same number, so none of the trees have to be stored. Rules decide where trees grow: denser off the run, none above the tree line, and a clear path down the middle. The runs are generated by rules too.

Each cell rolls a die for a tree
Top-down sketch: triangles are cells that got a tree; gray dots are cells that didn't (either the roll missed or the cell is above the tree line).

Lighting. Every pixel on screen calculates its own color on the fly: whether it faces the sun, whether a mountain casts a shadow on it, and how much fog sits in front of it. Nothing about the lighting is stored. Move the sun, and the same spot shifts from dawn to night.

The same spot at six times of day
The same spot at six different times of day. Only the sun's position changes (and the headlamp turns on after dark), while each pixel recalculates its sun angle, shadows, and fog.

Sound. Not a single second of audio is recorded. Make a number swing back and forth and you get a tone; round off the harsh edges, then shape how it starts and fades out. The wind is just noise with the high frequencies filtered out. The music has five layers, and the faster you ride, the more of them come in.

How sound is synthesized in code
How one note is generated: ① swing → ② round it off (the faint line is the raw wave before rounding) → ③ give it a start and a fade. ④ is a separate sound: the wind.
Five music layers stacking up with speed
A sketch of the five layers stacking up as you pick up speed; the order shown here is just an example.

The two in-game screenshots above come from an earlier explainer video (captured on a real GPU); the rest are diagrams.

This matters for everything that comes next. Because the whole game is code, nothing waits around for a human to make assets. For the agent, a single round just means tweaking a few formulas. It can swap the seed to test on a new mountain, take screenshots, run measurements, and compare before and after completely on its own. If the mountain, trees, and motion were hand-made assets, every round would stall waiting on a person to redo them, and the agent could never get through a dozen rounds in one night.

I walk through how all of this works in more detail in an earlier explainer video (in Chinese, on Xiaohongshu). This post is about how I steer the agents.

1. My role and the loop

I only do four things myself, and none of them can be delegated: define the outcome (not "make a ski game," but "a hard turn against the sun throwing up a cloud of snow that actually looks real"), set the standard (real photos and video, and later real snowboarding footage), play and complain, and write the rules (every new class of mistake becomes a rule every agent has to follow). The agents handled everything else: researching, coding, measuring, testing, taking screenshots, and reviewing each other's work. Agents wrote every line of the game's code. All I actually look at are comparison images, a few numbers, and playable builds.

It's an old habit from my design days: pin up references, ask for two or three options side by side, judge them by eye, and don't draw every line yourself.

Two terms I'll use throughout:

  • Ruler: an automated check that outputs a number, like "visible jolts per minute in the skier's motion" or "percentage of frames where the skis sink into the snow." Rulers are how the agent knows whether a round made things better or worse.
  • Variant: two or three ways of doing the same thing (a, b, c), all built into the game so I can switch between them while playing.

The whole project runs on this loop:

Diagram of the agent loop
Orange: the steps I own. Gray: what runs unattended while I sleep.

2. The first 3 days: concept to demo

I didn't ask for "a ski game." I asked for three shots. I only have so much attention to spare, so I wanted to get three shots looking right first and leave the rest for later. Here's roughly what my first prompt looked like (cleaned up so you can reuse it, like all the prompts here):

Build a 3D ski game that runs in the browser. Generate
everything in code: no image, model or audio files.

Start with just three shots:
1. Sunny, backlit, a hard carve throwing up a cloud of snow
2. (your shot here)
3. (your shot here)

After each round, take screenshots and place each one side by
side with real photos of a similar scene in a single
comparison image. Tell me
what you changed and where you think it still falls short.
I'll only tell you what doesn't look real.

Day one took 11 rounds; by day three, we had 30 builds.

Round 11 comparison: the game next to two real reference photos
The round 11 comparison image exactly as the agent delivered it (left edge cropped). Left: an unedited shot from the game. Right: two real reference photos the agent found on its own to compare against. Every round came back like this.

Early on, every "which one do you want?" stalled the agent until I replied. Whenever I stepped away, the whole project sat idle. That led to my second key prompt:

From now on, for any look-and-feel choice that needs my call,
don't stop and ask. Add a variant menu to the game with 2-3
options (a/b/c). Default to your recommendation, keep the old
one, and I'll toggle between them while playing. Give me one
line per variant: what it is and why it's worth picking.

That solved three problems: the agent never waits on me, I compare options by playing instead of reading descriptions, and if something new breaks, I can just switch back. The game now has over 90 variant toggles (players can try some of them in the game's Scene menu).

On night one, I let it run until morning for the first time:

I'm going to sleep. I'll check at 8 AM. Keep going and don't stop. Same rule as before: turn anything
that needs my call into variants. In the morning, have ready a
build I can play right away, a list of what changed overnight,
and comparison screenshots for each variant choice I need to
make.
Six shots from the day-3 build
Day 3 (November 14): sunset, first-person view, aurora at night, blizzard, sea of clouds, and a front view by the trees. All generated in real time by code, with no asset files.

After 3 days, the scenery, lighting, and core gameplay were pretty much what you see now. The skier's movement still looked fake, though, and that's where most of my time went next.

3. How it's wired up

First, the parts you can replicate with standard Claude Code:

  • Rules live in CLAUDE.md. Every rule goes in there, and every new session reads it at startup, so I never have to repeat myself. (In my setup it's a set of shared project memory files; same idea.)
  • One commit per round. Each round gets its own git commit, so rolling back just means reverting to the previous one.
  • The reviewer is a subagent. In Claude Code, you can just say, "Spawn a subagent to review this." It's not completely unbiased, since the coding agent still picks what to show it. Still, the reviewer has never seen the code or the excuses behind it, so it just calls out what looks wrong.
  • It can run for hours. A Claude Code cloud session stays on a single task; when the context fills up, it summarizes automatically and keeps going. Because each round's results live in git commits and memory files, nothing gets lost when that happens.

Next, my own setup (optional):

  • Agents run in the cloud. I use Claude Code cloud sessions (claude.ai/code). Code changes happen in isolated containers that can't touch my machine or the live site. I run Claude Code in auto-permission mode, and nothing goes live until I say "merge."
  • Give it eyes. The one exception is rendering. The cloud machines have no GPUs, so one screenshot took 30 to 60 seconds and didn't match what a real device renders. Early on, plenty of changes went out without the agent ever "seeing" them. Now the cloud agent uses Claude Code's Remote Control to open a background session on my Mac just to capture screenshots, record video, and run performance tests on a real GPU, then send the results back.
  • One coordinator, one session per task. Day to day I talk to just one Claude (Claude projects have a coordinator for this). I give it a task, it spins up a separate Claude Code session, and that session comes back with changes for me to review and merge. You can do the same thing without that feature: keep one main session just for delegating work, and give each task its own session and branch, ending in a PR.

The reviewer prompt:

You're the reviewer. Don't read the code. Look only at the
comparison videos, screenshots and numbers below.
Score each item 1-10:
1. Glaring errors: skis floating off or sinking into the snow,
   joints bending past what a human can do
2. Smoothness: sudden snaps or jumps between frames
3. Likeness: compared to the reference video, where do the
   lean, knees, upper body, and hands differ?
4. Style: relaxed or stiff, anything puppet-like
For each: where it differs from the reference, at what
timestamp, and which way to adjust it.
End with the three things to fix first. Don't be polite.

The agents write the rulers themselves; I only say what to measure. Take "is the motion janky?" To measure it, the agent records a fixed replay, logs every joint's position on each frame, and counts sudden spikes in acceleration. The prompt for building one:

Before fixing [the jittery motion], build an automated check
that boils it down to a single number by running a fixed
replay and outputting the score. Run it on the current build
to set the baseline, then run it a few more times to see how
much noise is normal. Report this number after every round; if
it gets worse than the previous round beyond normal noise,
don't deliver it.

Rulers we used:

  • Is the motion janky? Visible jolts (sudden snaps) per minute (88 → 9.4)
  • Do the skis stay on the snow? Percentage of frames where the skis sink more than 1 cm into the snow (see section 6)
  • Do distant trees flicker? Render the exact same moment repeatedly and count how many pixels change (0.3% → 0)
  • Does it start fast? Seconds until playable on a real phone (4.1 → 0.65 s on a repeat visit)
  • Did a change break something else? Compare the same fixed mountain pixel by pixel, before and after
Before and after numbers for a few rulers
The rulers above, before and after each fix. We turned every problem into a number before touching a fix.

4. Letting it iterate all night

As the remaining work shifted to finer details, I started letting agents run unattended more and more. Here's the overnight prompt I use now:

Goal: make [the snowboard motion] look like the two reference
videos I attached.

1. First measure the gaps between the game and the references
   and list them from biggest to smallest. Start with the
   biggest.
2. Every round:
   - run every ruler; if anything gets worse than the last round
  beyond normal noise, scrap the round and roll back to the
  previous commit;
   - record before/after comparisons on a real GPU;
   - spawn a subagent that hasn't seen the code to score the
  output based only on the comparisons and numbers; fix what
  it flags first.
3. Run at least 5 rounds. Make judgment calls on intermediate
   results yourself; don't ask me.
4. If 3 rounds in a row show no visible progress, stop, find
   the root cause, and change your approach. Don't just keep
   tweaking.
5. I'll check in at 8 AM. Have ready a playable build,
   before/after videos, and a list of open issues.

Every line is there because I got burned without it. Without a finish line, it doesn't know when it's done. Without the "at least 5 rounds" rule, it does one round, calls it good enough, and stops. Without an outside reviewer, it stays blind to the problems in its own work. And without a rule to switch approaches when progress stalls, it'll spend all night turning the same knob.

5. Where it kept going wrong, and the rules I added for each

"More realistic," but I couldn't see it

Once, the agent built an entire "more physically accurate" snow surface, cited several papers, and made a before/after video. My reaction: "I can't see a difference." We kept the three details I could actually see and cut the rest.

If I can't see it, it doesn't count.

Guessing when I can't explain what's wrong

Often all I could say was "looks like paper" or "something's off." Letting it guess a fix from that almost never worked. Now I use this:

This [looks like paper]. Don't touch the code yet. Find 5-10
real photos or video frames and explain why the real thing
looks the way it does (light, color, shape, motion). Then make
the fix, and after every round show me an in-game screenshot
side by side with the real photo until nothing obviously looks
fake.
No guessing from theory.
Ski poles: before, real photos, after
What this prompt produces. I sent a screenshot (top left) noting that the poles splay out when starting a run. The agent pulled real reference photos first (blue labels, openly licensed via Openverse), fixed the posture, and delivered five "after" shots from the back, front, and side (orange) right next to them.

Patching symptoms instead of finding causes

Early on, the agent kept slapping a hard limit right where something broke, hiding the symptom until it popped up somewhere else a few days later (that's where the hundred or so "don't do this" rules in section 6 came from). So I made a rule: find the root cause before touching anything. The clearest cases were the ones where I had the cause wrong myself:

  • "The slope is too flat." I asked it to make the slopes steeper. It measured first and found the slopes weren't flat at all. The chase camera was tilting with the slope and hiding how steep it really was. So it adjusted the camera instead of the terrain. Doing what I asked would have made the game harder without making the slope look any steeper.
  • Moguls. I said riding through a mogul field (a slope covered in bumps) barely slowed you down. Instead of just tacking on a speed penalty, it looked up standard mogul course dimensions, estimated how much energy each bump absorbs, and updated the physics to match. Straight-line speed through the moguls dropped from 60–90 km/h to 35–50 km/h.
Same steep slope: old camera and current camera
Same steep slope, same moment, same speed. The terrain is untouched; only the camera changed. With the old camera (left), the slope looks gentle. The current camera (right) sits higher and looks down, so the slope drops away in front of the skier.
I think [the slope is too flat]. Don't change it yet. First, measure what's actually happening, compare it to the
real thing, and figure out where the problem really comes
from. Once you find the root cause, check everywhere else for
the same issue and fix them all at once.

When text-based "common sense" is wrong

When you switch from one edge to the other, what leads: your shoulders, or your whole body? The agent started with the idea that "the shoulders drive the body." I had it check real research and coaching videos, and it turned out to be the opposite: the whole body tips over first, the shoulders stay relatively level, and only the head and eyes look ahead to the next turn.

Changing things I didn't ask for

I'd ask the agent to change A, and it would "improve" B, which I had already approved. Now the rule is simple: only touch what I asked for. Any new gameplay feature starts as a proposal with flow diagrams that I review before any code gets written. The snowboard air tricks, for example, started as a table of 15 grabs, spins, and flips.

Snowboard air trick
One of the air tricks built after we agreed on that table (dev build).

6. Ski motion: four tries before finding the right approach

  1. Added "springs" to the upper body, head, and hands so they'd sway with inertia → I said: "It's getting worse. He's bouncing like a spring."
  2. Split each turn into four phases with a set pose for each → looked like a puppet on strings
  3. Extracted motion from public videos of real skiers (motion data only, no footage) and copied it → better, but a single camera can't judge depth
  4. Built a standalone test page (a "motion lab") to get the motion right first, then brought it into the game → much better; jolts dropped from 88 per minute to 9.4
Pro skier video frames compared with the game's turns
How we compared results in approach 3. Top: linked turns from a public video of pro skier Reilly McGlashan, one frame every 0.5 s. Bottom: the game's turns after the change, one frame every 0.3 s. Notice how the in-game skier leans far less than the pro. Copying from video alone still left a big gap, which is why approach 3 wasn't enough.

It still didn't look real enough. This time I didn't ask for another fix. I sent this:

Stop. Don't change any more code.
List every attempt at this problem so far: what you did,
what happened, why it failed.
Then reason from first principles: when a real person does
this, what actually determines the body's position? How is
our approach fundamentally different?
Give me a breakdown: root cause, new approach, and how we'll
verify the first step. I'll read it before any code gets
written.

The agent's answer: a real skier doesn't choose a pose. Physics and the snow force the body into it. Our version was just a set of preset poses, patched over with about a hundred "don't do this" rules. So we stopped posing the body and started computing it from the skis up: skis on the snow first, then the center of mass where physics puts it, and then working up through the legs, upper body, head, and hands.

The very first check with the new approach uncovered a problem that had been hiding for a long time: on uneven snow, the skis sank more than 1 cm into the snow in 14% of frames, and up to 37 cm deep. Under the old approach, every part looked fine on its own, so nobody caught it. Step one of the new approach fixed exactly that: in the 3 bumpiest test scenarios (where it was even worse, at 26.6%), that rate dropped to 0.5%.

Skis sinking into the snow: before and after
Same moment, same camera, same speed. Before: the back half of the skis is buried in the slope (25.8 cm below the surface in this frame). After: the skis ride over the top of the bump instead of cutting into the snow (with the tails hanging free). With the new approach, the skis still sink a little now and then on moguls, just far less.

7. Snowboarding: the full loop

This version of snowboarding is still in the dev build; the live site has the old one.

New snowboard carving against the sun (dev build)
The new snowboarder in the dev build: carving against the sun and throwing up a wall of spray.

I had a first version of snowboarding working by day four, but the movement always looked fake. I assumed our ski work would carry over. I had the agent check the numbers first, and it turned out none of it did. Snowboarding ran on a separate code path and got none of the ski improvements, so we started over.

I gave it real riding footage as the standard. Most of it came from two videos of a single rider linking turns, plus a few other public clips to round out the range. The agent used a video-to-3D pose model to measure the rider's body through every turn and built a table covering toeside and heelside, skidded and carved turns, with lean, knee bend, and arm positions for each. A single camera is bad at judging depth, so we treat those numbers as ranges rather than exact poses to copy. Where we knew the estimates were off, a change had to pass two different rulers. The rule was simple: every turn in the game had to fall inside that rider's range, and I only got a playable build once every check passed.

3D body pose estimated from real snowboarding video
What "measuring the body from video" looks like: heelside carves from four public snowboarding clips, from shallow to deep. Each frame shows the model's estimated 3D body in blue, with the measured lean, knee, and hip angles printed on top. We only use these numbers as ranges.

Night one. The agent started with a list of the biggest gaps: the arms barely moved (the real rider's hands moved at about 1.9–2.7 m/s, compared to 1.0–1.4 in the game), and there wasn't enough lean when carving (55 degrees vs. 58–72 in the videos). Then it ran 7 rounds that night (rounds 9 to 15) and handed me round 15 in the morning.

Top: the game's snowboarder. Bottom: a real snowboarding video
Top: the game's snowboarder (dev build, round 15). Bottom: the real riding video we measure the game's motion against (not matched to the exact same point in a turn). Look at the arms: the real rider holds their front arm out for balance, while our snowboarder's hands both hang down in front. That's the gap the later rounds went after.

The numbers passed. I still couldn't see it. Over the next few rounds that day, the numbers kept improving, but when I played it, I said, "I don't see any improvement." Then the agent spent seven more rounds on the arms, and none of them passed: either there was no visible gain, or they introduced new jitter. All seven were scrapped, and it rolled back to before we touched the arms. It stopped to diagnose the problem and found the cause: the ruler measured how far the hands moved, and that range was already right. What it didn't measure was how the hands moved relative to the body. In the game, the rider's hands were locked to body lean, ending up in the same spot every turn, whereas in the real videos hand movement had almost nothing to do with lean. It gave me a few options, and I told it to rebuild the whole arm layer.

Passing the ruler doesn't mean it's done. What shows up on screen always gets the final say.

Night two. It ran 13 rounds on its own, bringing the overall gap compared to the real videos down from 2.22 to 0.905. On this scale, 1 equals the natural difference between two of the real rider's own turns, so anything under 1 means the game sits within that rider's normal variation.

Snowboard legs before and after
Leg posture at the same points in the turn, before (left) and after (right) calibrating to the ranges measured from real video. At the deepest part of a toeside turn, the rider now drops lower, closer to the snow; on heelside, the knees no longer tuck up toward the chest, while the hips open up and the legs extend.

Again, the problem wasn't where I thought. Later, I added snowboarding footage from Ubisoft's Steep as a second reference for a selectable riding style (like the public videos, it's only used to measure motion data; no frames or assets from it are in the game). While playing I said: "The body should be stable when turning; right now it swings with the legs." The agent didn't touch the body. It measured first and found the body barely moved. The camera was aimed at the board, so as the board swung, the head moved 34 to 55 cm across the screen. With the camera tracking the hips instead, head movement dropped to 11 to 13 cm.

Snowboard camera: on the board vs on the hips
The same edge change, five frames overlaid at 0.15 s intervals. Left: with the camera locked to the board, the rider swings across the screen. Right: with the camera tracking the hips, the rider stays in nearly the same spot. (Dev branch.)

We measured the Steep style the same way: 8 joint angles through a turn, compared phase by phase against the Steep footage. The overall gap dropped from 1.26 to 0.99 (anything under 1 is within Steep's own variation).

Front and back knee bend: Steep, before, after
Two panels from the agent's ruler chart: front and back knee bend through one turn. Black is the Steep footage, dashed red is before (the original freestyle style), blue is after. The knees moved much closer to Steep; the arm angles (not shown here) were still way off and needed more rounds after this.

8. The four-line version

  1. I tell the agent what I want to see, not how to build it. I'm the one who decides when it's done.
  2. When something needs my call, it doesn't stop and ask: it builds 2–3 variants into the game and lets me pick while playing.
  3. Every class of problem gets a "ruler" the agent runs itself, plus a second agent that didn't write the code to review the results.
  4. When it fails at the same thing several times in a row, it stops and rethinks from scratch instead of just trying again.

9. Rules you can copy

These are the rules we actually use, cleaned up. Paste them into your CLAUDE.md:

## Results
- I give you goals and references, not methods. Figure out the approach yourself.
- Don't stop to ask about look-and-feel choices: build 2-3
  variants into the product, default to your recommendation,
  and let me pick while using it.
- For new gameplay or systems: write a proposal with flow
  diagrams first, and don't write code until I've reviewed it.
- Change only what I asked for. If you need to modify
  something I've already approved, don't overwrite it: build a
  new variant and keep the approved version as the default.

## References
- For anything that "looks wrong": pull real photos or video
  and compare them side by side every round until nothing
  obviously looks fake. No guessing from theory.
- My diagnosis might be wrong: measure before you act.
- Don't trust "common sense" pulled from text until you verify
  it against real data and video.

## Acceptance
- Every class of problem gets an automated ruler. If a round
  regresses past normal noise compared to the last one, don't
  deliver it.
- Passing the ruler doesn't mean it's done: the improvement
  has to be visible side by side.
- Run all screenshots, video captures, and performance tests on a real GPU.
- Fix the whole class of bug, not just the one instance: once
  you find the root cause, fix everywhere else it shows up
  too.
- If you fail at the same thing repeatedly, stop patching it.
  Step back and rethink from scratch.

## Working overnight
- Start by listing the gaps compared to the reference, ranked
  from biggest to smallest. Tackle the biggest one first.
- Run at least N rounds. Run every check each round, and scrap
  the round if anything regresses beyond normal noise.
- After each round, have an agent that didn't write the code
  score the results independently, and fix what it flags.
- Don't stop to ask me mid-run; make intermediate judgment
  calls yourself, and turn anything that needs my decision
  into variants.
- If several rounds in a row show no visible progress, roll
  back, find the root cause, and change your approach.
- Morning handoff: a playable build, before/after comparisons,
  and a list of open issues.

The real bottleneck

Getting code written was the easy part almost from day one. The hard part was that the agent couldn't tell when it was wrong.

Every rule above is one more way for it to find out without me: reference photos, rulers, an independent reviewer, and side-by-side comparisons.

Play it: huisky.xyz/cold-smoke/play (the live site has skiing, the full mountain, and the weather system; the new snowboarding from section 7 is still in the dev build). Source: github.com/huiskylabs/cold-smoke.

有新文章和新作品时告诉你Hear about the next one

用 RSS 订阅Follow via RSS