Instructor Notes

Format


The lesson was piloted at the ML Marathon 2026 at UW–Madison as a 2-hour evening session. Chris Endemann, Tracy Reuter, and Tejvir Mann wrote and taught it; Zekai Otles contributed the dev container setup. The first eight episodes are the teaching blocks in order; the ninth, research and outlook, is the close.

Say at the start that the slides cover the main points only. The full lesson is online and stays online, so nobody needs to take notes on the details.

Time required


The full lesson takes 3.5 to 4 hours with all exercises. The September 2026 pilot ran it as a 2-hour evening session and overran: the planning block alone has 25 minutes of exercises in a 15-minute slot, and the verification block lost its second exercise. Plan a half day, or use the 2-hour cut list below.

Suggested half-day schedule (3.5 hours)


Five exercises plus two demos, two breaks. Everything runs on the participants’ own repositories where possible. The pilot split blocks among three presenters (intro, trust, getting started, and close; what agentic coding is and planning; safety and prompting), which is a workable division for any team of three.

Time Min Block Episode
0:00 15 What is agentic coding. Before we start (any access requests to file now); three principles; definition, spectrum, harness, loop; choice of tool Episode 1
0:15 35 Safety and security. Policies; what an agent can and cannot do; prompt injection; the six controls (network allowlist demo, 2 min); providers and models (Episode 3 compressed); Exercise: Get your agent running, safely (8 min) Episodes 2–3
0:50 40 Planning with agents. Research on planning; add context; Exercise: Agree how your team will collaborate (10 min); MVP; Exercise: Plan your MVP with an agent (15 min) Episode 4
1:30 10 Break —
1:40 35 Feature-based development and good prompting. Not a magic wand; feature by feature; bad/better prompt; a bad prompt does not return random results; Exercise: Implement feature 1 (15 min) and debrief; maintenance tasks Episode 5
2:15 40 Verification and testing. Research on checking; the pull request as the final check; review postures; the review routine; Exercise 1: Test the feature you just built (10 min); test-driven development; tests for good data science practice; agents as data scientists; Exercise 2 (optional): What is wrong with this? (5 min) Episode 6
2:55 10 Break —
3:05 20 MCP tools and skills. MCP vs API; Demo: connect an MCP server (5 min); what a skill is; Demo: caveman skill (5 min); hooks and when to codify; resources Episode 7
3:25 10 Cost, context, and energy. Energy numbers; token techniques with /cost, /model, /compact demos; Exercise: What did this session cost? (5 min) Episode 8
3:35 10 Close. Is programming dead? (neighbor discussion, then the argument); three things before your next sprint; feedback Episode 9

Cutting to 2 hours


If only two hours are available, keep the exercises that produce artifacts the participants will reuse (a running agent, plan.md, feature 1, its tests) and move the rest out of the room:

  • Assign the team-conventions exercise as homework announced at the start; teams commit CONTRIBUTING.md before the next session.
  • Cap the MVP exercise at 10 minutes; prep.md becomes homework.
  • Shorten the feature-1 exercise to 10 minutes (stop at “read the diff”).
  • Skip the optional brain-decoding exercise and the test-driven-development section (point to the episode).
  • Turn the MCP connect into a narrated demo from the instructor’s screen; keep the caveman demo, which is fast.
  • Compress trust to two incidents and the provider table; the episode covers the rest.

Block-by-block notes


Before we start. If participants need access to a campus-hosted model or compute (the pilot used BadgerBrain, UW–Madison’s hosted open-weight models), put the request link on the first slide: approvals take days, so file tonight to have it for the next working session. Announce the next working session (time, place, who will be there) and that participants should bring what they build tonight.

Intro. Callback to the mech suit from kickoff: the suit multiplies what the pilot can do, but the pilot is still steering, which is the driver’s-seat principle. Ask “anyone want to share something impressive their agent did?” as an opener. Point out the setup page has free routes (Copilot education tier, OpenCode) for anyone whose credits didn’t work.

Safety. Prompt injection first (the Nx incident makes it concrete), then signpost the six controls in order — “injection was the threat; these six cap what it can do” — and say that an instruction file asks while everything else removes the ability. The PocketOS and Cursor CVE incidents illustrate the “instructions vs. permissions” distinction. The network-allowlist demo is two minutes in the browser: edit a Claude Code cloud environment and show the four Network access levels (None / Trusted / Full / Custom with its Allowed domains list), then a repo’s Settings → Copilot → Cloud agent → Internet access. Note that the claude.ai capabilities page’s network-egress setting is for chat and Cowork code execution, not Claude Code environments, and that the Copilot page is visible only to repository admins on a paid plan. The point to make while clicking is that a blocked request is fixed by adding the host, not by switching the firewall off. The 1Password CLI slides are worth showing live if your institution provides it; the JupyterLab detail can be skimmed if time is short. For Get your agent running, safely: helpers circulate; the failure to watch for is a desktop app in local mode. Copilot’s app has an explicit plan mode, which is clearer to teach; on the Copilot web, planning is done via the prompt and gives the same approve-or-exit gate with no toggle, so it is acceptable for anyone who can’t install. Team repos: one shared repo, everyone on a branch named for them, branches not forks; anyone without write access gets added as a collaborator now. Cloud sandboxes are usage-billed, so have people confirm their account works.

