Series · Building a Custom Agent Harness
One controlled experiment. One reusable agent loop.
Start with the recorded showcase: a generic agent loads its task, works inside an
isolated boundary, and reaches host-verified storage. The following articles will
unpack the problems and engineering decisions behind that loop.
Agent engineering
By Tung Nguyen · Series preview · August 4, 2026
Engineering the Agent Loop
Watch
GPT-5.6 Terra perform
task-specific work through a harness built on
Google ADK and designed to
be model-agnostic, while the host validates the result, persists accepted records,
and verifies stored state.
Watch the showcase →
Part I · Custom agent harness
By Tung Nguyen · Updated November 4, 2026
Building a Custom Agent Harness — Part I: The Agentic Loop
Why I built a custom loop to experiment with context and delegation, and what I learned getting it to complete a task.
Read the field note →
Part II · Planned
Token-use efficiency · Planned experiment
Building a Custom Agent Harness — Part II: Efficient Token Use
A planned exploration of efficient token use, inspired by SKILL.state: can structured
state and the latest observation replace growing conversation history while
preserving a host-verified result? No results yet.
Planned follow-up
Part III · Planned
Execution and completion
Why the host owns “done”
Sandboxing generated code, deterministic acceptance, persistence gates, and a
fresh reread of stored state.
Planned follow-up
Part IV · Planned
Solution evolution
How the solution layer evolves across tasks
How accepted approaches become versioned skills and adapters—and the evaluation
needed before future agents inherit those updates.
Planned follow-up
Also planned: a deeper look at hidden acceptance contracts and why an earlier run stopped when its required fields were not clear to the agent.