Skip to course content
Machine Spirits
◆ Machine Spirits · Course · build-lab

Build Lab

Version control, interactive pages, agent-based models, test harnesses and AI tutors

Ongoing · University of Illinois Urbana-Champaign · 0 credits · 5 public materials

Five modules. One project. By the end you will have a small piece of research software that you understand, can defend, and can hand to someone else.

The project is a segregation model after Thomas Schelling. It is small enough to build in an afternoon and rich enough to teach the whole toolchain. Each module adds one layer.

The five modules

Module You will make The skill underneath
1. Version control with git A repository with a readable history, local and on GitHub Checkpoints, diffs, branches, and the habit of committing before asking an assistant for anything
2. Building interactive web pages One HTML file with a slider, a canvas and a loop HTML, CSS and JavaScript as three jobs; serving a page locally; reading the browser console
3. Interactive simulations: agent-based models The Schelling model, with the model in its own file and the page as a view Agents, rules, emergence; seeded randomness; separating model from display
4. A test harness for vibe-coded applications Fourteen checks that run in seconds, and a browser smoke test Invariants, boundaries, determinism, metamorphic relations, property tests; what to ask an assistant for and what to refuse
5. Strategies for building an AI tutor chatbot A system prompt, a grounded tutor, a tiny server, and an evaluation set Scaffolding, grounding in state, multiple voices, evaluation, and the key that never enters the page

How to use these modules

Each module has a hands-on section with commands you can paste, an exercise, and a short reading list. Do them in order. Module 3 embeds the finished simulation so you can compare your version with the reference. The reference code lives in this site’s artifacts folder and is linked from modules 3 and 4.

You can work with any AI coding assistant. The modules assume you will, and they say at each step what to ask for, what to check, and what to keep for yourself. The short version: commit first, read the diff, run the tests, and keep the secrets out of the repository.

What you need

Learning objectives

Course materials

Lecture notes and workshop materials from this course.

  1. Module 1: Version control with git
  2. Module 2: Building interactive web pages
  3. Module 3: Interactive simulations, agent-based models
  4. Module 4: A test harness for vibe-coded applications
  5. Module 5: Strategies for building an AI tutor chatbot

Enrolled in this course? Open the dashboard →