Session 14 · Thursday 29 October 2026

Case study: AeroAI

How I applied the ideas from this class to build AeroAI, a course companion for 16.100

16.S893AI Agents for Engineering Research

The rest of the term

Tue 3 Nov
Thu 5 Nov
In-class clinics
Thu 19 Nov
Tue 24 Nov
Tue 1 Dec
Thu 3 Dec
Final presentations. Four students a day, 15 minutes each
Fri 4 Dec, 5 pmFinal portfolio freeze: a tagged commit on your git repo
Week of 7 DecOne-on-one discussions. The sign-up will go out soon

Sign up for a presentation slot in the sign-up sheet, or scan the code. If you present early, you have less finished work to show, but more time afterwards to clean up your repo, website and dev log.

Today

  • How I built AeroAI, the tutor for 16.100
  • What I learned along the way
  • What happened once students started using it
A Concepts chat on the left. The tutor says it has opened step 2 of a lecture scene and asks the student to predict, before dragging the camber slider, whether the lift line tilts or slides. On the right, the Thin Airfoil Theory scene with angle-of-attack and camber sliders. Under the chat, a note that course staff can read chats and that usernames are anonymous.
How a reply is made. The student's message is checked against daily limits. AeroAI's code builds the context. The tutor, Claude Sonnet 5.5, writes the reply or asks for a tool: a section of the notes, a lecture scene, the advisor (Claude Opus 5.5, up to 3 per chat), or a move to a problem. The leak check, Claude Haiku 5.5, reads the reply against the solutions. If it is clean, the reply is shown. If it leaks, the tutor writes it again, told what leaked, and a second leak gets a fixed reply. Alongside, a brain-map tagger, Claude Haiku 5.5, reads the student's words and logs what they show.
Part 01

Building it with agents

The top of the plan, 16.100 AI Tutor Implementation Plan, 1 October 2026. Overview: build a Socratic AI tutor for 16.100 on the instructor's office Mac mini and pilot it with a few students on 3 and 4 October. Students log in with an emailed link, pick Homework help or Concepts, and chat with a tutor that never gives answers to assigned problems. For the coding agent: build in the order of the Milestones section; anything listed under Open items is unconfirmed, ask the instructor instead of guessing; keep the app small, readable and free of a frontend build step.

Decisions from the grill session

DecisionWhy
Never give the answerStudents learn by working the problem themselves
Call the model from the server onlyThe browser never holds the API key, the prompts or the solutions
Check replies in Concepts mode tooThe tutor can still solve a homework problem in disguise
Show each reply whole, not streamedA cheaper model checks the full reply before the student sees it
Give students made-up namesStudent privacy. Staff see only the made-up name
Cap the spending each dayA bug or an attack cannot run up the bill
Task AI-10, the leak checker. Acceptance criteria, all checked: returns parsed verdict and usage (FakeParley tests); uses the chosen solution in Homework and the active problem-set solutions in Concepts (test); invalid checker output is treated as a leak (test). Definition of done: one atomic git commit AI-id: title on main; uv run pytest passes.
The library review site, rearranged for the slide. On top, the converted equation, colored by physical role: pressure forces over shear forces, down to the Reynolds number. Below it, the same equation cropped from the source PDF. At the bottom, buttons for Approve (A), Needs fix (F) and Back to pending.
The brain map for a new student. Concept names sit as open circles just outside a brain outline: velocity field, pressure, mass conservation, Bernoulli's equation, camber line model. A side panel explains that an idea moves inside the brain when the student explains it in their own words, that open circles are ideas they are ready to learn next, and that a mix-up shows as a red link.
How the brain map reaches the tutor. The student writes a message in any chat. The tagger, Claude Haiku 5.5, reads the message and the tutor's last reply, and tags what the student explained, was confused about, or holds wrong. These are saved as events in the app's SQLite database, one row per event with details as JSON, never edited; the map is rebuilt from these rows. When a new chat starts, the app writes a short note: what the student knows, is ready to learn next, and may hold wrong. The note is added to the first message, not to the system prompt, which stays the same for every student and so stays cached. The note is fixed for the whole chat. The tutor, Claude Sonnet 5.5, reads it and explains new ideas through ones the student already knows.
Part 02

What I learned along the way

In September I knew nothing about running a server, getting it a certificate, or JavaScript and WebGL.

I still do not know them well. I learned just enough to ask the agent for useful things. Before, I would not have even known the words to use.

A vortex filament

The tutor never makes up a scene on the fly. It opens only scenes I built and checked for the course: mit.edu/~prash/16.100

An aircraft roll

Part 03

Once students started using it

Bar chart of judge scores from 1 to 5, Sonnet 5.5 against GPT Luna 6. Physics correct: 4.56 and 4.58. Asks, does not tell: 4.05 and 3.40. Helpful and clear: 4.49 and 3.23. Course notation: 4.22 and 4.01. Side table for 40 replies, each pair judged twice: preferred 32 to 5 with 3 ties; gave the answer 0 and 2; cost per message $0.039 and $0.001; reply time 12.7 s and 8.4 s.
Two bar charts. Option 1, a bigger model: clean drafts flagged as leaks, Haiku 5.5 (live) 39 of 40, Sonnet 5.5 0 of 80, Opus 5.5 2 of 80; in both, Opus gave its verdict in the wrong format, which fails the check and counts as a leak. Option 2, the same Haiku with better context: 76 of 128 flagged when it saw only the draft and the student's last 3 messages, 2 of 80 when it also saw the tutor's earlier replies; true leaks still caught, 65 of 65.

Ideas from this class that I used in AeroAI

ConfigureThe plan and the agent’s rules, from a long grill-with-docs session
Skillssvg-figs draws diagrams for me to review; cold-read keeps the text plain
Break into tasksThe plan split into Backlog.md tasks, each with acceptance criteria
ContainThe tutor has no shell, only a few fixed tools. No message can run a program
VerifyTDD for each task, and replays of real chats
ReproduceCommits name the task they belong to
BudgetA daily cap, and better context before a bigger model
DelegateAgents wrote the code; I kept the teaching rules and the prompts
Throw awayThe review sites. They stay in git history if I ever need them
By Thursday 5 November

Reminder

  • Run /walkthrough on the last feature, and share the output on your website. Feel free to edit the walkthrough tool to suit your project
  • Write a dev-log paragraph that identifies your core contribution, one part you do not yet know how to check, and how you plan to check it
Also
Back to course home