Teach a machine, and see how AI thinks.
Code Trails teaches computers that follow exact steps. AI Trails teaches computers that learn from examples. Sort fruit with a robot, train a brain cell, watch a word machine guess, and learn when to trust AI and when to check it.
Your patches
Finish every lesson in a trail to earn its patch. Patches stay in this browser on this device.
AI doesn't know things. It guesses from patterns.
Every lab here shows that idea a different way. The better the examples, the better the guesses, and even good guesses can be wrong.
Six trails
See every lessonTrails, from sorting fruit to building agents
Little ones start with Spark and Teach the Robot, read aloud by a grown-up. Guardian is for everyone 12 and up. The Agent trail links back to Code Trails for the programming parts.
Gold Pass trails
Trainer, Wordsmith, Agent and Guardian show how AI really learns, how chat models build sentences, how AI agents plan and use tools, and how to keep AI fair and safe. The Next-Word Machine, Neuron Trainer, Word Map and Agent Simulator labs let you try each idea yourself.
They come with the Nuggie & Wormy Gold Pass. Explorers: ask a grown-up!
Labs
Teach the Robot
Ask: "Why did it guess that?" The robot looks at the closest examples. Add a wrong one and watch the colors shift.
Draw & Teach
How it works: your drawing is shrunk to a 16 × 16 grid of dots, then compared with every saved example. The closest examples vote.
Next-Word Machine
This tiny machine read the sentences below and counted which word follows which. It doesn't know what an owl is. It only knows "owl" was followed by "flew" twice and "said" once.
Big chat models do the same kind of guessing, with billions of examples and much smarter math. That's why they can sound right and still be wrong.
Neuron Trainer
Filled dots are practice data. Hollow dots are the quiz: the network never trains on them. When practice is perfect but the quiz is bad, it memorized instead of learned.
Word Map
"puppy − dog" leaves the direction for "baby animal." Add it to "cat" and you land near "kitten."
This map is hand-drawn with 2 directions so you can see the idea. Real models learn their maps from text, with hundreds or thousands of directions.
Agent Simulator
"Plan a Saturday picnic for 6 people near us."
A scripted agent with four pretend tools: weather, places, calendar and shop. Nothing here is real or online. Step through and watch how it thinks, acts and asks.
- Think → act → observe, then repeat. That loop is what makes it an agent.
- It treats what a web page says as information, not orders.
- It stops and asks before spending money.
75 years of teaching machines to learn
AI words, made small
Grown-ups corner
Offline and online
Offline: AI Trails is part of the Nuggie & Wormy Adventure Club at nuggie.nesohq.com. Open it once with internet and it opens again with no internet on that device. Spark, Detective, Teach the Robot and Draw & Teach are free; the other trails and labs come with the Gold Pass.
Online version: the same site, plus the Live AI Lab below. The lab only opens for the page's owner or an editor, after confirming they're an adult. Visitors on a shared link and kids never see it working.
Helping at home
- Play Teach the Robot together. Add a wrong example on purpose.
- Ask "How could it be wrong?" about any AI you meet.
- Make a family rule: we check important answers with a person or a trusted source.
- Keep personal details out of any AI tool.
A suggested path
| Age | Start with | Labs | Goal |
|---|---|---|---|
| 3–7 | Spark, read aloud | Teach the Robot | Machines learn from examples; examples can be wrong |
| 8–10 | Detective | Draw & Teach, Next-Word Machine | Patterns, chances, practice vs quiz |
| 11–13 | Trainer + Guardian | Neuron Trainer | How learning works; fairness |
| 14–16 | Wordsmith + Guardian | Word Map, Next-Word Machine | How chat models work and fail |
| 17+ | Agent, then Code Trails Engineer/Architect | Agent Simulator, Live AI Lab (adults) | Use, build and evaluate AI responsibly |
Live AI Lab
Checking whether the live lab can run here…
Practice what the Wordsmith trail teaches: the same task, asked two ways. Run both, compare, then ask for a fact-check list. Each run uses your own Claude account.
If you use an answer with a child, read it yourself first and put it in your own words.
With Code Trails
AI Trails teaches ideas; Code Trails teaches programming. The Agent trail points to the Code Trails lessons on APIs, async code and keeping secrets on the server, so the two sites never repeat each other.
Start over
Clears every lesson and patch in this browser.