Beyond the Brain: How the Harness Shapes AI Agent Behavior

  • #AI Agent
  • #Harness
  • #Cognitive Science
  • #Back to the Classics

Give the same model different tools, context, and workflows, and it may take a different path. Four ideas from research on human decision-making help explain why.

Distributed cognition, bounded rationality, recognition-primed decision-making, and double-loop learning each point to the same question. How does the setting in which someone works shape what they can do?

Would the same cook make a different meal in another kitchen?

Imagine two equally skilled cooks asked to prepare dinner for a group of guests. The first cook is simply told to make something delicious. They have to choose the dishes, decide what to buy, and figure out which dish to start first. They might produce a feast or spend an evening cooking only to learn that the guests dislike the menu.

The second cook knows there will be three guests, one of whom cannot eat spicy food. Dinner must be ready in an hour, the dishes should be mild, and one dish must be fish. This cook also has a process for planning the menu and a kitchen equipped with a refrigerator, an oven, a food processor, and a thermometer.

Partway through cooking, the second cook finds that an ingredient is missing and adjusts the menu. A temperature reading from the oven prompts them to change the cooking time. The two meals can turn out very differently. Even with comparable skill, the instructions, tools, and feedback available to each cook affect the result.

Intelligence may extend beyond the brain

In his 1995 book Cognition in the Wild, cognitive anthropologist Edwin Hutchins studied how a naval crew navigates a ship. At sea, the crew has to keep track of the ship's position, assess its heading, and plan its course. Crew members divide the work, using charts, compasses, and instruments and following procedures for passing along measurements and acting on them.

Hutchins studied this process through the lens of distributed cognition. The chart preserves spatial relationships and position records. Compasses and instruments provide measurements. Procedures determine how information moves between crew members. Together, the crew and its tools share the work of remembering, calculating, and judging, making it possible to do what one person would struggle to do alone.

That made me think about AI agents. When discussing a model, we often start with its parameter count, reasoning ability, and knowledge. Distributed cognition suggests looking at the model together with its tools, context, and execution environment.

I use harness to mean the execution environment and controls built around a model. The harness governs which instructions the model receives, which tools it can call, what context it can use, and how the system proceeds after an action. The base model supplies the underlying capabilities. The harness shapes how they are used in a particular task.

Why does the same person decide differently under different conditions?

Herbert Simon used bounded rationality to explain how people make decisions under real constraints. Memory, attention, access to information, and time are limited, so people rarely examine every possible option. They often look for an option that meets their requirements and is acceptable. Simon called this satisficing.

With only 20 minutes to prepare dinner, you might make the dishes you know best. With a full inventory of ingredients, you can plan the menu more accurately. Add a thermometer, an oven, and a reliable recipe, and you might try a dish you would have avoided before. Information, tools, and time shape which options you can consider and what you ultimately do.

The same questions are worth asking about an AI agent. What instructions did the model receive? What does it know, and which tools can it use? How does it carry out the task, and can it adjust its next step in light of the results?

Tool results can change the next decision

Cognitive psychologist Gary Klein studied how experts, including fire commanders, make decisions in complex situations. His recognition-primed decision model, or RPD, describes how experienced commanders use cues to recognize a situation, identify a plausible course of action, and mentally simulate how it could play out. If the plan looks unworkable, they may adjust it or reassess the situation.

Suppose a commander initially believes a fire is in its early stages, then learns it has spread to higher floors. The update overturns the initial assessment, so the rescue objective and plan may need to change.

Something similar happens when an AI agent uses tools. A model may decide it needs a piece of data and call a database tool. The result becomes part of its context, so the model can update its assessment and decide what to do next. The tool makes the query possible and brings in information the model did not have.

Feedback can change the original question

Organizational learning researcher Chris Argyris distinguished between single-loop and double-loop learning. In single-loop learning, the goal stays fixed and the method changes. If the guests say the fish is overcooked, cook it for less time on the next attempt. Double-loop learning revisits the original goal and assumptions. If the guests turn out to dislike fish, the cook has reason to reconsider the menu itself.

I ran into a similar pattern while discussing a data report with AI. At first we were talking about how to draw the chart. After looking at several examples, considering feedback, and making revisions, I began asking what readers actually needed to see and what the chart should help them understand. That is one reason a conversation over several rounds can be valuable. As evidence and feedback accumulate, we may discover what problem we really need to solve.

How the harness organizes the model's capabilities

Products and frameworks draw the boundaries of the harness differently. This diagram illustrates one way to think about how it organizes the model's interaction with instructions, context, and tools.

How the prompt states the task

The prompt expresses the goal, requirements, and constraints. It affects the starting question, priorities, and criteria for completion. This relates to bounded rationality because the goals and options a decision-maker actually sees shape what they can consider.

What information the context provides

Context includes the current conversation, system instructions, project materials, and earlier tool results. It determines what the model can draw on at a particular step. Through the lens of distributed cognition, some of the information a task needs can come from external materials and tools as the interaction unfolds.

How tools let the model observe and act

Tools let a model search the web, query a database, read files, or run code. The model can act on the environment and observe what happens. Once the results enter its context, they can inform the next decision.

How the harness coordinates execution and feedback

The harness determines when tools are available, how their results come back, and how context is updated. It can also break work into steps and govern when to continue, retry, stop, or seek human judgment. A harness can manage prompts, context, and tools, with the details depending on the system.

The same base model may therefore perform better at search, coding, analysis, or complex tasks in different systems. Feedback matters in particular. A result that overturns an assumption can require the system to reconsider the task. Inaccurate information can also mislead the model, long contexts can introduce distractions, and rigid procedures can limit exploration. Designing a harness involves deciding what information, tools, and feedback should enter the task and when.

AI agent concept Human decision-making In the kitchen
Prompt Goals, rules, and constraints The guests' requests
Harness Procedures and decision strategies The kitchen workflow
Tools Aids for thinking and acting Refrigerator, oven, thermometer
Context Available information, experience, and cues Inventory, menu, cooking notes
Tool feedback Outcomes and feedback from the environment Ingredient availability and oven temperature

The analogies illustrate how working conditions shape decisions. Human cognition and large language models operate through different mechanisms. The diagrams show the relationships discussed here at a conceptual level.

Back to the original question

Put the same cook in a different kitchen and you may get a very different meal. Give the same model a different harness and it may take a different path through the task. The base model supplies the underlying capabilities, while instructions, context, tools, and feedback shape how the system puts them to work.

Alongside research into how to train stronger models, there is a more specific question worth studying. How can we organize a model's interaction with the outside world so it can use the capabilities it already has when the task calls for them?

Further reading