The Brief
Microlearn gives organisations an admin for building courses and gives learners a phone app with streaks, XP, a video feed and AI chat. I wanted its lessons to have hosts: a sea captain or a firefighter who explains, reacts and answers back.
The bar was a tutor that feels like one person: the same face and outfit in every frame, and a mouth that matches what it’s saying. Every tutor also needed the same art style, so a sea captain and a pilot look like they belong in the same app.
I designed and built it as a wizard in the Microlearn admin between Oct 30 and Nov 2, 2026, working with Claude Code. Images come from OpenAI’s image models, the casting and persona from a chat model, and the voice and calls from ElevenLabs.
Dalton
Amy
Gary
Riley
Ten Steps, One Character
An admin types one line, and the wizard walks them through ten steps in four stages: understand the request, draw the character, bring it to life, then give it a mind and a voice. At the drawing steps they pick from six options instead of writing prompts, because choosing a face is easier than describing one. Any frame can be regenerated.
Draft steps run at low quality so six options come back fast; the frames learners see run higher. Every step saves as it goes, and changing an earlier pick marks the later steps out of date, so nothing downstream drifts from the character it was drawn from.
Finished tutors sit in a shared library that organisations import from, and each one opens back into the wizard it was made in.



Keeping One Face
A full tutor is 24 generated images, and every one has to show the same person. Three things make that hold.
Casting before drawing. Before the first portraits, a chat model reads the request and writes who the six options are. It keeps what the words imply: “Gary the sea captain” gets six men, “grandmother” six older women, and a detailed description gets the same person six ways. A bare role like “police officer” gets six clearly different people, so the admin chooses who the tutor is.
References at every step. Each later step sends the earlier picks as reference images, along with one fixed house style: flat 2D vector shapes, no outlines, no gradients, a white background.
Idle first. The first portrait shows whatever the character wore before the outfit was chosen. So the idle frame is drawn first, from the portrait and the full body together, and the other ten frames are drawn from it. Every mood wears the chosen outfit.
A Face That Talks and Reacts
Step four asks for one 3×3 sheet of nine mouth shapes, from rest through M/B/P, AH, OO and L/TH. They match the standard set used by Rhubarb, the open-source lip-sync tool.

Getting those mouths onto the face took more work than drawing them. The model rarely draws on exact thirds, so the browser finds the cells by the white gaps between them. It compares the cells to find the part that changes, which is the mouth, then searches the idle frame for where that mouth sits and how big it is. Matches below 0.45 are rejected; real sheets matched between 0.62 and 0.95. Each mouth is cut to a soft-edged oval and drawn over the face.
On a call, the mouth follows ElevenLabs’ timing for each spoken character as the audio plays. That timing is far more precise than the voice’s volume, which the SDK smooths, so the mouth lands on each word.
Around the mouth, the tutor acts. It shows listening while you talk and thinking right after, blinks every few seconds, and plays a reaction (a nod, a smile, a celebration) when the voice agent calls its react tool. A call opens on a ringing screen until the tutor first speaks, with mute and hang-up on the picture.
idlemood
listeningmood
thinkingmood
talkingmood
nodreaction
smilereaction
brow raisereaction
lean inreaction
shakereaction
celebratereaction
Built With Claude Code
I built the pipeline with Claude Code, Anthropic’s coding agent, over about four days. Claude Code wrote the code; I directed and tested it. Across 12 sessions it made 33 of the 47 Tutors commits, and each piece of work came in as a pull request I reviewed and merged.
The repo’s CLAUDE.md gave every session the platform’s ground rules up front: how tenancy works, how routes are scoped and checked, where shared types live. From there it was a test-and-tell loop. I ran each step on real tutors and said exactly what came out wrong; Claude Code found the cause, fixed it and wrote the reason into the commit. Casting, idle-first drawing, the cut-out mouths and the switch to character timings all came out of that loop.
I also had it keep docs/TUTOR_PIPELINE.md: every request, prompt and parameter the wizard sends, word for word, in step with the code. When a frame comes out wrong, what the model was actually asked is one file away. Seventeen tests cover the Tutors API.
Where It Stands
Microlearn can now give any lesson a host. Gary the sea captain is one of the first tutors published to the shared library, made from one line of text and the same person in every frame. The models draw the pictures; the project was the scaffolding around them: casting, references, drawing order, and cutting and placing the mouths.
Tutors run in the admin today, and putting them in front of learners in the app is next. After that comes a layered SVG rig, so tutors move smoothly instead of swapping frames, and a check that measures “same character in every frame” automatically.
Key takeaways
- Consistency is the hard part of generated characters, so anchor every step on a pick a person already approved.
- Let people choose instead of prompt: six faces to pick from beat asking an admin to describe one in words.
- With a coding agent, the job becomes judging the output: test on real cases, say exactly what’s wrong, review the fix.


