Skip to content

Week 5: Agent-ready codebases

An agent can work safely when a repository makes its structure, rules, tests and checks easy to find and run. This week you follow one bounded task through three states of the same function, score a repository's readiness from observable anchors, remove one blocker and score again.

Materials

The files under fixture/ are small course-authored demonstrations. Do not treat their output as a real model run or as evidence about an outside repository.

Due

A4 is due this week. You do it on the starter repository supplied on that page, not on your own repository. You add an instruction file and a hook that blocks one assigned bad change. The hook can be a Git pre-commit hook or a hook on your agent's own events. You show the gate working with three probes, and you map one behaviour to its files, tests and check command. The instruction file and the hook used as a gate are the Week 4 techniques. The A4 page says where each kind of hook goes and which change it must block. The studio is practice on your own repository and is not handed in for A4.

A5, due in Week 6, asks you to score your finished A4 repository on the four dimensions from this week's notes.

Checkpoint practice

Next week's checkpoint is a 30-minute paper sat without AI, agents, devices or reference material. The CP1 practice paper has the same format, length and question types, with marking points and worked answers to check yourself against. The studio opens with a 15-minute timed attempt at its first half. At home, sit the second half and mark both halves.

Follow the course safety practices before using an agent. Keep credentials out of the repository, prompts, screenshots and logs.