Codex打造更好的浣熊劫案游戏

Simon Willison··作者 Simon Willison

关键信息

Codex 在这个项目上花了 52 分钟,Willison 估算如果按完整 API 价格计费,成本为 23.28 美元,其中包括 70.07 万输入 token、3250 万缓存 token 和 14.8 万输出 token。一次性生成的版本还出现了一个视觉 bug:浣熊头上漂着巨大的黑色眼球球体,直到 Willison 追问“为什么浣熊身上有巨大的黑色球体?”并让它修复后才解决。

资讯摘要

他还把完整的 Codex 交互记录放进了仓库,并表示很希望 Claude Code 也能有同样的“复制为 Markdown”功能。根据他的记录,Codex 为这个项目运行了 52 分钟;如果按正常 API 价格计算,费用大约是 23.28 美元。整体来看,这篇文章主要是在展示同一提示词在不同模型和智能体编排方式下,生成效果可以出现非常直观的差异。

Codex打造更好的浣熊劫案游戏

资讯正文

我在周三写过一篇关于<a href="https://simonwillison.net/2026/Aug/5/raccoon-heist/">使用 Claude Fable 5 一次性做出一款 Raccoon Heist 游戏</a>的文章,当时我让 Claude Fable 5 基于我<a href="https://twitter.com/simonw/status/1555626060384911360">四年前</a>用 GPT-3 和 DALL-E 生成的一个设定,制作出了一款完整可运行的游戏。

我决定把<a href="https://simonwillison.net/2026/Aug/5/raccoon-heist/#the-fable-5-prompt">完全相同的提示词</a>交给运行 GPT-5.6 Sol Ultra 的 Codex Desktop——也就是 Sol 会<em>激进地</em>使用子代理的那个模式——看看它会做成什么样。

它做出的游戏要好得多!这是 <a href="https://simonw.github.io/raccoon-heist-codex/">Moonlight &amp; Mayhem</a>——<a href="https://github.com/simonw/raccoon-heist-codex/">GitHub 仓库在这里</a>,其中还包括它使用 <code>gpt-image-2</code> 生成的<a href="https://github.com/simonw/raccoon-heist-codex/tree/main/output/imagegen">材质和提示词</a>。

原始 GPT-3 生成的游戏描述包括:

“In ‘Raccoon Heist’, you and your team of thieving raccoons are tasked with pulling off a series of daring heists. From robbing banks to stealing priceless art, no job is too big or too small for your furry crew.”

Fable 的版本里,你是一只在后院里跑来跑去、收集硬币和鱼的单独浣熊。GPT-5.6 Sol 的版本则把场景放在了博物馆里,你要救出另外两名浣熊队友,叠在彼此身上,把金色沙丁鱼从展柜里抢出来。

要更像劫案多了!

不过有一个问题:从这次一次性提示词生成的版本里有个 bug,那就是每只浣熊都有一只眼球,夸张地长成了悬浮在它们头顶的巨大球体!

你可以<a href="https://static.simonwillison.net/static/2026/raccoon-heist-eyeball-edition/">在这里玩这个版本</a>。

尽管在开发过程中查看了截图,Codex 还是没能发现并修正这个 bug。

我通过这样提示来修复它:

<code>Why do the raccoons have huge black spheres on them?</code>

然后再提示:

<code>Fix it</code>

结果就得到了<a href="https://github.com/simonw/raccoon-heist-codex/commit/4e9a390dfbe80533324ee61a37aa661813c08446">这个修复</a>。

我在仓库里分享了<a href="https://github.com/simonw/raccoon-heist-codex/blob/main/transcript.md">完整的 Codex 转录</a>——我真希望 Claude Code 也有同样的“复制为 Markdown”功能。

Codex 在这个项目上花了 52 分钟。如果我当时是按完整 API 价格付费,而不是使用每月的 Codex 订阅,那么这一轮会话在 <a href="https://www.agentsview.io">AgentsView</a> 上的成本估算如下:

<img alt="总成本:$23.28。输入 tokens:700.7K,外加 32.5M 缓存 tokens。输出 tokens:148K" src="https://static.simonwillison.net/static/2026/raccoon-heist-codex-cost.webp" />

标签:<a href="https://simonwillison.net/tags/game-design">game-design</a>、<a href="https://simonwillison.net/tags/ai">ai</a>、<a href="https://simonwillison.net/tags/openai">openai</a>、<a href="https://simonwillison.net/tags/generative-ai">generative-ai</a>、<a href="https://simonwillison.net/tags/llms">llms</a>、<a href="https://simonwillison.net/tags/coding-agents">coding-agents</a>、<a href="https://simonwillison.net/tags/codex">codex</a>、<a href="https://simonwillison.net/tags/gpt">gpt</a>

来源与参考

  1. 原始链接
  2. Moonlight & Mayhem (Raccoon Heist by Codex + GPT-5.6 Sol Ultra)

收录于 2026-08-08