Model, provider, and harness

Lesson 2 of 35 · Working with AI coding agents

A model is the trained system that generates a response from the information supplied to it. A language model produces sequences of tokens, small units used to represent text. It can suggest code and tool requests, but its output can be mistaken or incomplete.

A provider is the service through which a model is made available. It handles access to the running model and may set pricing, usage limits, and data-handling terms. The organization that developed a model need not be the service providing it to you. A self-hosted model is another arrangement: you operate the service yourself.

A harness is the surrounding application that connects the model to the working environment. It can assemble instructions and previous messages, describe available tools, dispatch approved tool requests, and return results to the model. It may also provide a user interface, permissions, and session management. Features vary by implementation.

Your request → harness → model
                 ↑        ↓ tool request
          tool result ← harness → tool → environment
                 ↓
           response to you

For instance, the same model might be offered by two providers with different terms, or used by two harnesses with different tools. Changing the model does not by itself grant file access; changing the harness can change what actions are available. When a result is poor, consider all three layers: the information and model response, the provider or service, and the tools and instructions supplied by the harness.

The person directing the work still owns the decision to accept changes and the responsibility to review them.