← All courses

EDGE FDE

Intermediate

The agent harness (and how to improve it)

Ship agents that stay safe and get better from real runs, not from model hype.

Define a harness, name its six layers, sketch a small harness, and run an improve loop using traces + golden checks.

The model gets the hype. The harness gets the results.

What you'll learn

Notes that shaped this framing: Mark Ajzenstadt (@mardehaym) on harnesses. The rest of the course stays on a small harness you can improve from real runs.

Lessons

  1. The harness is not the model
  2. Six layers of a working harness
  3. Sketch a tiny harness
  4. The loop that improves the harness
  5. Write what good looks like

Key concepts

Takeaways

Agent briefs

Run an agent with a state machine · Test AI behavior before you ship · Trace every step of an AI call · Stop prompt attacks and leaks · Build a context packer for on-device AI