KotlinCS 124 LogoJava
PrevIndexNext
Kotlin
Java
  • Working With Agents: Discuss Ideas, Not Implementations : 10/26/2026

  • Lambda Expressions : 10/23/2026

  • Anonymous Classes : 10/22/2026

  • Practice with Interfaces : 10/21/2026

  • Implementing Interfaces : 10/20/2026

  • Using Interfaces : 10/19/2026

  • Working with Exceptions : 10/16/2026

  • Throwing Exceptions : 10/15/2026

  • Catching Exceptions : 10/14/2026

  • References and Polymorphism : 10/13/2026

  • References : 10/12/2026

  • Data Modeling 2 : 10/09/2026

  • Equality and Object Copying : 10/08/2026

  • Polymorphism : 10/07/2026

  • Inheritance : 10/06/2026

  • Data Modeling 1 : 10/05/2026

  • Static : 10/02/2026

  • Encapsulation : 10/01/2026

  • Constructors : 09/30/2026

  • Objects, Continued : 09/29/2026

  • Introduction to Objects : 09/28/2026

  • Testing and Compilation : 09/25/2026

  • Practice with Collections : 09/24/2026

  • Maps and Sets : 09/23/2026

  • Lists and Type Parameters : 09/22/2026

  • Imports and Libraries : 09/21/2026

  • Multidimensional Arrays : 09/18/2026

  • Practice with Strings : 09/17/2026

  • null : 09/16/2026

  • Algorithms and Strings : 09/15/2026

  • Strings : 09/14/2026

  • Functions and Algorithms : 09/11/2026

  • Practice with Functions : 09/10/2026

  • More About Functions : 09/09/2026

  • Errors and Debugging : 09/08/2026

  • Functions : 09/04/2026

  • Practice with Loops and Algorithms : 09/03/2026

  • Algorithms : 09/02/2026

  • Loops : 09/01/2026

  • Arrays : 08/31/2026

  • Compound Conditionals : 08/28/2026

  • Conditional Expressions and Statements : 08/27/2026

  • Operations on Variables : 08/26/2026

  • Variables and Types : 08/25/2026

  • Welcome to CS 124 : 08/24/2026

Working With Agents: Discuss Ideas, Not Implementations

Discuss ideas, not implementations. Tell your agent what you want to happen and why, not how to build it. Say what done looks like, so you can both tell when it is. Then let it own the steps. It knows more ways to build it than you do. What it does not know is what you are trying to accomplish.

Why These Lessons, and Why Now
Why These Lessons, and Why Now

William Gibson once said that “the future is already here, it’s just not evenly distributed.” Working effectively with AI is the most important new computing skill that anybody can learn, and it is a piece of the future that has reached very few people so far. Andrej Karpathy’s rough estimate, from October 2026: about 75 percent of people have barely touched an AI model, and about 20 percent use one casually. About 20 million people, 0.2 percent, use frontier agents for code and math, and about 5,000 have internal access to frontier systems. By working on your project with Claude Code, you are already in that small group. These lessons are about getting good at it.

Up until now, we’ve let you learn this by practicing: working with your coding agent on your project. That’s a good way to get started. But as many of you have told us, it isn’t enough. Working with AI effectively is a skill, and it’s a skill that must be practiced with intention and taught.

The problem is that this skill is about a year old. We date the first coding models good enough to work this way to Claude Opus 4.5, released on November 24, 2025, almost exactly a year ago. People are still getting good at it, and nobody knows how to teach it yet. Classical programming has decades of teaching behind it. Collaborating with AI has almost none.

So these lessons draw on what I’ve learned doing a lot of this. In the last thirteen months I’ve sent Claude Code about 35,000 prompts in about 1,400 sessions, on more than 300 of those days: something like 1,500 hours of work, building and maintaining this course’s website and my other projects. Until there is much more formal teaching for working with these tools, which may take a decade, this is the best we can do.

Where the Principles Came From
Where the Principles Came From

We also did something that, I’m embarrassed to admit, took me a long time to think of. We asked the agent. In August I asked Claude what, from its side, makes a conversation with it go well. Then I said this:

I’m kind of embarrassed to say that I’ve never asked you that question. I used you for over a year before we had this conversation.

I wasn’t unusual. Last spring, CS 124 students almost never asked their agent how to work with it, and the typical prompt was about ten words long.

Claude’s answer became the principles for these eight lessons. We’ll go through them in this order:

  1. Discuss Ideas, Not Implementations, Monday 10/26
  2. Correct It, Out Loud, Early, Tuesday 10/27
  3. Validate What It Built, Monday 11/2
  4. Say What You Saw, Tuesday 11/3
  5. Ask What Would Change, Wednesday 11/11
  6. Find the Right Level, Wednesday 11/18
  7. Take Responsibility, Wednesday 12/2
  8. Keep Up With Your Agent, Monday 12/7

Each lesson gives you one way of working to practice, and your independent project is where you keep practicing it.

Your Judgment, Its Implementation
Your Judgment, Its Implementation

Two features of coding agents make them worth this effort, and sometimes make them hard to work with.

First, they know an incredible amount, and in particular they know an incredible amount about computing. Almost everything you’d want to build with them uses techniques they absolutely know how to do, and every new model can take on bigger tasks.

Second, they are trained to be very obedient. Think of one of the smartest people you could work with on a project, who is also incredibly quick, and who will tend to do exactly what you tell them to do. If you tell them to do something in a way that doesn’t work well, they will happily do it that way.

So part of your job is to stay out of their way. You’re a human being. You know things about the world, about other people, and about your own experience that these tools do not. That’s why you are doing an independent project. You’re building something you care about, that solves a problem you want to solve, and only you know when that problem is solved and what the best way to solve it is. The agent can do all sorts of incredible work on your behalf, but it can’t make those judgment calls. Those are yours. The best way to build something that works is to let the agent do as much as possible of what it’s good at, so that you can spend your time on what you’re good at.

How These Lessons Work
How These Lessons Work

This page has more text than the rest of the series, because it introduces it. From now on, the lesson itself happens in Claude Code, in your project folder. You copy one sentence from the lesson page and send it to Claude, and Claude walks you through a short tutorial we wrote. Each lesson has four steps. Each step ends with something you type in your own words, and Claude tells you as each step is recorded.

It’s your homework. Each lesson counts as that day’s homework. The homework is open for a period of time, and you need to do it during that time to get credit. If you do it late, it counts as one of your late homeworks. The time you spend also counts toward your project’s weekly hours, since you’re working in your project folder, where we already measure that time. So these are new lessons, but not a lot of new work.

How we know you did it. Claude reports each step to us as you go, and we read the session afterward. If you try to get Claude to pretend you finished steps you didn’t, you won’t receive credit, and we may treat it as an academic integrity violation. If something seems broken, ask on the forum, and we’ll look into it.

On quizzes. Quizzes will include multiple-choice questions about these principles. Later we’ll add a new type of free-response question, where an agent talks through a principle with you. We’ll introduce that on a practice quiz first, so you can try it before it counts.

Working Well With an Agent
Working Well With an Agent

A few things help in every lesson in this series:

You’ve already started on this lesson’s practice. At Pair Prompting on 10/13, your partner watched for whether you said what done looks like or told Claude how to get there. In this lesson you practice it on your own prompts, and Claude is the one watching.

Loading your lesson…

Your Conversation
Your Conversation

This is your own conversation with Claude from this lesson, just the part that counted as the lesson. Only you can see it. Come back to it when you’re reviewing for a quiz.

Loading your conversation...