Chaoverse Lab

Agents

Agent

seed created 2026-10-02

An agent is a model using tools in a loop until the job is done. In practice: Agent = Model + Harness. The model reasons; the harness is everything else that makes it safe and useful.

1. Chatbot vs agent

Chatbot

One prompt in, one answer out. Can only say things.

Agent

Acts, looks at the result, decides the next step. Can do things and check them.

2. The agent loop

Every turn: assemble context → model picks an action → harness runs it → result goes back into context. It stops when the model answers without asking for a tool (or a limit is hit). Anthropic's short version: gather context, take action, verify work, repeat.

Contextwhat the model sees Modelreason, pick action Tool callname + arguments Environmentharness runs it Observationoutput, errors Final answer no tool call = done appended to history

Context window, right now

Everything the model knows this turn. It only grows.

    Example task: “fix the failing test”. Step through one lap, then the exit. Click any box to jump to it.
    The model never runs anything itself. It only asks; the harness executes and reports back. Tools are the only way an agent makes progress.

    3. The harness

    The harness is the runtime around the model. It is not the model, but it decides what the model sees, what it may do, and how it knows it is right. Five layers (click one):

    Modelweights only: text in, text out
    Harness engineering = designing and tuning these layers so the same model behaves better.

    Example: this lab's own AGENT.md (see How the Lab works) is harness context: a file the agent reads every session so it knows the project's goals and rules.

    4. Four “engineerings”, nested

    Each one wraps the previous. Smaller scope inside, longer time horizon outside.

    Loop engineering Harness engineering Context engineering Prompt engineering the words of one request
    LayerQuestion it answers
    PromptHow do I word this one request?
    ContextWhat is the smallest set of useful information to show the model this turn?
    HarnessWhat tools, checks, permissions and memory surround a whole run?
    LoopHow do repeated runs proceed: budgets, retries, when to stop, when to ask a human?
    Terms are new and informal; sources define them slightly differently. This is the common framing.

    5. How it happened

    Each step fixed the previous step's biggest failure.

    • Oct 2022 · ReAct Reason and act interleaved in a loop.Problem: models could only talk. Fix: let them call tools and read results.
    • Mar–Jun 2023 · AutoGPT, function calling Open-ended loops; tool calls become a first-class API feature.Problem: parsing tool requests out of free text was fragile. Fix: structured tool calls.
    • Nov 2024 · MCP A standard way to plug tools into agents.Problem: every agent re-wired every tool. Fix: one protocol.
    • Dec 2024 · “Building effective agents” Anthropic: agents are LLMs using tools in a loop; start simple, add complexity only when needed.Problem: over-built frameworks. Fix: simple, composable patterns.
    • 2025 · Coding agents, context engineering Agents run for dozens of steps and the context fills up and drifts.Problem: long runs degrade. Fix: curate what is in the window: retrieve, summarise, isolate, offload.
    • 2026 · Harness and loop engineering The model is good enough that results depend on what surrounds it, and on running it repeatedly with limits.Problem: reliability and trust. Fix: verification, guardrails, traces, budgets, retries, escalation.
    Confidence: the 2022 to 2024 dates are from memory and not re-checked. The 2025 and 2026 rows (hollow dot = fuzzy) come from recent web articles; “harness” and “loop engineering” are recent labels, so expect the definitions to keep moving.

    6. Takeaways

    • An agent is a loop: context → model → tool → result → context. No tools means a chatbot.
    • Quality comes less from the model's words and more from what it sees and how it is checked.
    • Verification (tests, linters, real output) is the loop's reward signal. Prefer deterministic checks.
    • Start with the simplest loop. Add harness layers only when a failure demands one.

    Sources

    Links to

    • How the Lab works What Chaoverse Lab is, how notes are written, and how they get built and published.

    Linked from

    • Jev What TypeSafe's Jev model is (a decision model, not an LLM) and how to use it with omp, Codex, Claude Code and Orca.