Ken Kahn's Ani (MIT, 1978), running again

A guide for students

Ani's Cinderella is a film made in 1978 by a computer program that can tell you why it did everything it did. This guide shows you how to watch it, how to ask a character why, and how to change the story and see what Ani does then.

What Ani is

Ani is a computer program Ken Kahn wrote at MIT in 1978, for his PhD thesis. You give it a short description of a story: who the characters are, how they feel about each other, and what each scene should show. Ani decides everything else (how each character moves, where it stands, what it does and for how long) and makes an animated film in which every character is a simple shape.

Ani doesn't learn from examples, the way today's AI chatbots learn from enormous amounts of writing. It reasons, using knowledge Ken wrote down by hand, and it records the reason for every choice. That is why you can click a character and ask it why.

A good way to begin: watch Ken's 1978 film of Cinderella on YouTube, or a new version made by this site, with subtitles and Ken's 1978 narration. Ken tells how Ani was brought back in his post about the revival.

The cast of Ken's film, as the key under the film shows them. In films made with the revival's extensions, Ani chooses each character's shape, size and colors itself, so they can look different.

Where the name comes from

Ken's report about Ani, AI-TR-540 (1979), a substantial rewrite of his PhD thesis, says that “Ani” is a nickname animators have for animation (p. 11). The quotes and page numbers in this guide are from AI-TR-540.

How is Ani different from ChatGPT, Claude or Gemini?

A language model such as Claude, ChatGPT or Gemini learned patterns from a vast amount of writing. Nobody wrote its rules one by one, and when it explains itself, the explanation is more writing it produced, not a record of what happened inside it.

Ani is the other way round: a person wrote every piece of its knowledge, there is far less of it, and each choice is stored with its reasons, which you can follow all the way down to Ken's code. On this page the two kinds of AI can work together: a language model can put a story of yours into Ani's words, and Ani does all the rest.

Finding your way around the film page

Open the film page in Chrome on a laptop or desktop computer. This is what you will find there.

1 2 3 4 5 6 7
  1. 1The scenes. Five buttons, from The Introduction to Justice.
  2. 2The screen. Click any shape to ask that character why it is doing what it does.
  3. 3Play, then ◂ ▸ to go back or forward one frame (one picture), and the bar to jump anywhere in the scene.
  4. 424 a second or 4 a second, two runs of the film: as Ken's camera shot it, and as his TV previews ran. TV or Color changes the picture. Save makes a video, or a film file you can open here again.
  5. 5The caption. What is happening now, and what it is meant to show.
  6. 6The side panel. At first it shows What Ani was told. After you click a character, it shows that character's reasons; Back returns.
  7. 7Change the story and Tell Ani a new story: have Ani make a film again.
What the side panel shows after you click a character

The first lines say what the character is doing and which part of Ani's plan it belongs to. Under them, Why this way and Why so long. The rest opens on a click:

  • Why: a chain of reasons, from the action up to what the film description asked for.
  • How Ani chose this: the ways of showing it that Ani considered, and how each one scored.
  • The plan, in Ani's words: the little program Ani wrote for this step.
  • How she moves (or he): speed, curvature of the path and more, each with a why? that opens the choice behind it.
  • Where she started this part, the scene, part by part, and Ani's own records.

A code link opens the code that made the choice. Words with a dotted underline are the page's plain-English readings; click one to see Ani's own words.

Start here

Watch, ask why, change a word

Do these in order, on your own or with a partner. Each has something to try and a question to think about. Try before you open What to look for.

1

Meet the cast

5 minutes
Try

Press Play and watch The Introduction (about 40 seconds). Don't read anything yet: just watch.

Think

From the way they move, who is in charge? Who would you want as a friend? How can you tell, when nobody says a word?

What to look for

The key under the film says who is who: Cinderella is the star, the stepmother the square, the fairy godmother the circle and the Prince the triangle.

The square rushes at the star and shoves it, again and again, then chases it and hits it. Near the end the star goes over to the triangle and the two travel together. Everything you learn comes from movement: how fast, how straight or curvy, how bouncy, and who goes toward whom.

2

What was Ani told?

5 minutes
Try

Read What Ani was told in the side panel. Then press Show it as Ani read it to see the same thing in Ken's own notation.

Think

Name three things the film shows that the description never mentions. Who decided them?

What to look for

