What is an agent harness?

AI models are powerful, but they don’t take action themselves. A model processes a request it receives and writes a reply. That is all. To let one act, we build an agent harness, code that processes the model’s responses and runs code itself. This lets the model give instructions that the harness can run.

The User

    Loop waiting

    Context

    In context sent to the model on every call. cached

        Tools

        listed at the top of the context

        Type in the User box, or wait and it will ask itself a question.

        Model

        a text, image or voice model this one: text in, text out
        Cost
        in: 0 tokens, 0 cached
        out: 0 tokens
        $0.00000 so far

        The model in this drawing is a short list of known replies to known questions. The loop, the context and the tools are real code, and the clock and the dice are live. View source to read all of it. Tokens are counted as four characters each, and the prices are examples.