Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

What an AI Agent Harness Does—and Why Tool Loading Affects Cost

AI summary

OpenRouter describes an agent harness as the execution layer around an AI model: it runs the conversation loop, checks requested actions, executes permitted tools, manages context, and enforces permissions and limits. In its small test, adding 40 unused tools increased Claude Haiku 5.5’s median uncached session cost from $0.00082 to $0.00277; with caching enabled, the 44-tool configuration had a median cost of $0.00071. OpenRouter also argues that two harnesses using the same model can behave differently because they supply different tools, context, conversation history, and stopping conditions.

In-depth insight

The report shows how harness design—not just model choice—can affect an agent’s available actions, execution controls, and session cost.

What Is an Agent Harness? How It Works, Explained

OpenRouter ·12/1/2026

What Is an Agent Harness? How It Works, Explained
What Is an Agent Harness? How It Works, Explained

An agent harness is the software around an AI model that runs the conversation loop, executes tools, manages context, and enforces permissions and limits. When you ask a coding agent to fix a bug, the harness supplies the files and test results the model needs, then executes the actions it requests.

The tools and context a harness gives the model affect what the agent can do and how much a session costs. A harness that sends dozens of tool definitions on every call can use more input tokens than one that loads tools only when needed, even when both use the same model.

#OpenRouter#Claude Haiku 5.5#Claude Opus 5.5#Claude Sonnet 5.5#GPT-6.1 Sol#Claude Code#Codex#Hermes Agent#Kilo Code#OpenRouter Agent SDK#Ori Harness

Original · 11 min readRead the original
Group chat

No comments yet. Start the conversation.