Agentic Software Engineering · Syllabus

Syllabus

Last updated 2026-10-12

English is the first teaching language. By the end of the course you can deliver changes in a real codebase with a coding agent, confirm that the agent got them right, and explain and modify your own work without an agent.

The course follows the public Fall 2026 calendar of Stanford CS146S in its topics, their order and the position of its deadlines, and adds three things: two weeks on verification (weeks 7 and 10), a project defense, and one decision line at the end of every assignment (accept, narrow, recheck or stop) with the evidence behind it. That course's assignment repository carries no licence, so only its public structure is followed: every assignment, lecture note and rubric here is written for this course, and no text is copied.

Course pages, lecture materials and rubrics are being rearranged to this calendar. Where another page still describes the earlier fourteen-week layout, this syllabus takes precedence.

Overview

How the course is designed

  1. Verification first: every example shows both the generating step and the verifying step. No lecture shows "let the agent finish it".
  2. Individual AI-off evidence is a pass condition: two in-class checkpoints and the defense carry 30 marks, and a student below half of them does not pass.
  3. Marked on engineering evidence: the project and the contributions are marked on the specification, instruction file, gates, tests, evaluation and your own verification, not on how the interface looks or how many features there are.
  4. Contributions do not depend on luck: a mark never depends on whether a maintainer replies; where a repository has no partner contact, a teaching assistant gives an acceptance review.

Learning outcomes

Outcomes in teaching and individual assessment

LOTeaching introductionPractice and applicationIndividual assessment evidence
LO1Week 1: the internals of coding agentsA1CP1; defense
LO2Weeks 2-4,9: context engineering, skills, customizing the agent and repository, background agentsA2, A3, A4; projectDefense
LO3Week 2: spec-driven developmentProject proposal and technical specificationDefense
LO4Week 5: agent-ready codebasesA4, A5; contributionsCP1
LO5Weeks 6-7: agentic code review and tests that notice a faultA5; contributions; final projectCP1; CP2
LO6Week 10: evaluating agentsA6; final projectDefense
LO7Week 8: securityContributions; final projectCP2
LO8Week 11: building an AI-native teamFinal projectCP2; defense
LO9Weeks 1-12: every teaching weekThe decision line on every assignment; contributionsDefense

Calendar

WeekTopicFirst session (lecture)Second sessionDue
1The internals of coding agentsBuild a minimal agent live, then read a real agent's requests: system prompt, tool list, loop and stop.Studio: capture and read your own session.A1
2Advanced context engineeringPrompting, research–plan–implement workflows and spec-driven development; MCP and tool design for a model reader.Studio or guest; contribution projects introduced.A2; project proposal
3Agent skills and the CLIWhat a skill encodes; trigger tests and near misses; working from the command line.Guest or studio.A3
4Customizing your agent and repositoryInstruction files, hooks as gates, subagent roles.Guest or studio.Contribution 1; project technical specification
5Agent-ready codebasesStructure, documentation, tests and checks that let an agent work; scoring readiness.Guest or studio.A4
6Agentic code reviewWhat model review catches, misses and invents; disposing of each finding.CP1 (30 minutes, on paper), then guest or studio.A5; CP1
7Tests that notice a faultA surviving mutant is a gap in the tests; a property and its shrunk counterexample; an agent that weakens a test to pass it.Studio on your project's tests.Project alpha and task backlog
8SecurityText as data or as authority; an inert local injection chain; scan, triage and reproduce.Guest or studio.Contribution 2
9Background agentsAsynchronous and parallel agents; issue-to-pull-request pipelines; what changes when nobody is watching.Guest or studio.Contribution 3
10Evaluating agentsCan the check fail, was the pass earned, is the denominator complete; pass@k on a small table; calibrating a model judge.Studio: audit one instance.A6
11Building an AI-native teamPortals, gateways, routing and cost; recovering from an incident and proving it with a regression.CP2 (30 minutes, on paper), then guest or studio.CP2
12The software factory and what comes nextSelf-running pipelines as a claim to test; course review.Defense walkthrough; studio.Contribution 4; final project
13Assessment weekProject expo.Individual defenses.—

Weeks 7 and 10 are this course's additions. The deadline for work due in a week is Sunday 23:59 of that week.

Assessment

