PrepCity

The agent harness: everything around the model

Open the lab

By the last page, this is the design you will have built.

Lesson · 7 pages · about 5 min

The agent harness: everything around the model

The model only reads text and writes text. The harness is the program around it: it runs the loop, runs the tools, decides what goes into the context window, and checks every action before it happens.

Words you’ll learn

  • Language model
  • Context window
  • Agent harness
  • API
  • Request
  • tool_use block
  • tool_result block
  • Compaction
  • Notes file
  • Disk

Page by page