Inspiration

In 1967, Wally Feurzeig, Seymour Papert and Cynthia Solomon created LOGO so that children could learn to think by teaching a turtle to draw. A child typed FORWARD 100 and RIGHT 90, the turtle moved, and when the picture came out wrong, the child debugged it. Papert's point was that mistakes are how you learn, and that a child who programs the computer is the one doing the thinking.

Logo filled school computer labs through the 1980s. Then it faded. Schools moved from teaching programming to teaching office software, the machines Logo ran on disappeared, and the turtle never really made it onto the web or into the phones children use today.

We wanted it back, for the children with the least access to coding: kids on a shared family phone, with patchy data, who may not read English fluently yet. That is a lot of children in Nigeria, where we are from.

What it does

GIO is Logo for kids, in the browser, on any phone, tablet or laptop.

  • Plain words in, real Logo out. A child says or types "draw a flower with 8 petals". GIO's AI helper writes real Logo with short comments, the turtle draws it step by step, and the child can read every line and change it. The AI is a bridge into the code, never a replacement for it.
  • Learning by debugging, as Papert intended. Error messages are written for children ("I don't know how to FORWRD. Did you mean FORWARD?"), and I'm stuck gives one hint at a time (Think, Look, Fix) without giving the answer away.
  • Two ages. Little Turtles (under 8) build with big blocks, with every message read aloud. Turtle Coders (8–12) type real Logo and see the same program live in Python and JavaScript. The Python runs for real in the browser.
  • A path to keep going. 180 quests on 30 stages are checked automatically by comparing the drawing itself. Gio's Adventure is a game played with code: seven worlds, 80 levels, bosses and friends to rescue.
  • Making things. Games with keys and a game clock, music with PLAY, flipbook movies, colouring pages, a daily puzzle, WhatsApp stickers, and share links.
  • For every child. English, Nigerian Pidgin, French and Spanish, including the Logo command words themselves (AVANCE 100 in French). It installs on a phone and works offline. There are no accounts.
  • Safe by design. The AI can only ever produce Logo, which GIO's own interpreter parses and test-runs before a child sees it. It never runs AI-written JavaScript. Every request passes a kid-safe filter first, and if the safety check can't run, the helper waits instead of guessing.

The maths hiding in the turtle

Papert called Logo a Mathland: a place where children learn geometry by walking it. The first big idea a child discovers is the total turtle trip theorem. To draw any closed shape and end up facing the way you started, the turtle turns $360^\circ$ in total. So a regular polygon with $n$ sides needs a turn of

$$\theta = \frac{360^\circ}{n}, \qquad \text{for example } n = 5 \Rightarrow \theta = 72^\circ$$

which a child writes as REPEAT 5 [FD 100 RT 72]. GIO's property-based tests check this very fact: for any $n$ and any side length, the turtle comes home.

How we built it

We built GIO in the Kiro IDE. We wrote steering for the rules that never bend (real Logo at the centre, AI output is only ever Logo, no secrets in the repo, phones first), and hooks that run the tests and lint as we work.

Every big feature went through a Kiro workflow: a planner agent wrote the plan with acceptance criteria, a coder agent built it one item at a time in its own git worktree, and reviewer agents checked each item before it was merged. The records of those runs are in .kiro/specs/, and docs/kiro-usage.md tells the full story.

The core is a Logo interpreter written from scratch in TypeScript with no browser APIs, so the server can test-run every AI answer with the same code the browser uses. The AI is Qwen3 Coder on Amazon Bedrock. The app is React and Node on AWS (API Gateway, EC2, Systems Manager). Real Python runs through Pyodide in a sandboxed iframe. Over 2,100 tests back it up, including property-based tests of turtle geometry, along with browser checks that drive headless Edge across phones and tablets in both orientations.

Challenges we ran into

  • Making AI safe for children. The AI writes Logo, not JavaScript, so it can never run arbitrary code. Each answer is parsed, run and bounds-checked, and gets one chance to fix itself with GIO's exact error message. A local blocklist and an AI safety check run in front of it, and the check fails closed.
  • Letting the AI teach us the language. Asking for real games exposed gaps: kids write >=, name procedures DRAW-CIRCLE, and put ! in messages. Each gap became a language fix or a clearer message rather than a workaround.
  • Proving the Python is real. A script runs translated programs in real CPython and checks that they end in the same place as GIO's turtle, including FILL, which Python's turtle doesn't have.
  • Cheap phones and patchy data. We wrote the offline service worker by hand, set a size budget, and load each language only when a child picks it. That took the main script from 1,061 kB to 603 kB.
  • Translating a programming language. In French and Spanish, the command words, error messages and read-aloud voice all had to change, not just the buttons.

Accomplishments that we're proud of

  • A child who can't read yet can make a drawing in Little Turtles by talking to Gio and listening to it.
  • Every AI answer is real Logo that a child can read, and GIO checks it before showing it.
  • The same program is shown as Logo, Python and JavaScript, and the Python runs for real.
  • It works offline on a low-cost phone, in four languages, with no accounts.

What we learned

  • Spec-first runs gave fewer surprises than asking for a whole feature at once. Small feature items with written acceptance criteria were easy to check.
  • "Done" means the checks pass, in a real browser on a real screen size. Screenshots caught layout bugs that no test could.
  • Live AI testing is the best tester a language has.

What's next

Classrooms with class codes and no accounts, maths units through the turtle (Papert's Mathland), story adventures, the AI helper and voice in Pidgin, French and Spanish, and more Nigerian languages (Yoruba, Hausa, Igbo) as native speakers volunteer.

Built With

Share this project:

Updates

Submission history