An LLM is a neural network trained to predict the next token. It cannot run a shell command, edit a file, or remember anything between calls. Agent tasks like fixing bugs require a three-layer system — harness, API, and inference — to bridge token prediction and real-world actions.
The article explains why AI applications like Codex are not just LLMs but systems with three layers (harness, API, inference), because an LLM on its own can only predict tokens and cannot execute actions or maintain state between calls.
transcript
Artificial Analysis: An LLM is a neural network trained to predict the next token. It takes a sequence of tokens as input and produces a sequence of tokens as output. It cannot run a shell command, edit a file, or remember anything between calls. But an agent task like "fix this bug and run the tests" is mostly actions. Something has to turn the model's predicted tokens into real commands, feed the results back, and continue until the task is done. That is the job of the harness layer, a system built on top of the LLM to handle those responsibilities. It takes the user's task as input, decides which instructions, which tool definitions, and how much history to include in the context, and maintains the conversation history. When the model responds with a tool call, the harness executes it under approval policies in a sandbox environment, appends the result, and sends the conversation back to the LLM.