Building personal agents: a graduate course
A fourteen-week course built on the book: one unit a week on a real, open system, with primary readings, five cumulative laboratories, five problem sets, a staged project and a written examination. It can be taught, or followed alone.
Not yet taught. This is the design of a course, complete enough to follow alone or to teach from. No class has taken it, no problem set has been marked, and the times given for the work are estimates. It will be corrected by the first people who try it, and their corrections are wanted.
What the course is about
A personal agent is a program that holds a person's accounts and acts for them: it reads their mail, keeps their calendar, files into their records, speaks first when something needs them, and asks before anything that cannot be undone. Building one that works on a good day takes a weekend. Building one that a person can leave running with their accounts takes most of what computer science knows about protection, reliability, measurement and the design of things people must supervise, applied to a component, the model, that none of those fields was written for.
The course teaches that application. Its subject is not models. It is everything around one: the loop, the state, the gate between what a model asks for and what happens, the treatment of words other people wrote, and the instruments that tell you whether any of it works. It is taught on one real system whose every mechanism is open, and whose every claim is marked with how it is known.
What you will be able to do
- Build an agent loop with tools, a journal and a conversation that can be stopped, and derive every figure it reports from the journal alone.
- State what an agent guarantees against any model, as a property argued from code, and keep that apart from what was measured over runs of one model.
- Design a gate: classify calls by effect, decide what runs, what asks and what is refused, write the questions, and enumerate what a model that has been taken over can still do.
- Reason about text from outside as an information-flow problem, say precisely what a confinement mechanism does and does not stop, and test it without writing an attack.
- Give a model thousands of actions and other people's servers without giving up any earlier guarantee.
- Build an evaluation with a resettable, changing world; report scores with intervals over the right unit; compare two versions; calibrate a judge against a person; and say what a suite cannot show.
- Derive what an agent costs and choose designs by measured cost and quality together.
- Read the primary literature of these fields critically, and place a design against it.
- Carry out and write up a piece of original work whose main result another person can reproduce.
Who it is for, and what it assumes
Graduate students and working engineers. It assumes you can program comfortably in Python and read code you did not write; that you have used a language model through an interface for programmers; that you know enough probability and statistics to say what a confidence interval is and is not; and that you have met, in any course, the ideas of a process, a file, a network request and an access check. No background in machine learning is needed, and none is taught. A reader who has never written a proof will find the analysis problems hard at first; they ask for careful arguments from stated definitions, not for mathematics beyond sums and probabilities.
A check before starting: read Chapter 2 and do its review problems, then read the model and notation. If the first is comfortable and the second is readable with effort, the level is right.
How a unit works
Each chapter of the book is a unit, and every unit has the same parts in the same order.
- Objectives and a box giving the week, what comes before, what to read first, and the laboratory and problem set it belongs to.
- The problem, as a concrete situation, and the terms defined before they are used.
- The design and the mechanism, from the idea down to the code that runs, in the repository.
- The theory: the unit's claims stated in the course's common model, sorted into properties and measurements.
- What goes wrong and how to test it, with every claim about what was run graded by how it is known.
- Where this sits in the literature: what the cited work showed, where this design follows it, and where the published work is stronger.
- Problems, in five groups: review, analysis, design, reading and open.
The primary readings are part of the unit and not a supplement to it. One or two are assigned each week; the full list gives what each shows. For every assigned reading you write four hundred words before the class that discusses it: what it claims, why it matters to that week's design, where you were not convinced, and what you would measure or build next. These are written alone and without any tool that writes for you, because their purpose is to find out what you think.
Schedule
Each unit's own box names the reading to do before it, which is sometimes a third work beside the two discussed. A week is about three hours of class and twelve of work outside it.
Assessment
| Part | Share | What it is |
|---|---|---|
| Laboratories | 30 | Five, cumulative. Public tests, tests you have not seen, a short report, and questions in person about your own code. |
| Project | 30 | Proposal 3, progress report 5, talk 7, paper and artifact 15. |
| Problem sets | 20 | Five. Arguments and calculations from the model, design critiques, one measured answer each. |
| Reading responses | 10 | One for each assigned reading, marked for whether it engages with the work and is right about what the work says. |
| Examination | 10 | Three hours on paper. A quarter of it is about your own laboratory code. |
Rules
- Working together
- Discuss anything with anyone. Write up alone, in your own words, and name the people you worked with and every source you used. Laboratories are individual; the project may be done by up to three.
- Tools that write
- For code in laboratories and the project you may use any tool, and you say which and where. You must be able to explain, unaided and in person, every line you hand in; work you cannot explain earns nothing. For reading responses and for the analysis problems, no tool that writes or solves for you: their purpose is your own reasoning, and the examination will find out whether you did it.
- Results
- Every number you report has a sample size and a statement of what would make it wrong. Keep every run. Leaving out the runs that spoil a result, or adjusting any, is the one failure the course does not forgive.
- Attacks
- You will defeat defences, and only inside the simulated world or against accounts that are your own. Anything you find in a system other people use is reported to whoever maintains it, privately, before it is discussed anywhere.
- Other people's information
- Nothing from a real mailbox, calendar or customer record goes into any test, report or repository. Every name in what you hand in is invented.
- Late work
- Five days of grace across the term, spent as you like, at most two on any one piece, none on the paper.
Following it alone
Everything needed is on this site and in the repository. Without a class, three things replace what a class provides. Find one other person doing the same and exchange work: you cannot write the tests you have not thought of for your own gate, and you cannot be asked the question you are avoiding by yourself. Write the reading responses anyway, and reread them at the end. And treat the examination's fourth section honestly: open your own laboratory code a month after you wrote it and explain each function aloud.
What this course does not cover
How models are trained or work inside. Agents that write software, which have their own literature and tools. Systems of many agents negotiating with each other. Voice assistants that must answer within a breath. Law and regulation, beyond the consent and privacy rules above. Each would be a course of its own, and the readings point to where they begin.