Start here
How to Learn Harness Engineering [30-Day Roadmap]
How to learn harness engineering in 30 days: prerequisites, a weekly plan with deliverables, free offline projects, common mistakes and FAQs.
On this page
- How to learn harness engineering in 30 days: the plan at a glance
- Prerequisites: what you need before day 1
- Week 1: Understand the agent loop
- Week 2: Add tools and limits
- Week 3: Make progress recoverable and visible
- Week 4: Test and document a complete project
- How to check your progress
- Common mistakes when you learn harness engineering
- How courses, tools and books fit around the plan
- What to do after day 30
- Frequently asked questions
- Where my book fits
- Final thoughts
- Sources and further reading
The short answer
The best way to learn harness engineering is to build one small AI agent and improve the system around it, one control at a time. Over 30 days, you work in four stages. You learn the agent loop, add tools and limits, make progress survive a restart, then test and document a complete project. Basic Python and a terminal are enough to start.
This roadmap is for developers who already use an AI agent and want it to behave better. You have probably seen an agent edit the wrong file, repeat the same action, or report success on code that does not run. It is tempting to blame the model, but the cause is often in the code and the rules around it.
That surrounding system is the harness. Birgitta Böckeler's article on martinfowler.com describes the harness as everything in an AI agent except the model itself. It decides which tools the agent can call, which files it can touch, what it remembers, when it stops and how anyone checks its work. If the term is new to you, read what harness engineering is first.
I have broken the month into four weeks, and you will have something working at the end of each one. Treat the dates as a guide. If you are new to Python, go slower, and if you already build agents, you can move through the first week in a weekend.
How to learn harness engineering in 30 days: the plan at a glance
You will build one small project for the whole month and add a layer to it each week. At the end of every week, you will have something you can show another person. The project numbers belong to the eleven exercises in my free companion course, which run offline with a scripted model.
| Week | Focus | Days | Deliverable | Companion projects |
|---|---|---|---|---|
| 1 | Understand the agent loop | 1 to 7 | A one-page explanation and a loop trace you can explain line by line | Project 1 |
| 2 | Add tools and limits | 8 to 14 | Two tool contracts, a written workspace rule and a pass or fail check | Projects 2 and 3 |
| 3 | Make progress recoverable and visible | 15 to 21 | A task that resumes after you stop it, and one written failure diagnosis | Projects 4 to 7 |
| 4 | Test and document a complete project | 22 to 30 | A small evaluation set, an approve, deny and resume path, and a README | Projects 8 to 10 |
The 30-Day Harness Engineering Roadmap is also a PDF in my free resource pack.
The course takes about 14 hours to read, or 30 to 40 hours if you do every project. Over a month that is about an hour on most days, with one longer session for the final project.
The running example for this plan
Use one small task all month. In this plan, an agent adds a weekly streak count to a habit-tracker app, and the companion course includes the app so that you do not have to build it. Staying with one task matters, because you can run it before and after each change and see what the change did.
Prerequisites: what you need before day 1
You need enough Python to read a function, use a dictionary, handle an exception and run a script. The companion course asks for Python 3.10 or newer and a little comfort with a terminal. You do not need LangChain, LangGraph or any other framework.
Before day 1, make sure you have these:
- Python 3.10 or newer, and the ability to run
python -m pytestfrom a project folder. - A terminal you can use to change directories and read an error message.
- Basic Git, so you can inspect a change and go back to a working version.
- Docker, only if you want to run the container sandbox in the permissions project.
- No API key. The exercises run against a scripted model. A real model is optional.
If you have never programmed, do the reading in week 1 and work through the official Python tutorial at the same time. A full computer science course can wait.
Keep a learning log from day 1
For each experiment, write down four things, which are the task, the failure you saw, the change you made and the result. It can be as short as this:
Task: Add a weekly streak count to the habit tracker
Failure: Agent edited tests/test_streak.py to make the test pass
Change: Workspace rule blocks writes to tests/
Result: Agent fixed streak.py instead; all 6 tests passBy the end of the month, this log will be worth more to you than a list of videos you watched, because it shows what you can do.
Week 1: Understand the agent loop
This week you learn to see the loop inside every agent. The model chooses an action, the harness runs it, and the result goes back to the model so that it can decide what to do next. Once you can see that loop, the rest of the subject becomes much less mysterious.
Days 1 and 2: Define an agent and its harness
Read What Is Harness Engineering? and draw your habit-tracker agent on paper. Mark the model, one action it can take, the result it gets back and the decision it makes next.
Then explain it in one page, in your own words. Include a task the agent can complete and an action it must never take, such as deleting the database file. If you cannot define a word, leave it out. Borrowed words hide the gaps that you are trying to find.
Days 3 and 4: Separate instructions from context
Read the comparison of harness, prompt and context engineering, and then write a brief for the streak feature. List the facts the agent will need, such as where habits are stored and how the tests run.
Now take away one important fact and see how unclear the task becomes. Put it back and write down why it belongs there. You will notice that a longer prompt cannot replace a missing fact. Ryan Lopopolo of OpenAI describes the same thing in Harness engineering, published in February 2026. His team kept its AGENTS.md file to roughly 100 lines and used it as a map to deeper documents.
Days 5 to 7: Read and run a small loop
Follow the Python harness engineering tutorial and Project 1: Build an Agent Loop from Scratch. Use the offline scripted model first, so you can look at each step without an account or a bill.
Before each run, write down what you think the agent will do, and compare your guess with the trace. Make a note of exactly what made the loop stop.
Week 1 deliverable: a one-page explanation of your agent and a loop trace you can explain to someone without notes.
Week 2: Add tools and limits
Tools let the agent act, and limits decide where. Many early failures come from a vague tool or a limit that nobody set, so do not rush this week.
Days 8 to 10: Design two tools
Choose one tool that reads and one that writes. For the habit tracker, they can be "read a source file" and "write a source file". Describe the inputs and the errors with exact field names, and refuse a bad request with a clear message so that the tool never has to guess what the model meant.
Project 2: Design Tools an Agent Can Use fits here. Try an empty input, an unknown file name and a file that is not there. For each tool, write a short contract with one example that works and one that fails.
Days 11 and 12: Define the workspace
Decide which files the agent may change. Give it a temporary copy of the app and a short list of allowed operations, and write down what your code checks and what it does not isolate.
Be honest in that note, because a directory check is not the same as an operating-system sandbox. Work through Project 3: Permissions and a Sandbox before you give any test agent a general shell or a real password.
Days 13 and 14: Check the first result
Write a check for the finished task. For the streak feature, run the tests and open the file that changed. The agent's summary of its own work does not count as a check.
Keep one failed run as well as the one that worked. You will need it in week 4.
Week 2 deliverable: two tool contracts, a one-paragraph workspace rule and a pass or fail check that runs with one command.
Week 3: Make progress recoverable and visible
Real work gets interrupted, and real agents repeat themselves. By the end of this week, your agent will survive a restart and leave a record that you can read.
Days 15 to 17: Save and resume state
Keep four facts in a progress file, which are the name of the task, the work done, the next step and any check that is still open. Stop the agent halfway and start it again from that file. Watch closely for anything that happens twice.
Anthropic does the same thing. In Effective harnesses for long-running agents, Justin Young describes a progress file called claude-progress.txt and the git history. A new session begins with no memory, so it reads those two to find its place. Project 4: Make Work Survive Across Sessions covers this step.
Days 18 and 19: Set loop controls
Add a step limit and a retry limit, and decide what counts as progress for your task. A counter can stop a runaway loop, but it cannot tell you whether those repeated actions achieved anything.
Make the agent repeat itself on purpose and check that it stops for the reason you expected. Write that reason in the trace, so that anyone reading it can tell a finished task from a budget that ran out. Project 5: Loop Controls That Stop for a Reason has tests for this.
Days 20 and 21: Read traces and add checks
Open Project 7: Read Traces and Diagnose Failures and study one failed run until you find the first step the agent should not have taken. If you have time, do Project 6: Guides and Sensors as well. Guides and sensors are Böckeler's words for the things that steer an agent before it acts and check it afterwards.
Then write a short diagnosis with the symptom, the evidence, the likely cause, the fix you propose and how you will confirm it. Look at what the model received before you blame the model. If you get stuck, the guide to why AI agents fail lists the patterns you are most likely to meet.
Week 3 deliverable: a task that resumes cleanly after you stop it, and one written failure diagnosis.
Week 4: Test and document a complete project
In the last week, you join the pieces into one project that somebody else could run, test and judge.
Days 22 to 24: Build a small evaluation set
Choose five to ten test tasks. Include a normal one, one with missing information, one with a blocked permission and one that gets interrupted. Write down the expected result for each before you run anything, so you are not tempted to accept whatever comes out.
The guide on how to test AI agents explains how to tell a task that succeeded from an answer that only sounds right, and Project 8: Build an Eval Kit gives you the code. Record your settings for each run, because you will want to repeat the comparison.
Days 25 and 26: Add one approval step
Pick one action that a person should review. In the habit tracker, it could be a change to the database schema. Save the proposed action, ask for a decision and carry on without losing your place.
Project 9: A Graph Workflow with Human Approval shows you how to do this with LangGraph. Build all three paths, so that you can approve, refuse and resume.
Days 27 to 30: Finish and explain the project
Run the complete task, and then change one control at a time and compare the results with the same settings. Project 10 calls this "run, ablate and improve". You switch off one part of the harness and measure what happens without it.
Finish with a README. Include the setup, the task, the tools, the permissions, a sample trace, the success checks and the limits you know about. A stranger should be able to repeat your run without asking you for the command.
Week 4 deliverable: an evaluation report, a working approval step and a README that another person can follow.
How to check your progress
Watching videos feels like progress, and it is easy to fool yourself with it. You are ready to leave a week behind when you can do these things without your notes:
- Explain why the agent took its last action, with the trace as evidence.
- Name every tool, its inputs and the error it returns for a bad request.
- Say what your workspace rule blocks and what it does not block.
- Stop the agent mid-task and predict what happens when it resumes.
- Show a failed evaluation case and the control that fixed it.
- Explain why the loop stopped in each saved run.
If you fall behind, make the task smaller and keep every stage. You will learn more from a tiny harness that is complete than from a large agent with parts you cannot explain.
Common mistakes when you learn harness engineering
These five mistakes cost people the most time, and all of them are easy to avoid once you know about them.
- Starting with a framework. It hides the loop you are trying to understand, so when something fails it looks like magic. Build the loop in plain Python first and compare it with a framework afterwards.
- Taking several courses at once. Each one uses different words, and you can spend the whole month translating. Follow one main path and use other material to fill a particular gap.
- Testing only the easy case. One clean example tells you very little. Add awkward ones early, especially a blocked permission.
- Trusting the final message. Agents often report success on code that does not run, so check the files and run the tests yourself.
- Giving a test agent real access. Keep early experiments in a temporary copy with fake data. Real credentials can wait until your permission checks pass their own tests.
How courses, tools and books fit around the plan
Use outside material to fill one gap at a time. If you want a teacher, my comparison of harness engineering courses sorts them by the gap they fill. When you need to choose software, the guide to harness engineering tools will help you pick the smallest set. And if you prefer to read, the list of books to learn harness engineering suggests an order.
Should I take a course or read a book first?
Take a course first if you learn by doing and already know some Python. Read a book first if you keep getting stuck on why an agent failed. A book explains why each part of the harness exists, and a course makes you prove that you understood it. If you can spare an hour on most days, use them together by reading one part of the book and building the project that goes with it. I have compared the best courses and the best books to make that choice easier.
What to do after day 30
Once the month is over, take what you built to real work and go deeper in one direction. Any of these is a good next step:
- Copy your harness to a real task from your job. Use fake or copied data first, and change one control at a time.
- Complete Project 11: A Harness for a Support Agent That Moves Money. It tests approvals when the stakes are higher.
- Add a new evaluation case every time you see a new failure. A fixed bug then cannot come back without a failing test.
- Choose one area to study further, such as evaluation or MCP, and take one focused course for it.
- Build a second agent from the list of harness engineering projects and compare its design with your first.
Frequently asked questions
These are the questions learners ask most often. For questions about jobs and what to learn after the basics, read my career questions about harness engineering.
1. How long does it take to learn harness engineering?
You can learn the core skills in about 30 days if you build while you read. By the end of that month you can have a small agent with tools, limits, saved progress and a set of tests. Good judgement takes longer, because it comes from using the same ideas on real work for several months.
2. Do I need to know Python to learn harness engineering?
You need basic Python for the practical work. If you can read a function, use a dictionary and run a test, you are ready for the companion course, which asks for Python 3.10 or newer. The ideas carry over to other languages, and some courses teach them in TypeScript.
3. Can I learn harness engineering as a complete beginner?
Yes, and you will learn faster if you begin with something small. Use a scripted model at first so that nothing is random, and you can watch each step of the loop. If you have never programmed, take a short Python course during the first week of this plan.
4. Should I learn LangChain first or build agents in plain Python?
Build the loop in plain Python first. You will see what happens between the model asking for a tool and the result coming back, and after that a framework will feel like help instead of a mystery. In the companion course, you meet LangGraph in project 9, when you already know what it is doing for you.
5. What are the best free resources to learn harness engineering?
Three free resources will take you a long way. The Harness Engineering Course gives you lessons and eleven tested projects, Böckeler's article on martinfowler.com explains the main ideas, and Anthropic's post on long-running agents shows how to save progress. You will find more in my list of courses.
6. Do I need an API key or a paid model to start?
No. The projects in the companion course use a scripted model that runs on your own computer, so you can learn the loop, the tools and the tests without an account. Connecting a real model is optional, and you will pay for what you use.
7. Can I skip the details and build agents with Claude Code and vibe coding?
You can build a demo that way, and it may even work. The trouble comes when it breaks, because you will not know why the agent edited the wrong file or stopped too early. Learning the details makes you better at using Claude Code as well, since you will know which rules and limits to give it.
8. What is the difference between harness engineering and prompt engineering?
Prompt engineering is about the instructions you give a model. Harness engineering is about the world you put it in, which includes its tools, permissions, memory, stop rules and checks. I explain where each one helps in harness vs prompt vs context engineering.
9. Is six months enough to become an AI agent engineer from zero?
Six months is enough to build a small, tested agent and to explain how you did it. Nobody can promise you a job in that time, because employers also look at your programming and your knowledge of their field. Learn Python first, follow this plan at a slower pace, and use the remaining months to build a second agent with written test results.
10. Should I follow a structured path or learn as I build?
Do both at once. A short path gives you an order, so that you learn the loop before you add a framework. A small project tells you which ideas you have understood and which ones you have only read about. This plan joins them by adding one layer to the same project each week.
Where my book fits
I wrote The Harness Engineering Blueprint to give this plan one connected explanation. It moves from agents and prompts to tools, limits, saved state, checks, loops and production, which is close to the order in which you build things here. In my view, it is the best book to learn harness engineering if you want the ideas and the practice tied together.
You can look through The Harness Engineering Blueprint and use the free companion course for the lessons and the eleven projects. My advice would be to read one chapter and build its project in the same week, while the idea is still fresh. If you want a second opinion, I compare other books too.
Final thoughts
You learn harness engineering by building an agent and checking what it does, and there is no shortcut around that. Thirty days of small steps will leave you with something you can explain, test and improve.
Start with day 1 today. Draw your agent on a single page, open Project 1 and run the loop. You now have everything you need to learn harness engineering at your own pace.
Sources and further reading
- Abhishek Ashtekar, Harness Engineering Course (free companion course) and its project index.
- Abhishek Ashtekar, The Harness Engineering Blueprint.
- Ryan Lopopolo, OpenAI, Harness engineering, February 2026.
- Justin Young, Anthropic, Effective harnesses for long-running agents, November 2025.
- Birgitta Böckeler, martinfowler.com, Harness engineering for coding agent users, April 2026.
- Python Software Foundation, The Python Tutorial.
- This 30-day schedule is an editorial learning plan. It is not a measured completion-time study.