A coding agent opens a pull request that passes every test. During review, you notice it has given “cancelled” a different meaning from the one your billing system uses. The patch takes ten minutes to fix. The harder question is how to keep the next agent, or the next engineer, from making the same mistake. Software Factories for Real Engineers, taught by Matt Pocock through AI Hero, takes that question seriously. You’ll build a system for delegating engineering work, checking the results and using what you learn in review to improve the next change.
You’ll start with a supplied codebase where you can experiment before applying the approach to your own repository. One early task is to build a shared glossary. In the billing example, a customer might cancel today while retaining access until Friday. If engineers use “cancelled” to mean both the request and the loss of access, a coding agent has little chance of implementing the rule consistently. You’ll practise recording distinctions like this and writing architecture decision records that explain why the team chose a particular design. Both give a future contributor somewhere to look when a ticket leaves room for interpretation.
For work that spans several agent sessions, you’ll use Pocock’s Wayfinder planning method to map the change, identify open questions and prototype the parts you understand least. Suppose you need to change how a service calculates renewal dates. It can be worth tracing one renewal from the incoming request to the stored result before dividing the job into tickets. That small experiment might reveal a dependency the original brief missed. You can then give each agent a bounded piece of work and describe how a reviewer can tell whether it satisfies the requirement.
Review is a design decision in its own right. You’ll work with three kinds of checks: automated checks such as tests and type checking, automated review of the proposed change, and review by an engineer. Each answers a different question. A type checker can establish that a function returns a date. A test can establish which date it returns for a known example. An engineer who knows the product can still ask whether that example reflects the promise made to the customer. You’ll practise deciding where human attention matters most and what information should accompany a pull request.
The course also examines how to use AI coding agents for existing codebases, where a small change can require knowledge scattered across several files. You’ll study deep modules, which hide substantial implementation detail behind a small interface, and ways to make legacy behaviour testable. Mutation testing gives you a way to challenge the tests themselves. If you deliberately alter a comparison and the suite still passes, you’ve found a specific gap to investigate. You’ll also consider which team conventions belong in written guidance and which ones you can enforce with a custom lint rule.
In the second week, you’ll assemble GitHub Actions workflows for coding agents. Using the example repository, you’ll follow work from issue triage through assignment, implementation and review. Sandboxes and permissions define where an agent can work and what it can access. You’ll then design a factory for your own team. A backlog of well-understood maintenance tickets may be a good first use. A feature whose behaviour the team is still debating calls for more time with the people who will use it.
The November 9–20, 2026 cohort ran asynchronously over two weeks, with an estimated commitment of five to eight hours per week. The demonstrations use the Claude Code command-line interface, and participants had access to live office hours, recordings and transcripts. AI Hero lists a waitlist for a future cohort. The practical outcome is a working factory in the example repository and a design for adapting it to your team, including which jobs to delegate, what evidence to require and when an engineer should make the call.
What you’ll learn of this course:
- Write a shared glossary and record architecture decisions that agents and engineers can consult.
- Break a large change into specifications and tickets with clear completion criteria.
- Combine automated checks, agent review and human review for AI-generated pull requests.
- Use mutation testing to find behaviour your existing tests fail to verify.
- Improve module boundaries so agents can change one part of a codebase with fewer surprises.
- Build GitHub Actions workflows to triage, assign and review engineering tasks.
- Use findings from a retrospective to improve the process that produced a faulty change.
Requirements before start this course:
- Practical experience reading, changing and reviewing code in a shared repository.
- Familiarity with Git, pull requests, automated tests and the command line.
- Working knowledge of coding agents or time to complete the included AI Coding Crash Course.
- Around five to eight hours per week for the two-week programme.
Who this course is for:
- Software engineers introducing coding agents into an established codebase.
- Technical leads deciding which changes their teams can delegate and which need human review.
- Platform and developer-experience engineers building internal GitHub Actions workflows.
- Maintainers who want better tests and clearer boundaries before automating recurring work.
- Developers already using coding assistants who spend too much time correcting the same mistakes.
What about the author:
Matt Pocock is a software engineer and developer educator who created Total TypeScript and teaches AI-assisted engineering through AI Hero. He previously worked at Vercel and Stately. Before his career in software, he worked as a voice coach. Teaching has remained a substantial part of his practice, from short explanations of individual TypeScript features to workshops in which developers work through a problem in an editor. His work on coding agents draws on both sides of that experience. He builds tools for engineers and teaches the decisions involved in using them.
At Total TypeScript, Pocock developed material for programmers at several stages of their careers. His introductory exercises cover variables, functions and errors. His advanced workshops ask developers to manipulate types and reason about the results the compiler produces. He also wrote Total TypeScript Essentials and created a companion course with 200 exercises. A learner can make a prediction, edit the code and inspect the compiler’s response. In the software factory course, learners bring a similar habit to a larger question: what evidence would show that an agent has made the intended change?
Pocock’s open-source projects give engineers a way to examine his work outside a classroom. He created Sandcastle, a TypeScript library for orchestrating coding agents in isolated environments. In a public walkthrough, he demonstrates how an agent can pick up a task and carry it through implementation and review. He also publishes the agent skills he uses in his own work and maintains a dictionary of AI coding terminology. Readers can inspect the instructions behind a demonstration, see which parts the software handles and identify the decisions the operator made before the run began.
In a workshop for AI Engineer, Pocock walked through the work that comes before implementation. He took an ambiguous request, questioned its assumptions, wrote a product requirements document and divided the change into small pieces that each crossed the necessary layers of the application. He then showed how to review what the agent produced. That sequence helps explain his emphasis on engineering judgment. By the time an agent starts editing files, someone has already made consequential choices about the problem it should solve and the evidence a reviewer should expect.
For this course, Pocock also draws on established engineering writing about legacy code, module design and incremental delivery. He connects those ideas to a question maintainers face when they delegate a ticket: how much of the system does a contributor need to understand to change one behaviour safely? His experience with TypeScript teaching, open-source tools and agent workflows gives him concrete ways to explore that question, from a compiler error a learner can reproduce to a pull request a team must decide whether to merge.




Reviews
There are no reviews yet.