Pip the Robot Coded Anime Short

By @denden_zatsugaku. Made with Claude Opus 5.5. Watch the original post.

Prompt

You are the director, animator, rigger, compositor, sound designer and rendering engineer for a 45-50 second animated short made entirely in code. The production bar: "it looks like a short from a real animation studio and is good enough to go viral on X (Twitter)." Treat this as a multi-stage production process. Don't rush to the final render. Work milestone by milestone, export stills again and again, look at them closely, critique them honestly and fix them.
■ In a nutshell
Pip is a small, endlessly curious robot built from scrap. While he's happily zooming around his world, the world around him starts getting remade (regenerated). Eventually he realizes someone is controlling his reality with a Prompt. The Prompts get more and more absurd, until finally he climbs up onto a floating Prompt input box and types "let me out". Then the camera pulls back to reveal that his whole universe was a video playing on a phone propped up on a messy workbench. And the one watching it is another Pip, who is about to be controlled by a Prompt himself. A perfect loop.
Every laugh has to work without dialogue. Pip communicates only through his eyes, his antenna, his body movement and little robot chirps. Always add a new highlight (a laugh or a surprise) every 3-5 seconds.
■ Character design (non-negotiable)
Before you write any code, study the attached character sheet image carefully. Describe it in detail in your own words and write what you learn into docs/character_bible.md.
- Size: about 28cm tall. Very small. Make this smallness felt throughout the whole film.
- Head: a wide, cream-colored helmet with rounded corners. Soft yellow trim surrounds a glossy black visor (screen). His eyes are displayed on that screen: two big eyes glowing a warm cream, dark pupils, bright highlights. Small graphite ear guards on both sides. Scuffs, scratches and taupe grime around the edges.
- Antenna: a thin graphite rod rising from the top right of his head, with a small deep-orange signal flag. This is his "tail": it stands up, droops, wiggles and trembles with his emotions.
- Body: a boxy cream-colored torso. Yellow trim, a warning triangle, rivets, grime. A small door on his chest opens to reveal a tiny, softly glowing green sprout. Back: panels, a vent grille, an orange panel, a small leaf decal.
- Side decals: the letters "PIP" and orange diagonal stripes.
- Arms: thin, segmented graphite arms. Yellow joint covers and three-fingered claws. Very expressive.
- Wheels: four chunky rubber wheels. Yellow hubs, independent suspension. Sturdy and compact.
- Personality: curious, kind, gutsy, expressive, always exploring. "Small robot, big feelings." Even when he's angry, he's never mean. His anger is cute and strong-willed.
- Colors: extract the exact palette from the color swatches on the character sheet (sample the image with Python/PIL) and save it to src/theme/palette.ts: cream (body), soft yellow (primary), deep orange (accent), graphite (metal, mechanical parts), taupe (wear, grime), mint blue (glow, UI).
Identity lock rule: in every world, the helmet-and-visor silhouette, the antenna flag, the yellow trim, the claw arms and the four wheels must be recognizable at a glance. A world only changes how he is drawn, never his design. The only intentional design change is the "more adorable" gag in Act 3, and even there the helmet shape, antenna and wheels don't change.
■ Tech stack
- Render with Remotion (React + TypeScript), frame-accurate and deterministic. Output: 1920×1080, 30fps, H.264, high bitrate (around CRF 14). Landscape.
- Build the character rig and most of the artwork in SVG. Use Canvas/WebGL (@remotion/three or plain canvas) only when you need things like particles, water, explosions, glow or noise.
- For the art style's "texture", scratches and grime, use SVG filters (feTurbulence, feDisplacementMap, feMorphology, feGaussianBlur) and custom canvas shaders.
- Add motion blur to fast movement with @remotion/motion-blur (or your own sub-frame compositing).
- Use Python (numpy/scipy/PIL) for palette extraction, audio synthesis and generating QA contact sheets. Use ffmpeg for joining audio, checking the loop and contact sheets.
- Make everything seeded and deterministic. No unseeded Math.random().
- Don't use any external copyrighted assets. Don't show any real brand logos or product names either. Give the Prompt input box a generic, original UI design. Google Fonts only (e.g. Inter for the UI, a rounded handwriting font for handwritten notes).
- Target machine: MacBook Pro M4, 24GB of memory. Keep render concurrency within reasonable limits.
■ Character rig (build this first. It's the core of the film)
Build src/character/ as a proper 2D cutout rig.
- Hierarchy: root → chassis (with suspension) → torso → neck joint → head (helmet + visor + ear guards) → antenna → flag. Torso → shoulder → upper arm → forearm → claw (swappable claw poses: open, closed, pinch, point, poke/type, grip a ledge, wave). Chassis → 4 wheels. Each wheel has its own suspension spring, and its rotation is driven by the distance traveled.
- Visor face system (the most important part): the eyes are shapes drawn on a black screen, so treat them as a fully procedural face. Drive these with parameters: eye size, roundness, upper and lower eyelid cuts, pupil size and position, highlight position, glow intensity, squash/stretch, and special shapes (sparkling stars, ^ ^ smile arcs, flat deadpan lines, spirals, tiny hearts). Add faint scanlines and screen reflections to the eyes so they read as a screen. Show a blink by squashing the eyes vertically over 3-4 frames.
- Expressions: match the 6 expressions on the character sheet exactly: curious (a "?" pops up), shy (eyes glance down and away, blushing cheeks), excited (smile-arc eyes and little radiating lines), worried (small eyes, a sweat drop), determined (upper eyelids cut at a slant), overjoyed (star eyes, hearts pop up). Also add: a deadpan stare into the camera (half-lidded flat eyes, antenna hanging limp), fear (tiny trembling pupils, eyes wide open), angry-but-cute (determined + the screen flashing orange), and a 3-stage "transformation (glow-up)" (see Act 3).
- Secondary motion (follow-through): an antenna and flag driven by damped springs (this is his main means of expression, so use it constantly), a suspension bounce at every stop and every bump, arm sway, a slight head lag when accelerating and braking, dust kicked up by the wheels.
- Turnaround: front, 3/4, side and back views matching the character sheet. Switch views cleanly when he changes direction.
- Loop animations: driving forward (with the speed lines and dust shown on the sheet), idle sway (slow suspension breathing + an occasional antenna twitch + blinks), recoiling in fear, looking up in surprise, holding a small object, reaching up, climbing, poke-typing.
- Chest door: can animate opening and closing, and the sprout's soft green light spills out.
- Style skin interface: the rig takes a style prop and, without changing its shapes, can change line weight, fill, texture, grime, outline wobble (boil), shading method and filters. This is how he stays himself in every world.
- Milestone 1 check: export a single "lineup" still. Place Pip in the 4-view turnaround + the 6 expressions next to the reference image. Compare them side by side and keep fixing until anyone who has seen the reference would say "that's Pip." Don't move on until this passes.
■ Worlds (art style textures)
Each world is a complete environment component with foreground, midground and background parallax layers, plus its own art-style skin for Pip. Build a shared WorldLayer system so every world can share the camera and depth handling.
Scale rule: put the camera low, close to Pip's eye line (about 20cm off the ground). Everything looks huge. Humans appear as giant legs and shoes, a curb is a cliff, a puddle is a lake. This is the key to making a tiny robot look cinematic.
- Base world: an overgrown city at golden hour (evening). Warm sunset light, weathered stone and brick, moss and low plants, high-rises fading into the haze in the distance. Painterly, warm, lived-in. This is "reality." The reveal scene uses this world too.
- Anime Tokyo: crisp cel shading, thick outlines, glowing signs with fictional (non-brand) shop names, speed lines, cherry blossom petals swirling like giant pink snow. Anime-style sparkling highlights on his visor.
- Clay village: soft, rounded shapes, a texture of fingerprints and smudges, stop-motion timing (animate Pip on twos), warm tungsten light. It should look made of clay.
- Medieval battlefield: a muddy field, banners, catapults in the distance, smoke. Armored boots thunder past him. He calmly drives right through it while his antenna ducks out of the way.
- Brick city: everything is made of generic plastic bricks with studs on top (don't use any real brand's style or logo). Glossy plastic highlights. Pip is drawn with a plastic sheen too, and his wheels get a little blocky.
- Underwater: a seafloor cityscape with coral streetlights, fish swimming past his visor, caustic light patterns, bubbles rising from vents. The antenna flag sways slowly like seaweed.
- Pencil sketch: paper texture, pencil hatching, construction lines, eraser marks. His lines wobble constantly (boil), so he looks redrawn every frame (match the sketches at the bottom of the character sheet).
The running gag that ties the film together: the sprout. At the start, Pip carefully holds a small green sprout in one claw (the "holding a small object" pose). The sprout survives every world and changes form to match it: a sparkly cel-animation sprout, a clay sprout, a sprout planted in a small broken helmet used as a pot, a brick sprout, a sprout blowing bubbles underwater, a sketch sprout. Every time the world changes, he protects the sprout. This is the film's emotional anchor.
■ The signature transition: "Regeneration"
World changes must not look like ordinary wipes; they have to look like an AI image regenerating. Build a RegenTransition component:
- The frame dissolves from the edges inward into drifting, diffusion-model-style noise (at first it doesn't cover his body), holds structured noise for a few frames, and then the new world emerges from it, going from rough blobs of color to fine detail as if being denoised.
- Pip's body changes one beat after the world: for a moment he's half old style, half new style, then he switches to the new skin. At the moment of the switch, his visor gets a 2-frame glitch (a scanline tear). This half-switched state is the visual proof that he's been there the whole time.
- Each regeneration gets a faint "whoosh, crackle" sound. On some regenerations, Pip lets out a small surprised chirp.
- 8-12 frames each. Change the direction and noise seed every time so they never look repetitive.
■ Script (about 48 seconds at 30fps)
The timings are a guide. If a beat lands better a little longer, adjust it yourself. You must hook the audience in the first 2 seconds.
Act 1: A Good Morning (0:00-0:03)
A low tracking shot in the base world. Pip drives left to right along a mossy ledge, holding the sprout, eyes full of curiosity, antenna bobbing up and down. Start mid-drive (for the loop at the end).
At 0:02, the first regeneration happens without any warning.
Act 2: A Barrage of Changes (0:03-0:14)
The world changes again and again, about every 1.4 seconds: Anime Tokyo → Clay village → Medieval battlefield → Brick city → Underwater → Pencil sketch.
Emotional arc: overjoyed at first (star eyes, he thinks this is the best thing ever), then curious (a "?" pops up), then worried (sweat drop, drooping antenna), and finally he slams on the brakes in the sketch world. The suspension bounces and he leaves skid marks.
Keep the camera locked in the same tracking composition so only the world changes, which makes the gag easy to read.
Act 3: The Prompt (0:14-0:30)
Back in the base world. Pip looks up in surprise (use the pose on the character sheet as reference). A giant floating Prompt input box fades in in the sky. It glows mint blue, glassy with rounded corners, with a soft, original UI. Text types itself out with a blinking cursor: "make it more cinematic" → Enter key sound. Cinemascope black bars snap in instantly and the sun goes over the top: a huge anamorphic lens flare, light shafts (god rays), an orange-and-teal grade, slow-motion dust, one dramatic leaf drifting past his visor. He squints against the glare. His antenna flag flaps heroically in a strong wind coming from who knows where.
"add explosions": huge cartoony orange explosions go off one after another behind him, with debris. He doesn't turn around. His eyes go flat and half-lidded. He slowly turns his head and stares straight into the camera. Deadpan. A full one-second pause. Then an explosion lands right next to him, he snaps into the "recoiling in fear" pose from the character sheet, a "!!" pops up above his head, and he shields the sprout with his body.
"make the protagonist more adorable": transformation stage 1: his eyes get bigger and brighter, blush on his cheeks, a little bow on his antenna. He sees his reflection in a puddle and his eyes go scared.
"more.": stage 2: he's repainted in pastels, his eyes spread to fill the whole visor with triple highlights, hearts and sparkles float around, and his wheels turn fluffy.
"MORE." (big text, the screen shakes): stage 3: ridiculously, absurdly cute. His whole body is covered in plush-toy fur, giant anime eyes, a rainbow halo, a choir "aaah" sound effect, heart confetti. The helmet shape, antenna and wheels stay the same, so it's obvious he's Pip. And inside those giant cute eyes, his real eyes stay tiny and terrified. That's the punchline.
Act 4: He Snaps (0:30-0:38)
Pip shakes violently, and the cuteness cracks like glass and falls away. He's back to his normal self, covered in scratches and absolutely furious (determined expression, screen flashing orange).
He opens his chest door and gently tucks the sprout inside to keep it safe. The door shuts with a "click." It's the only quiet, tender moment in all the chaos, and it matters a lot.
He dashes forward, leaps off a rock, grabs the edge of the floating Prompt input box with both claws and hauls himself up. His wheels spin against the edge (match the "reaching for the floating Prompt input box" pose on the character sheet). The camera tilts up to follow him.
On top of the input box, he holds down backspace with one claw. The old Prompt disappears one character at a time with rapid clicking, and the vanishing letters are reflected in his visor.
With one claw, he slowly pokes out one letter at a time: "let me out". Then he winds up and slams the Enter key as hard as he can.
Act 5: Freeze and Reveal (0:38-0:47)
Everything stops: debris hanging in midair, falling confetti, drifting dust, Pip mid-pose on top of the input box. All sound cuts out: about 1 second of total silence.
The camera starts to pull back smoothly. A rounded rectangle appears at the edges of the frame: his universe was a video playing on a phone screen. Pull back further: the phone is propped against a chipped mug on a workbench cluttered with spare parts, wires, screws and scrap ("built from tomorrow's leftovers"). In front of it, sitting small next to the giant phone, is another Pip. Same scratches, same antenna, watching the video.
The second Pip's eyes blink slowly. His antenna droops a little. A faint, quiet chirp.
Act 6: The Loop (0:47-0:50)
Above the second Pip's head, the same mint-blue Prompt input box fades in, and text types out: "make it more cinematic."
His eyes slowly move up toward the input box. His antenna flag freezes. On the Enter key sound, hard cut to the film's first frame.
Loop design: use the composition and lighting of the last shot and the start of a regeneration so the cut back to frame 1 feels intentional. The music must loop seamlessly across the cut. Use ffmpeg to join the video to itself and watch the seam to check it.
■ Camera and cinematography
- Virtual camera: position, zoom, rotation, subtle handheld shake (seeded noise), shake from the explosions, a tilt during the climb, a dolly-out for the reveal.
- By default, keep the camera low to emphasize how small he is. Shallow depth of field: like a macro lens, with blurry grass and pebbles in the foreground and a soft background.
- Depth: at least 4 parallax layers per world. Atmospheric perspective (more haze and less saturation with distance).
- Add motion blur to fast movement, debris, jumps and the climb.
- Lighting in each world: build key, fill and rim light on the rig with layered gradients and multiply shadow layers. The visor glow casts a faint warm light onto nearby surfaces and his own claws. Put a rim light on the helmet in every world.
- Cinematic finish over the whole frame: faint film grain, a soft vignette, and a very slight chromatic aberration only in the "more cinematic" scene.
- Composition: place him squarely on the rule-of-thirds lines. Most people will watch on a phone, so his eyes must read clearly even at phone-screen size.
■ Text and typography
- The Prompts in the sky: a clean UI font, lowercase, typed with a natural human rhythm (not at a constant speed: add short pauses, and somewhere make one typo and fix it with backspace, for realism).
- Text must be readable on a phone within 1 second. Check it at 360 pixels wide.
- No subtitles, no titles. It starts cold.
■ Sound (procedurally generated, original)
Generate every sound in code (Python synthesis or offline Web Audio) and mix it with ffmpeg.
- Pip's voice: original chirps, beeps and trills made from pitch-bent sine/FM tones. Design a small "emotional vocabulary": a rising curious chirp, a happy trill, a wobbly worried sound, a startled squeak, a grumpy low buzz, a tiny sigh. He never speaks.
- Pip's body sounds: servo sounds matched to his arm and head movements, the crunch of his wheels rolling over gravel and stone, suspension creaks, the click of the chest door opening and closing, a soft electric hum while idle.
- Music: a light, warm, loopable track. Change the instrumentation for each world (anime: koto/synth, clay: wooden marimba, medieval: drums/horns, bricks: plastic clicks, underwater: a muffled filter, sketch: a rhythm of scratching pencils).
- Sound effects: the regeneration whoosh-crackle, keyboard typing, a "thunk" for the Enter key slam, explosions with low end, the choir "aaah", glass shattering, total silence for the freeze, and quiet workshop ambience for the reveal (a ticking clock, a distant low hum).
- Normalize loudness to around -14 LUFS. Put each stem in audio/stems/ so they can be swapped for licensed audio later.
■ Production workflow and self-improvement loop
Work in the following order and don't skip any checkpoints:
1. Plan: write docs/character_bible.md, docs/shotlist.md (with each shot's frame range, camera, expression, antenna state, world and sound effects) and docs/style_guide.md. Show me the shot list before you start building.
2. Rig: build Pip and pass the lineup still check (above).
3. Worlds: build each world as a standalone still that includes Pip. Export all 7 onto one contact sheet and check that the character looks the same and that the sense of scale is there.
4. Transition: build RegenTransition and export a 5-second test.
5. Animatic: assemble the whole film at 960×540. Rough motion and placeholder sound are fine. Watch it and fix pacing problems first.
6. Export the final animation and polish it (secondary motion, easing, timing, antenna acting). Finish with the final pass (lighting, grain, blur, grime).
7. Sound processing and mix.
8. Final render.
For each shot, run this critique loop at least 3 times:
- Export 3-5 keyframe stills with npx remotion still, open them and look closely.
- Score these items from 1 to 10: does Pip match the reference image, can you read his emotion instantly from his eyes and antenna, does the gag land without sound, composition, sense of scale, depth, lighting, finishing detail, readability at phone-screen size.
- Write the scores and the top 3 problems in docs/review_log.md, fix them, re-export and re-score. Keep going until every item scores 8 or higher before you move on.
- Every time you export a full preview, use ffmpeg to make a contact sheet with one frame every 0.5 seconds, and check the flow of the whole film on a single image.
Be honest in your critiques. If something looks cheap, say so and fix it. Common failures: a stiff, lifeless antenna, wheels that slide instead of rolling, eyes that look like stickers instead of a glowing screen, suspension with no weight, transitions that all look the same, unreadable text, the character's proportions breaking.
■ Deliverables
- out/pip_final_1080p.mp4: the film itself.
- out/pip_loop_check.mp4: the film played twice back to back, to check the loop.
- out/poster_frame.png: the single best frame for the X (Twitter) post thumbnail (probably Pip staring deadpan into the camera with explosions behind him).
- out/lineup.png: a lineup of Pip from every world, side by side.
- Clearly structured, commented source code, and a README explaining how to re-render.
Start with stage 1. If you have any questions you need answered before you start building, ask them. If not, make bold creative decisions on your own.

Browse all 1008 videos