ComponentMarksWhenAI
Term project: four milestones20Weeks 2, 4, 7 and 12allowed
Project defense15Week 13off
Four open-source contributions30Weeks 4, 8, 9 and 12allowed
Six assignments15Weeks 1-3, 5, 6 and 10allowed
CP1: AI-off diagnosis, test and repair7.5Week 6off
CP2: AI-off review of unfamiliar code and recovery reasoning7.5Week 11off
Participation: guest questions, studio, expo5All term—

Passing requires at least 60/100 overall and at least 15/30 across CP1, CP2 and the defense. There are no bonus marks. An assessment not yet taken stays missing; it is not scored as zero.

For each of CP1, CP2 and the defense, a student who first scores below half may take one equivalent resit with the same learning outcomes, duration and difficulty after feedback. The effective mark is the higher of the two, and a resit can replace the original with at most half of the item's maximum. Both the original record and the resit record are kept. A sitting that was validly passed cannot be retaken to raise the mark. A sitting voided by a technical failure or an approved accommodation is replaced by an equivalent sitting and does not use up the resit.

Assignments

Six assignments are worth 2.5 marks each. Each one hands in the work, the verification result and a short explanation, and ends with one decision line and the evidence behind it. Note your AI use once. Assignments are marked on completion and evidence; there are no hidden tests.

AssignmentWeekWhat you doLO
A11Capture one real coding-agent session with a forced failure; label each behaviour as observed or inferred.LO1
A22Build a small MCP tool server; graded on whether a model can pick the right tool, call it correctly and recover. No third-party sign-in is required.LO2
A33Write one skill for a workflow you first ran by hand; test that it triggers on the right requests and stays quiet on a near miss.LO2
A45Make a messy repository agent-ready: instruction file, a hook that blocks a bad commit, structure and checks.LO2, LO4
A56Score a repository's agent readiness with observable anchors and report what would change the score.LO4, LO5
A610Audit one evaluation instance and its scorer; state what the results do and do not support.LO6

Term project

One or two people, on a topic of your choice: build working software from scratch with agents. A two-person project has a correspondingly larger scope, and the two defenses are separate.

MilestoneWeekContentMarks
Proposal2What it is, who it is for, the core scenario, and the agent's role in development.2
Technical specification4A design document: requirements, key decisions with a rejected alternative each, interfaces and data models, test strategy, what is out of scope.4
Alpha and task backlog7One minimal path that runs end to end; the repository already has an instruction file and one hook gate; a backlog of remaining tasks.6
Final12Working software; tests with their mutation result; one evaluation script; the disposition of a security scan; a README.8
Defense13Fifteen minutes each, no devices: the examiner changes one thing or plants one fault in your own code, and you locate it, explain it and decide what to do.15

Marks go to engineering evidence only. Any topic is allowed, but a project with an interface and features and no specification, gate, tests or evaluation earns no milestone marks. The two members of a pair share the marks for the proposal, specification, alpha and final; the defense is marked individually. The expo is held in week 13 before the defenses and counts towards participation.

Open-source contributions

ContributionWeekRepositoryMarks
14First5
28First10
39Second5
412Second10

Workload and participation

There is no hour budget. Weekly time estimates are published after a timed human pilot and include out-of-class cost honestly; required content is not cut to fit a total.

The second session each week is offered to a practitioner for at most 45 minutes, invited for that week's topic, with no product pitch and with sources for any numbers. Write one question beforehand. The course runs with however many guests can come; the number is not yet confirmed. Participation marks cover guest questions, studio work and the expo.

Privacy, fairness and accessibility

Course repositories, prompts, session records and marking material carry no real credentials and no unrelated personal data. Submit only the smallest process record that shows your work, redacted first. Required materials and activities have keyboard-operable, captioned or text alternatives, and you may ask for equivalent time or an equivalent way of taking part; an accommodation keeps the same learning outcomes and the same attainable marks. Oral defenses use a shared rubric and comparable answering time, and a second calibrated marker reviews cases near a threshold, cases where markers disagree and cases a student asks to have reviewed. Course data is not used for teaching research; any later use needs ethics approval and your separate consent first.

Tools and model access

AI use and responsibility

The checkpoints and the defense are done alone. All other work may use an agent, noted once in the work. Authorship is never inferred from writing style; contradictory evidence goes to a human process.