The slides for a CS50 lecture on agentic software engineering, and everything that ran during it: a live demo in which an agent turns Week 1's mario.c into a playable game under a PS4 controller, a hub that let the room vote and follow along from their phones, and a finale in which the CS50 duck walks Harvard Yard and battles a monster that speaks in AI slop. The examples come from CS50 Finance and CS50 Mario, so if you have finished Problem Set 9 you can read all of them.
Download the PDF from the latest release: the-agentic-software-engineer.pdf. It is rebuilt from main on every change. The interactive parts, the demo, the voting and the finale, only exist in the running deck, which is what the rest of this page is about.
You need Node.js 22.12 or newer and pnpm 11.
git clone https://github.com/cs50/agentic-demo.git
cd agentic-demo
pnpm install
pnpm devThe deck opens at http://localhost:3030.
| Key | Does |
|---|---|
→ / ← |
Next and previous step. Every visualization is driven by →, so you never need a mouse. |
o |
Overview of all slides |
p |
Presenter view, with the notes for each slide |
f |
Fullscreen |
Hovering a line, a label or a card on a visualization usually shows more. The slide notes (in the presenter view) are what was said in the room.
On slide 53 the game appears with two things missing: gravity, and the level. Both are added by editing two files while the deck runs:
demo/mario/physics.ts: makeapplyGravity()pull the duck down. The solution is 0.8 pixels per frame², capped at 16.demo/mario/level.ts: return the rows of a level,#for a block. The solution is the Week 1 pyramid as a loop inside a loop.
Save and the game changes under the duck, no reload. Press → on the slide to open the code beside the game; Edit turns the panel into an editor, or use any editor you like. A file that doesn't compile keeps the previous version and shows the error. pnpm demo solve writes the finished versions in; pnpm demo reset puts the starting ones back.
Play with a PS4 controller (press a button once so the browser sees it) or click the game and use the arrows, A/D and Space.
The last slide before the end is the game in Harvard Yard. Arrow keys or W A S D to walk, Space or Enter to talk to people and to confirm. Walk to the Science Center to challenge the Gym; each of Sloppyclaude's moves comes with a question from the lecture, and with no room connected you answer it yourself: ↑ ↓ to pick, then Space. Ten right answers win.
In the lecture, phones joined a hub to vote and to follow the slides. The hub is one small Node process in server/, and you can run it on your laptop for a room on the same wifi. Nothing needs an account anywhere.
- Copy
.env.exampleto.env.localand setVITE_HUB_URLto your laptop's address on the wifi, for examplews://192.168.1.20:8080, andPRESENTER_TOKENto any string. (ipconfig getifaddr en0on macOS orhostname -Ion Linux gives the address;ws://localhost:8080is fine when you are alone.) pnpm hubstarts the hub on port 8080.pnpm devstarts the deck, which connects as the presenter. Slide 2 shows a QR code and a live count of who has joined.- On a phone, open
http://192.168.1.20:8080/join(your address) to vote, orpnpm buildfirst and then openhttp://192.168.1.20:8080on the phone to follow the slides as they move.
If slide 2 says presenter token rejected, the deck and the hub disagree on the token; restart pnpm dev after editing .env.local.
| Command | Does |
|---|---|
pnpm dev |
The deck at http://localhost:3030 |
pnpm hub |
The audience hub on port 8080 |
pnpm build |
Builds the deck into dist/, which the hub serves |
pnpm export |
The PDF, as slides-export.pdf |
pnpm test |
The tests |
pnpm demo status / reset / solve |
The live demo's two files: where they are, back to the start, or finished |
- How the deck is built: the design, each visualization, the live demo's rules, the hub's protocol, the finale, and a map of every file.
- Presenting and maintaining: the checklist for giving the lecture, conventions for changing the deck, and how the CS50 copy is hosted.
- SECURITY.md for anything about the hub's security.
The code is MIT; the lecture content (slides and notes, the Prompt Index, the finale's questions and dialogue, the artwork) is CC BY-NC-SA 4.0, as CS50's course materials are. Details in LICENSE.