Skip to content

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

Allow the image generator's own copies in npm run create

shinshin86022636512cf6
diff --git a/tests/create-avatar.test.ts b/tests/create-avatar.test.ts
index 4942824..0b9d9f1 100644
--- a/tests/create-avatar.test.ts
+++ b/tests/create-avatar.test.ts
@@ -45,6 +45,7 @@ describe('npm run create', () => {
expect(plain).toContain('do not stage or commit');
expect(plain).toContain('run the same command again with escalated permissions');
expect(plain).toContain('Do not post-process built/');
+ expect(plain).toContain('keeps its own copy of each result outside the repository');
const variants = agentPrompt('mio', { variants: true });
expect(variants).toContain('the person agreed to send source.png and the masks');
expect(variants).toContain('eyes_sad, eyes_surprise, mouth_angry and mouth_sad');
diff --git a/tools/create.mjs b/tools/create.mjs
index bc85bf6..d563aa1 100644
--- a/tools/create.mjs
+++ b/tools/create.mjs
@@ -106,6 +106,7 @@ export function agentPrompt(name, { variants }) {
'- Build the avatar only with the tools the guide names. Do not post-process built/ with your own scripts: the editor rebuilds the avatar with the same tools, which would undo such changes. Report what the tools cannot fix instead.',
'',
`Only create or change files inside ${project}/. Do not change other files in the repository, and do not stage or commit anything.`,
+ 'Your image generator also keeps its own copy of each result outside the repository (for example ~/.codex/generated_images); that is expected and allowed.',
'End with a short summary of the result and the parts to check first.',
].join('\n');
}