The description gives each character a few words (Cinderella is beautiful, shabby, good, friendly, hard working and shy), says how they feel about each other (The stepmother dominates and hates Cinderella), and lists five scenes. Each scene has a few tasks, such as Establish that Cinderella is a little happy, and a mood, a rhythm and a length.

It never says where anyone stands, how fast anyone goes, or what they do to each other. Ani decided all of that. Ken's notation is written in Lisp, a programming language much used in AI research in the 1970s.

3

Ask the stepmother why

10 minutes
Try

Play The Introduction and pause while the square is pushing the star. Click the square.

Think

Ken's description never uses the word “push”. So why does the stepmother push Cinderella around?

What to look for

The first line says what she is doing. Open Why: it climbs from the action to its reason: to convey that the stepmother pushes Cinderella around, in order to establish that the stepmother dominates and hates Cinderella, as the film description asks. Pushing is Ani's idea: its way of showing that relationship.

Why so long explains the timing. The push happens five times because Ken's code for pushing someone around repeats it five times, and the scene is meant to be long.

Stuck?

Click right on the shape. If the panel talks about someone else, press Back and try again. The ◂ and ▸ buttons move one frame at a time, which makes it easier to stop at the right moment.

4

A moment when no one moves

10 minutes
Try

Choose The Meeting, with 24 a second. Near the end everyone stops for several seconds. Find that moment and click a character. Or open The Meeting, part by part at the bottom of the side panel and click the slanted line that says no one moves.

Think

Is the stillness a mistake, or did Ani mean it? How would you fix it?

What to look for

The last part of The Meeting is only about feelings: Cinderella and the Prince are very happy. Ani shows a feeling by changing how a character moves (a happy character moves faster and bouncier), but here nobody has anywhere to go, so the change can't be seen. Open Why no one moves: it also explains why the pause lasts longer than Ani planned.

Ken knew about this: AI-TR-540 says such changes cannot stand alone (p. 125). One of the revival's extensions, SEEN, has the two wander about while their happiness shows.

5

Make the stepmother kind

15 minutes, with 2 or 3 minutes of waiting
Try

First, write down three things you think will change. Then press Change the story, choose A kind stepmother and press Make the film. Keep this tab in front while Ani works. When it's done, watch the two films side by side.

Think

Which of your predictions came true? Why does the kind stepmother still keep Cinderella away from the Prince in Kept Apart?

What to look for

The side panel lists what you changed and How Ani's choices changed. Made by Ani as in 1978, 21 of Ani's 102 choices about how the characters move come out differently: the stepmother is slower and less deliberate, for example.

In The Introduction she no longer pushes and hits Cinderella; she goes to her and keeps her company. But Ken's description of Kept Apart says the stepmother prevents Cinderella from meeting the Prince, and you didn't change the scenes. Words about a character change how it moves and how Ani shows its feelings; the plot lives in the scenes.

6

Find a word Ani doesn't know

10 minutes
Try

Press Change the story and, before changing anything, read the notes under the word lists. Then open one of the + add lists.

Think

Ken's own 1978 story uses a word Ani doesn't know, and Ani never complained. Why might a program carry on quietly? When is that a good idea, and when is it dangerous?

What to look for

The fairy godmother is protective of Cinderella, but Ani knows only “is protective to”, so the word is remembered but suggests nothing: it has no effect on the film. Another note says “strong” is a word for personality, given here as the Prince's looks.

In the lists, shaded words have suggestions of their own in Ani's code; slanted ones Ani knows only as the opposite of another word, or close to one, like “lazy”, the opposite of “hard working”.

Going further

Look deeper, tell new stories, compare

These take longer and ask you to put clues together. Some make a new film, which takes a few minutes: start it, keep the tab in front, and talk about your predictions while you wait.

7

Why is the Prince in the first scene?

10 minutes
Try

Ken's description of The Introduction only mentions Cinderella and the stepmother. Play to the end of the scene, where the triangle arrives, and click it. Then click Cinderella.

Think

Why did Ani bring the Prince into the first scene? Could it have chosen someone else?

What to look for

Open Why: Cinderella goes to the Prince and goes along with him to establish what Cinderella is like (good, friendly, hard working, shy). To show what someone is like, Ani sometimes needs a second character to do it with. Look at how Cinderella feels about each of the others in What Ani was told, and open How Ani chose this.

8

Tell Ani a new story

20 minutes · needs a language model
Try

Press Tell Ani a new story. Use the model your teacher has set up (or Gemini Nano, if your computer has it), choose Red Riding Hood or write a few sentences of your own, and press Write the film description. Read what comes back before you make the film.