Trust (Episode 3) has no dedicated slot. Its headline content — vet the provider (the Claude/Copilot defaults table), and model weights are code — is the sixth limit in the safety block. Name two or three incidents (the fake OpenAI repo at #1 trending, the hallucinated huggingface-cli package, Replit) and point to the episode. Its provider-vetting exercise is a good at-home assignment.

Planning. Two exercises. Agree how your team will work together comes first: decide branches or forks, let the agent draft CONTRIBUTING.md on a branch named for the participant, cut it down to rules people will follow, merge it through a teammate-reviewed pull request (the first use of the rules just written), and post the link where advisors can see it. Agents open a pull request by default; point that out when it happens. Then MVP: acknowledge levels of planning. It is iterative, and a small task needs only a short plan. Have the team MVP plans open (the shared doc from kickoff if you have one) and frame the MVP as the baseline you compare new components against. The deliverable is a committed plan.md — no code until the plan is in; teams that finish early interrogate their pre-modeling steps into prep.md. Note the planning studies measured accuracy, not tokens; the token argument is a mechanism, not a measured result.

Feature-based dev. Open with “the agent is not a magic wand”: the frustration people arrive with comes from whole-project prompts, and the remedy is a domain expert in the loop driving one feature at a time. The “list every choice you made that I did not specify” line is the key step of the exercise: ask two or three people to read theirs out. Participants reliably discover that everyone got different unaccounted decisions.

Verification. Open with the research figures and Faros AI’s explanation (larger pull requests, code that reads well but is often wrong), then the pull request as the final human check: it is where verification happens, and review by eye does not scale, so the rest of the block supplies the tests and checks. Then the before-and-after-every-feature routine: ask for assumptions, ask for tests and edge cases, run them, commit. Exercise 1: Test the feature you just built applies it to feature 1 from before the break; insist on plan mode for the first prompt, and timebox. The CI workflow and branch protection can be completed after the session. Close the block with the five test prompts for good data science practice and the agents-as-data- scientists prompt. The brain-decoding leakage exercise was cut from the live workshop for time; it remains in the episode as an optional exercise and works well as homework, or as the example when a team’s project has repeated units (subject, camera burst, page, source document).

MCP and skills. Pre-test the MCP server and the caveman install beforehand so auth and npm aren’t what the room watches. Run claude mcp list before and after. For the caveman demo, ask the same question before and after /caveman, and cat the state file to prove it’s toggled. Note for VS Code extension users: the same two install commands work; reload the chat panel afterward.

Cost and energy. Give the numbers first. State the spread plainly (Couch ~41 Wh, Hausfather ~600 Wh). Three live demos in order: /cost, /model, /compact; then pull up the OpenRouter session-cost rankings. Loop back to skills as a cost lever.

Close. Put the question to the room first (discuss with a neighbor, then share) before giving the answer: agentic coding is another abstraction layer, like assembly to Python, but a non-deterministic one. The craft is making it deterministic enough through specification and verification without spending more time prompting than coding would take; at the feature level the gains are substantial, and they scale with expertise. Agents amplify expertise; they are not a magic wand (a callback to the feature-based block). The Anthropic skill-formation result (17% lower, biggest gap in debugging) is the caution to leave people with: use the agent to ask why. Feedback survey and materials link; note the lesson will keep changing through the fall.

Logistics that matter


  • Agent access is the #1 failure mode. Have helpers confirm during arrival that every participant can start a cloud session in some tool. Provide a fallback (cloud credits, OpenCode with free models, or pairing participants).
  • Participants need a repository, with write access. The exercises assume one shared project repo with everyone on their own branch. Have a small starter repo ready for anyone without one, and get collaborators added before the session.
  • Pre-run every demo — the MCP connection, the caveman install, /compact on a long session — on the same network you’ll present from.
  • Keys off disk. If any exercise calls a hosted model API, show the op read pattern rather than handing out a .env.

Teaching tips


  • Keep the emphasis on principles over tools. When a participant uses a different tool, translate rather than troubleshoot (“what’s the plan-mode equivalent in yours?”).
  • Recurring motifs worth calling back to explicitly: stay in the driver’s seat, instructions shape behavior, permissions constrain it, a feature is one thing you can check, plausible-but-wrong beats broken as the dangerous failure mode, autonomy is purchased with verification, and vague prompts cost quality, money, and energy — the same discipline pays three times.
  • Participants who are experienced ML practitioners sometimes bristle at the “no escaping good data science” framing as obvious. Agree with them — then point out the METR result: experienced developers felt faster while being slower. Obvious discipline is exactly what erodes under speed.

What Is Agentic Coding?


Safety and Security: Limit What the Agent Can Access


Trust: Packages, Models, and Providers


Planning with Agents


Feature-Based Development and Good Prompting


Verification and Testing: No Escaping Good Data Science


MCP Tools and Skills: Extending Your Agent


Cost, Context, and Energy


What the Research Shows, and Where This Leaves Us