Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Harness Engineering: Build an AI Coding Agent
Hot & New
New
Rating: 4.5 out of 5(1 rating)
15 students

Harness Engineering: Build an AI Coding Agent

Build a coding agent from scratch: agent loop, tools, safety gate, memory, sessions and sub-agents
Created byAkbar Arif
Last updated 11/2026
English

What you'll learn

  • Understand how coding agents work and build an agent loop that connects an LLM to real actions.
  • Build a well harnessed coding agent tool system with file operations, command execution, and permission and security controls.
  • Design context management, memory, and skills so agents can handle larger and more complex coding tasks.
  • Build durable agent sessions that can recover from failures, resume interrupted work, and maintain state.
  • Implement sub-agents and delegation so a coding agent can divide complex tasks into smaller pieces.
  • Build an orchestration layer that coordinates multiple agents working on software projects in parallel.
  • Build a complete coding agent from scratch in Python while understanding the architecture behind modern coding agents.
  • Apply harness engineering principles to create, debug, test, and extend your own AI coding agents.

Course content

6 sections • 9 lectures • 10h 49m total length
  • Harness Quiz
  • Course Introduction3:14
  • What Is a Harness?1:52:18

    The Map (Prompt, Context, Harness, Loop and Graph Engineering)

    Everyone says “AI agent”, but what is actually inside one? In this first lecture of the Harness Engineering series, we draw the map before we write any code.

    You’ll learn the five terms people mix up all the time: prompt engineering, context engineering, harness engineering, loop engineering and graph engineering. We see how each one sits inside the next, so the next time someone throws these words around, you know exactly what they mean.

    This is the foundation for the whole series. From lecture 2 onward, we build a real coding agent called Zill, from scratch, in plain Python.

Requirements

  • Basic Python programming knowledge and familiarity with functions, classes, files, and modules.
  • Basic familiarity with the command line or terminal and running Python programs.
  • A computer capable of running Python and a modern code editor such as VS Code.
  • Basic understanding of APIs and how large language models such as GPT or Claude are used through APIs.

Description

Learn how AI coding agents really work by building one yourself.

Tools like Claude Code and Cursor can feel like magic. They are not. Underneath is a small, understandable idea called a harness: the code around a language model that lets it act, remember, stay safe and finish a job. In this course you build a complete harness from scratch, in plain Python, with no frameworks and no third-party packages.

Your agent is called Zill. You start with the core idea and end with a working command-line coding agent.

What you will build:

  • The model client, with a single doorway to the API, retries and a neutral message format

  • The agent loop, the heartbeat that asks the model, runs tools and feeds results back

  • Six real tools (read, write, edit, run commands, list, search) that run locally, in a sandbox or over SSH

  • A permission gate with safe, read-only and yolo modes, plus a path jail that keeps the agent inside one folder

  • Context compaction, so long tasks fit inside a token budget

  • Long-term memory, skills and crash-proof sessions you can kill and resume

  • Sub-agents that take on a task with a clean context and report back

  • A fleet runner for parallel agents, and a command-line front door

Why this course is different: every lecture adds one small file, explains the design rules behind it, and ends with a demo you can run and test. You see why each part exists, not just how to copy it.

Who it is for: developers who want to understand agents instead of treating them as a black box.

What you need: basic Python and a model API key. A free key is enough to follow along.

By the end you will have a working agent you understand line by line, and the confidence to extend it.

Who this course is for:

  • Python developers who want to learn how modern AI coding agents are designed and built from the ground up.
  • Software engineers interested in AI agents, coding agents, agentic systems, and harness engineering.
  • ML and AI engineers who want to move beyond using AI agents and learn how to engineer their underlying systems.
  • Developers who want to build their own coding agent instead of relying only on existing agent frameworks.
  • Students and engineers interested in LLM application development, tool use, context management, memory, and agent orchestration.
  • Developers who want a hands-on project that progressively builds a working coding agent from an empty project.