Harness Agent Assembly

create_harness_agent wires a function-calling loop around switchable todo, plan/execute, and compaction stages

Harness Agent Assembly create_harness_agent wires a function-calling loop around switchable todo, plan/execute, and compaction stages Switchable components create_harness_agent · assembles the agent · Architecture component create_harness_agent assembles the agent Function-Calling Loop · orchestrates turns · Architecture component · core Function-Calling Loop orchestrates turns core Plan Mode · draft the steps · Switchable components · switchable Plan Mode draft the steps switchable Execute Mode · act on the plan · Switchable components · switchable Execute Mode act on the plan switchable Todo List · task state · Switchable components Todo List task state Compaction · trim history · Switchable components · switchable Compaction trim history switchable Model · LLM endpoint · Architecture component Model LLM endpoint build tool + LLM calls Legend External Backend Database Cloud

One Core Loop

  • • create_harness_agent assembles the whole agent
  • • A single function-calling loop drives every turn
  • • The loop is the only caller of the model

Switchable Stages

  • • Plan and Execute modes split thinking from acting
  • • The todo list carries task state across turns
  • • Compaction trims history before it overflows

Composable

  • • Each stage is an individually switchable component
  • • Turning one off never rewrites the loop
  • • The same harness scales from simple to autonomous