---
title: "在Codex Desktop中创建自定义宠物：骑自行车的鹈鹕Pedalican"
source: "Simon Willison 博客（Atom）"
source_tier: "t2"
url: "https://simonwillison.net/2026/Jul/14/pedalican/#atom-everything"
permalink: "https://feed.astralor.com/items/itm_f60e8094f327fd49445d819a"
published: "2026-07-14T22:29:45.000Z"
score: 74
channel: "ai"
tags: ["Codex Desktop","GPT-5.6 Sol","gpt-image-2","提示工程","精灵图生成","自定义宠物"]
---

# 在Codex Desktop中创建自定义宠物：骑自行车的鹈鹕Pedalican

## AI 点评

> 这篇文章最吸引我的是它把生成式AI从“画图”提升到了“制作可动画的游戏资产”的层次，而且全程透明可复现。对独立游戏开发者和希望探索AI+创意工具边界的读者来说，这是一份绝佳的实战教程。

## 速览

Simon Willison 发现 Codex Desktop 的“宠物”功能后，用 GPT-5.6 Sol 和 gpt-image-2 生成了一个骑自行车的鹈鹕精灵动画。他记录了完整的提示工程和图片生成流程，并将所有中间产物开源到 GitHub。文章详述了从文字描述到最终 sprite sheet 的演变过程，展示了如何利用图像生成模型快速制作游戏角色。

## 关键点

- Codex Desktop 包含一个隐藏的宠物功能，可创建自定义动画精灵。
- 通过 GPT-5.6 Sol 和 gpt-image-2 生成骑自行车的鹈鹕精灵，包含多种动画循环。
- 整个生成过程使用精心设计的提示词和参考图，最终输出为纯色背景的 sprite sheet。
- 关键实现已开源（hatch-pet 与 imagegen），采用 Apache 2.0 许可。

## 全文

simonw/pedalican Clearly I wasn't paying attention when these were first announced back in May, but today I accidentally activated a "pet" in Codex Desktop - a little animated robot, reminiscent of Clippy - and then learned you can create your own. So I did, and now I have a cute little pelican on a bicycle bouncing around my desktop giving me updates on my Codex tasks. Your browser does not support HTML5 video. The most interesting thing about this process was watching how the custom pet was created. I told it I wanted a custom pet that was a pelican riding a bicycle and GPT-5.6 Sol xhigh did the rest of the work, using several rounds with gpt-image-2 to generate the necessary sprite assets. I had it make extensive notes and record all of the intermediary steps. My GItHub repo includes every generated image and combined sprite sheet, plus GIFs for each of the animation loops such as this one, called waving.gif: That GIF was compiled from a single image generated by gpt-image-2 that looked like this: And that image was created by executing this prompt against the initial generated character reference image, which was created with this prompt, which has this structure: Create one clean full-body reference sprite for Codex pet Pedalican. Pet identity: A compact adorable baby pelican with a round cream-white body, soft coral-orange bill and feet, riding a tiny sky-blue bicycle [...] Place a single centered pose on a perfectly flat pure magenta #FF00FF chroma-key background. Keep the full pet visible, compact, readable at 192x208, and easy to animate. [...] I've been looking out for example of ways to use image generation to create simple game-ready sprites, so I spent some time digging into this mechanism to see how it works. The key implementation details are open source - these two skills in particular, both Apache 2.0 licensed: hatch-pet from openai/skills imagegen from openai/codex And yes, GPT-5.6 Sol did come up with the name "Pedalican". I like it! Tags: ai, prompt-engineering, generative-ai, llms, text-to-image, pelican-riding-a-bicycle, codex

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_f60e8094f327fd49445d819a