Think

What did the model leave out of your story? What did it add that you never said?

What to look for

The page shows the model's description in plain words: the characters, how they feel about each other, and the scenes. It says where it tidied the description, and lists any problems Ani's checks found, with a button to ask the model to fix them. Look it over, then make the film (or Open it in the editor) lets you check and change it before Ani starts.

Ani can only show what characters are like, how they feel and what they do to each other, by how they move. So a story about talking, objects or places has to become chases, guarding, rescues and feelings. Models sometimes add characters, or change the story to fit.

Keys are your teacher's job. Claude, ChatGPT and Gemini need a key, which works like a password and costs money to use. Only your teacher should type one in.

9

Where Ani stops, and why

15 minutes
Try

Make a new story with Ani as in 1978 chosen. If Ani stops, read Where Ani as in 1978 stopped and open What Lisp said. Then press Make it again with the revival's extensions.

Think

Ken never gave Ani a story like yours. Is a stop a crash, or is Ani being honest about what it can't do?

What to look for

Each stop is explained in a plain sentence, with the 1978 program's own message under it. One tortoise-and-hare story, for example, stopped because nothing in the hare's description suggested how active he should be: Ani gave up on that choice in pass 1, and pass 2 couldn't work without it.

Made again with the extensions, the side panel says, one sentence each, what each repair did, with a link to its code.

10

Ani as in 1978, or with the revival's extensions

15 minutes, with about 3 minutes of waiting
Try

Press Change the story, change nothing, choose Ani with the revival's extensions and make the film. Open Which extensions to read what each one does. Watch it beside Ken's film.

Think

The extensions are new code, written in 2026 in Ken's style, from ideas in AI-TR-540. Is a film made with them still Ken's Ani's film?

What to look for

