CS 378: Building AI Agents - Spring 2027

Class Meetings

Monday / Wednesday 3:00pm - 4:30pm
GDC 5.302

Professor

Shirley Cohen
scohen at cs dot utexas dot edu

Teaching Assistants

TBD

Office Hours

TBD

Course Description

An agent is a model with a harness around it. The harness is the loop, tools, memory and checks that turn a component that is sometimes wrong into software you can ship. The model is the one part you don't control, and it has two limits the harness has to cover for. It makes mistakes, so the harness has to catch what it can't prevent. It also knows nothing beyond its training data, so the harness has to hand it the knowledge each question needs, ranked and restricted to what the asker is allowed to see. This course is about the engineering that covers for those two limits.

Topics:

Learning Outcomes

By the end of this course, students will be able to:

Prerequisites

CS 439 (Principles of Computer Systems) or equivalent, and working SQL. No prior machine-learning coursework is required.

Required Reading

Course Communication Tools
We will be using the following tools throughout the term: Tech Stack
Our primary tech stack will consist of the following: Our development infrastructure consists of the following tools: Google Cloud Credits and Costs

Each student will receive $50 in Google Cloud credits for the semester through Google's credits-for-teaching program, applied to your Google Cloud project. The course is designed so that the credits cover the cost of the semester.

The Warehouse

All teams will work on the same dataset: the books of Harlow Design Co., a synthetic design studio with about forty clients and three years of history, together with the studio's knowledge about itself: its org directory, chat channels, project tickets, versioned documents and skill files, contracts, and CRM. The warehouse is generated from a clean ground truth, with specific ambiguities and defects introduced on purpose, and every message, ticket, and document is derived from that truth so its accuracy and staleness are known. The knowledge corpus is about two million tokens, roughly twice the class model's context window, so no agent can read all of it and every agent must choose. Because every team sees the same data, each failure shape has the same form for the whole class and golden-question scores are comparable across teams.

Term Project
The coursework centers on one semester-long project: an agent that answers Finance's questions against the Harlow warehouse. The answers have to be correct, backed by evidence, within each asker's permissions and free of the harness failures. More specifically: The project is divided into 5 milestones (M1–M5), each producing a concrete deliverable: Milestones are due at 11:59pm on the Sunday following the week in which they appear on the schedule.

Failure Catalog

Each reproduction from weeks 5–10 is also submitted as an entry in the class failure catalog. An entry gives the trigger, the symptom as the asker sees it, the attribution (model, harness, data, knowledge or mixed), the detector that catches it, the fix and the receipt fields that would have made it visible. For a model failure, the fix is the containment, reported with the failure rate before and after. Every team works with the same warehouse and the same model, so the catalog can show how often the bare model falls into each trap and how many independent harnesses exhibited or contained it. It also shows which detectors carried over to harnesses they were not written for. Golden-question authors draw their failure-shape questions from the catalog.

Quizzes

There will be quizzes on most weeks, based on the assigned readings and milestone submissions. The quizzes will be done in class, and students are expected to take them by themselves.

Design Reviews

Teams participate in at least two live design reviews during the term. You should be prepared to answer impromptu questions and clearly explain the design of your harness, your evals, your knowledge layer, and the state of your project, including walking through the evidence bundle for one question and defending why one source outranked another.

Class Participation

Students are expected to actively participate in in-class code labs, the week-8 stuff-vs-rank lab, the week-12 red team/blue team exercise on the shared warehouse, and the golden-question dispute process on Ed.

Grading Breakdown The final mapping to letter grades will be determined at the end of the term once all coursework has been graded, and will be based on the overall distribution of scores.

Academic Integrity

This course will abide by UTCS' code of academic integrity.

Generative AI Policy

This course is about building AI agents, and you will use language models throughout it. Using AI is required, and studying where it fails is graded. That said, the goal is still for you to understand every line you submit and every answer your agent gives.

You may use generative AI to: You may not use generative AI to:

Late Submissions and Extensions

You will receive a total of 5 slip days for the semester, which can be used for quizzes, participation, and project milestones.

Once you have used all 5 slip days, you will need a doctor's note (or equivalent documentation) to receive an extension. Without proper documentation, late submissions incur a 10% grade penalty per day, up to a maximum of 3 days late, after which the submission receives a zero.

Students with Disabilities

If you are a student with a disability, or think you may have a disability, and need accommodations, please contact Disability and Access (D&A). Contact and more details are available on D&A's website.
If you are already registered with D&A, please share your accommodation letter with me as early as possible in the semester so we can discuss how your approved accommodations will be implemented in this course.

Week-by-week Schedule

This schedule is tentative and may change based on the needs of the class. Dates will be added from the Spring 2027 academic calendar.

Week Reading Topic Project Milestone
1TBDModel failures vs. harness failures: harness failures are bugs, model failures are rates. The loop and its non-determinism. The proposes/commits/proves model. Attributing a failed run from its receipt.Teams formed
2TBDThe bare loop: tool calling, structured outputs, stop conditions and the first receipt. The analyst loop vs. the one-shot query. 
3TBDThe knowledge layer. Why enterprise data is harder for models than code. Sources and how far to trust them. The evidence bundle. Keyword search over the Harlow corpus. When to search and when to read the pipeline models.M1: project proposal with evals sketched
4TBDFrameworks and protocols: what frameworks hide and where they fail. Curated knowledge: skills and agent-instruction files as a directory that is stale and contradictory, with nothing ranked.  
5TBDState that was never persisted: how events enter and how state is rehydrated. Who owns persisting the turn.M2: evals written across all four task families, no agent code yet
6TBDOverlapping writers: idempotency, locks, ordering, single-writer lanes. 
7TBDTime: deadlines and cancellation. Tools as unreliable services, with retries and partial failure. 
8TBDContext as a memory hierarchy. Ranking signals: authority, recency, published vs. draft, system of record over chat. Knowledge failure shapes: stale source, authority inversion, definitional conflict, flooding. Cost visibility: scan cost vs. token cost, caching, duplicate queries, model routing. 
9TBDApproval drift and bounded authority: pass-through permissions, row-level security, authorized views, least privilege. Permissions on unstructured knowledge: channel membership and document ACLs as pass-through, and the agent's service account vs. the asker's entitlement.M3: working agent passing its own evals
10TBDInternal success vs. user-visible proof. Failure detection in production.Golden-question set draft published
11TBDEvaluation: golden questions, result-based grading, evidence recall, judge validity, saturation, reward hacking, item analysis. 
12TBDSecurity week: prompt injection and tool poisoning through data and knowledge sources (ticket comments, messages, documents), and the exfiltration that follows, treated as authority failures. The knowledge layer as an attack surface. Red team/blue team exercise on the shared warehouse.M4: cross-team scoring complete
13TBDCompounding failures in multi-agent systems and long-horizon runs. Agent-written memory as one more stale, un-ranked knowledge source. 
14TBDThe run receipt audit: what woke the agent up, what state it inherited, what authority it used, what knowledge it relied on (and whether that knowledge was current and authorized for the asker), what executed, what evidence survived, and whether the model or the harness failed.M5: final demo and report
Acknowledgments

This course grew out of conversations with several colleagues in the department, among them Alison Norman and Glenn Downing. It also draws from Vinoth Govindarajan's AI Engineer 2026 talk The Model Was Right. The Harness Failed. AI and cloud computing resources are provided through the generous support of Google.