Ani now chooses how each character looks (its size, shape and colors), so the cast is drawn differently: How Ani drew them in the side panel says how, and why?. Under Scene by scene, The Introduction has new parts: Cinderella helps the Prince along, and follows her stepmother. (Hard challenge D asks why the 1978 Ani didn't.) At the end of The Meeting, Cinderella and the Prince wander about instead of standing still.

Ken's own 1978 film never changes: it is always shown as it was made.

11

The scene Ken left out

15 minutes, with about 5 minutes of waiting
Try

Press Change the story and choose Cinderella beautified. Make the film, watch the new scene, then click Cinderella in the scenes after it.

Think

Ken wrote this scene in 1978 but left it out of his film. Why couldn't the Ani of 1978 make it?

What to look for

The fairy godmother goes to Cinderella and, as they touch, Cinderella changes at once (because the fairy godmother is magical; that rule is the revival's). After the scene Ani takes a fresh look at Cinderella as if the character were brand new, as Ken put it in AI-TR-540 (p. 168), and the side panel has How she has changed.

In 1978 Ani could change where a character was and how it moved, to show a feeling, but not who the character was.

12

Two films of one story

10 minutes
Try

Watch Kept Apart at 24 a second, then at 4 a second. Find something that is different.

Think

Same program, same story. Why are the two films different?

What to look for

Even The Introduction, which Ani plans the same way both times, is filmed differently: compare the times beside the bar. And Ani plans each scene from wherever the last scene's filming left the characters, so from Kept Apart on, the plans differ too.

24 a second is how Ken's camera shot the film. 4 a second is how his TV previews ran, and the run printed as a flipbook in the corners of the pages of AI-TR-540.

13

Inside a choice point

15 minutes
Try

Open Ani's Choice Points. It starts with the stepmother's speed. Read As the thesis tells it, then pick another choice from the table.

Think

Ani often puts off a choice until it knows more. What would happen if every choice waited for the others?

What to look for

The stepmother's speed was decided at attempt 825 of 836, after 10 postponements. All four speeds wait on one another, until the film's focus (Cinderella matters most) breaks the deadlock: Cinderella's speed is decided from her own description.

Difficult choices are postponed to be resumed when more of the film has been determined.Ken Kahn, AI-TR-540, p. 2

Hard challenges

Hard on purpose

The answers depend on what Ani actually does, which you can only find out by trying, so a strong AI chatbot will usually get these wrong too. Work in a pair, write your prediction down first, then check it on the page.

A

Predict before you look

30 minutes
Try

A shy Prince makes him good and shy, no longer stubborn and determined. Before making it, predict which of the Prince's ways of moving will change, and which way: his speed, activity, rhythm, acceleration, repetitiveness, deliberateness, and the length, curvature and jaggedness of his path. Then make the film and check How Ani's choices changed. Score a point for each one you got right, including those you said wouldn't change.

Think

What did Ani know that you didn't? Ask an AI chatbot to make the same predictions, and compare scores.

Why it's hard

Each choice gathers suggestions from many places: the character's words, how it compares with the others, and the style of the whole film. They often disagree, and Ani has rules for settling conflicts and for putting choices off. Click why? beside a changed choice to see what decided it.

B

Make it happen

30 minutes or more
Try

Pick a target, then change Ken's story, using only the words in the editor's lists, until Ani's film does it:

  • the Prince moves more slowly than Cinderella;
  • the stepmother stays mean, but never touches Cinderella in The Introduction;
  • a target of your own, written down before you start.
Think

How many tries did it take? What did the tries that failed teach you about Ani's knowledge? Some targets may be impossible with the words Ani knows; if you think one is, explain why, using the side panel's reasons.

Tips

Change one thing at a time and keep notes, or you won't know which change did what. Check speeds by clicking a character and opening How he moves, or in How Ani's choices changed. Making films at 4 a second is quicker.

C

Explain a curve

20 minutes
Try

Click Cinderella while she walks and open How she moves. Find Curvature of the path and follow why high?, and if you like See every step of this choice. Then do the same for the stepmother.

Think

Write a chain of “because”s, from words in Ken's description to the curve you see on the screen. Why is the stepmother's path straighter?

Tips

Ani kept some suggestions and set others aside. Note which words suggested what, how strongly, and what happened to the suggestions that lost.

D

A part that takes no time

20 minutes
Try

Open The Introduction, part by part in the side panel of Ken's film. One part lasts 0 seconds. Which one?

Think

Why would Ani plan a part and then give it no time at all? What would Ani need to know to show it?

Check your answer

Part 4, “Cinderella helps the Prince”, lasts 0 s: in 1978 Ani had no way of showing helping. AI-TR-540 names “helps” among the words that could be added to Ani (p. 19), but he never added it. Now make Ken's story with the revival's extensions (KNOW adds a way of showing it) and look at The Introduction again.

E

A story the 1978 Ani can film

45 minutes or more
Try

Write a story of your own, with two or three characters and at least two scenes, that Ani as in 1978 films all the way to the end. Start from Ken's description under Ani's version in Change the story, or from a language model's draft, and change it until no scene stops.

Think

Which of your tries stopped, and why? What did Ken's Ani take for granted that your story didn't give it?

Tips

The page warns about some problems before you press Make the film; others only show up when Ani runs. After each try, read Where Ani as in 1978 stopped. Change one thing at a time, and make films at 4 a second: a stop usually comes long before the film would be finished.

Words to know

Film description
What Ani is told: the characters, how they feel about each other, and the scenes. Ken wrote Cinderella's in his own notation, a kind of Lisp.
Pass 1
Ani's first pass over the story, before any scene: how each character moves in general (its speed, how curvy its path is, and so on) and how the characters compare. For Cinderella that is 102 choices.
Pass 2
Ani's second pass, scene by scene: what each character does, where it starts, in what order and for how long. It ends with a small program for each scene, which Director runs.
Choice point
One decision Ani has to make, such as the stepmother's speed. It collects suggestions, settles conflicts between them, can put itself off until more is known, and records why it chose what it did.
Director
The programming language Ken made for animation, in which each character is an “actor” that is sent messages. It runs Ani's programs and draws every frame.
Glass box
A program you can look inside to see why it did what it did: the opposite of a black box. Ken called Ani a “glass box” that we can look inside (AI-TR-540, p. 208).
Extension
Something this revival added to Ani in 2026, written in Ken's style in files of its own, which you can switch on or off: MEND (repairs for new stories), KNOW (more knowledge), APPEAR (how characters look), CHANGE (characters who change) and SEEN (changes seen when no one has anything to do); and two you tick yourself, SLIPS (corrections of slips in Ken's files) and DETAIL (a few of the details AI-TR-540 says were left undone).
Language model
Today's AI, such as Claude, ChatGPT and Gemini, which learned from enormous amounts of writing. On this page it only turns your story into a film description; Ani does the rest.
Frame
One picture of the film. Ken's camera took 24 a second; his TV previews showed 4 a second.