Skip to content
Mon, 23 Nov 202613:53:40 CET
AI-News

AI-News

Menu
  • Home
  • Basics
  • Posts
Searching...
No results found
  • Home
  • Basics
  • What Is an AI Agent Harness? Claude Code, Codex, OpenClaw and Hermes Agent
  • Basics

What Is an AI Agent Harness? Claude Code, Codex, OpenClaw and Hermes Agent

EditorialNovember 5, 2026Last reviewed: November 6, 20268 min read
Black robotic hand on a laptop keyboard beside hand tools, illustrating an AI agent harness

Contents

  • TL;DR
  • What an agent harness is
  • Where the word agent comes from
  • Claude Code: loop, tools and limits
  • What a harness must solve: Anthropic's long-running example
  • Codex CLI
  • OpenClaw
  • Hermes Agent
  • What to check when you compare harnesses
  • What this article does not cover
  • Sources

TL;DR

An agent harness is the software around a language model that gives it tools and manages the context it sees. The model reasons, the harness lets it act. Vendors do not all use the word, so compare what each product does.

  • Purpose: A harness lets a model act on files and commands by supplying tools and by managing its context window.
  • Parts: Anthropic's documentation names two components of the loop, models that reason and tools that act, with the harness around them.
  • Origin: Anthropic's Claude Code documentation defines the term, and its post on long-running agents was published on November 26, 2025.
  • Dispute: The Codex and Hermes Agent pages we fetched do not use the word, while the OpenClaw README does.
  • Limit: Anthropic reports that a strong model in a loop still fell short on a web app without added structure.

What an agent harness is

A language model on its own takes text in and gives text out. The article on large language models explains that part: What Is an LLM? Large Language Models Explained

Anthropic's Claude Code documentation describes what changes when tools are added: “Without tools, Claude can only respond with text. With tools, Claude can act”.

The same page names the layer that makes this work: “Claude Code is the layer around the model that provides the tools and manages the context the model sees. This surrounding layer is what the term agentic harness refers to.” The page was last modified on October 30, 2026, according to its own page data.

The page also splits the loop into two components: “The agentic loop is powered by two components: models that reason and tools that act.” The harness is the program that runs that loop. It hands the model its tools and decides what stays in the context window.

Why the context window is a limit is explained in the article on tokens: Tokens and Context Windows: What the Numbers Mean

Where the word agent comes from

Anthropic's post “Building effective agents” was published on December 19, 2024. It draws a line between two kinds of system.

“Workflows are systems where LLMs and tools are orchestrated through predefined code paths.” The post continues: “Agents, on the other hand, are systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks.”

The building block under both is the augmented model. Anthropic describes it as “an LLM enhanced with augmentations such as retrieval, tools, and memory”. One way to connect such tools is the Model Context Protocol: What Is MCP? The Model Context Protocol Explained

The post gives a warning that applies to this whole topic: “we recommend finding the simplest solution possible, and only increasing complexity when needed.” It also carries a note that “Much of the tooling landscape described in this post has changed since December 2024.”

Claude Code: loop, tools and limits

As of November 5, 2026, the Claude Code documentation describes the loop in three phases: “gather context, take action, and verify results”.

The built-in tools “generally fall into five categories”: file operations, search, execution, web and code intelligence.

Context is the harness's second job. The page says the context window “holds your conversation history, file contents, command outputs, CLAUDE.md, auto memory, loaded skills, and system instructions.” When the window fills, Claude Code compacts the conversation. The page admits the cost: “The summary keeps your requests and key code snippets, but detailed instructions from early in the conversation may be lost.”

The harness also sets the safety rules. The documentation lists four permission modes: Auto, Manual, Accept edits and Plan. Before Claude edits a file, it snapshots the contents so the change can be rewound.

Checkpoints have a stated edge. The page says that “Actions that affect remote systems (databases, APIs, deployments) can’t be checkpointed.”

What a harness must solve: Anthropic's long-running example

Anthropic's engineering post “Effective harnesses for long-running agents” was published on November 26, 2025. It names the core problem: agents “must work in discrete sessions, and each new session begins with no memory of what came before.”

The post calls the Claude Agent SDK a “general-purpose agent harness adept at coding”. Anthropic says: “When experimenting internally, we addressed these problems using a two-part solution”.

Anthropic reports two failure patterns. First, the agent tried to do too much at once and ran out of context mid-feature. Second, a later agent instance would “see that progress had been made, and declare the job done.”

The fix had two parts. An initializer agent set up the environment on the first run: an init.sh script, a claude-progress.txt log and an initial git commit. A coding agent then made incremental progress in each later session and left notes for the next one.

For the example of a claude.ai clone, the initializer wrote a list of over 200 features, all marked as failing at the start. Anthropic chose JSON for that file because “the model is less likely to inappropriately change or overwrite JSON files compared to Markdown files.”

A footnote makes a point about the word harness. The two agents differ only in their first prompt: “The system prompt, set of tools, and overall agent harness was otherwise identical.”

The post ends with an open question: “it’s still unclear whether a single, general-purpose coding agent performs best across contexts, or if better performance can be achieved through a multi-agent architecture.”

Codex CLI

The Codex CLI README on GitHub says the product “is a coding agent from OpenAI that runs locally on your computer.” It installs through a script, npm or Homebrew, and you sign in with a ChatGPT plan or an API key. The repository carries the Apache-2.0 License.

The documentation address developers.openai.com/codex resolved to learn.chatgpt.com/docs on November 5, 2026. Its navigation lists Codex CLI, Codex IDE extension and Codex Cloud.

The pages we fetched do not describe the Codex loop or its context handling the way Anthropic's do. This article therefore makes no statement on how Codex manages context.

OpenClaw

The OpenClaw README calls it “an open-source AI assistant that runs on your own computer and meets you in the channels you already use”.

It describes the Gateway as “the local control plane for sessions, tools, events, and channel connections.”

This README uses the word harness too, for a part you can replace: “Models and agent harnesses (Claude, Codex, local models) are plugins you can swap without changing anything else.” The documentation menu lists a page titled “Codex harness configuration”.

The README also states a security default: “Tools run on the host for the main session unless you configure sandboxing.”

The code is under the MIT license. The README says the project is developed by the OpenClaw Foundation, an independent 501(c)(3).

Hermes Agent

The Hermes Agent documentation, by Nous Research, opens with “The self-improving AI agent built by Nous Research.”

On models, the README says: “Use any model you want”. On tools, the documentation lists MCP support: “Connect to any MCP server for extended tool capabilities”.

For where the tools run, the documentation names “6 built-in terminal backends (local, Docker, SSH, Daytona, Modal, Vercel Sandbox)”. It also says it can be reached from “20+ platforms from one gateway”. Hermes Agent is licensed under the MIT license.

The two Nous Research pages we fetched disagree on size. The README table says “40+ tools”, while the documentation home page says “60+ built-in tools”. As of November 5, 2026, we cannot tell which count is current.

What to check when you compare harnesses

Each point comes from a page quoted above.

1. Which models it accepts. Claude Code “uses Claude models”, and its overview page adds that the Terminal CLI, VS Code and JetBrains also support third-party providers. Hermes Agent says “Use any model you want”.
2. Where tools run. OpenClaw runs tools on the host unless you configure sandboxing. Hermes Agent lists six terminal backends.
3. How context survives. Claude Code compacts and may lose early instructions. Anthropic's long-running example uses a progress file and git history.
4. What you can undo. Claude Code snapshots files before edits, but remote actions cannot be checkpointed.
5. Under which license. Codex CLI states Apache-2.0, OpenClaw and Hermes Agent state MIT. The Claude Code pages we fetched state no license.

What this article does not cover

It does not rank the four products and does not report benchmarks. We did not run the products ourselves. Every statement comes from the vendor pages and repositories listed below, fetched on November 5, 2026. These products change fast, so recheck a vendor page before you rely on a detail.

Sources

  • Anthropic, Claude Code Docs, How Claude Code works: https://code.claude.com/docs/en/how-claude-code-works
  • Anthropic, Claude Code Docs, Overview: https://code.claude.com/docs/en/overview
  • Anthropic, Building effective agents (December 19, 2024): https://www.anthropic.com/engineering/building-effective-agents
  • Anthropic, Effective harnesses for long-running agents (November 26, 2025): https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents
  • OpenAI, Codex CLI README: https://raw.githubusercontent.com/openai/codex/main/README.md
  • OpenAI, Codex documentation: https://developers.openai.com/codex
  • OpenClaw, README: https://raw.githubusercontent.com/openclaw/openclaw/main/README.md
  • OpenClaw, documentation: https://docs.openclaw.ai/
  • Nous Research, Hermes Agent README: https://raw.githubusercontent.com/NousResearch/hermes-agent/main/README.md
  • Nous Research, Hermes Agent documentation: https://hermes-agent.nousresearch.com/docs

Share this article

Add AI-News as a preferred source on Google

Add AI-News as a preferred source on Google

Post navigation

Previous: Open-Weight vs Closed Models: What the Difference Means
Next: DeepSeek, Kimi and Qwen: The Chinese Model Families

Related stories

Monitor showing a blurred code editor with a file tree, illustrating AI coding assistants
  • Basics

What Are AI Coding Assistants? Cursor, Claude Code and Codex by What They Do

EditorialNovember 6, 2026
A wall of closed metal drawers with a single drawer pulled open, suggesting a tool library opened only when needed, with the
  • Tools

Google adds Tool Retrieval to Gemini API to trim tool schemas

EditorialNovember 23, 2026
Compact automotive computing module with a heat sink on a workbench beside a camera lens, with a city street behind at dusk
  • Models

NVIDIA Releases Alpamayo 2 Edge, a Compact Open Driving Model

EditorialNovember 23, 2026

Never miss an article

Subscribe via RSS

Add the feed address to a feed reader and new articles arrive on their own.

Related categories

  • Basics
  • Business
  • Hardware
  • Models
  • Policy
  • Safety
  • Science
  • Tools

ABB RoboticsAcquisitionsAcrobatAdobeAgent harnessAgentic AIAgentic CommerceAgentsAI AgentsAI chipsAI Data CentersAI InvestmentAI ModeAI ModelsAI RegulationAI securityAI stocksAI ValuationAir Traffic ControlAlpamayoAlphabetAlphaGenomeAMDAndroid GoAnthropicAPIApiiroApplied ComputeAuditingAutonomous DrivingAutopilotAzureBallot MeasuresBankingCaliforniaCapitalGCarbon EmissionsCaterpillarCEO SuccessionCerebrasChatGPT WalletChinaChina ChipsChip smugglingCitibankClaudeClaude CodeCodingColette KressCompilersComputer UseConfidential ComputingCopilotCorporate GovernanceCrusoeCyberattacksCybersecurityData Center CPUsData CentersDDR6DeciderDecision ModelsDeepMindDeepSeekDeveloper APIDrug DiscoveryDynamoEarningsElon MuskEmbeddingsEPYCEUExport controlsFAAFine-tuningFlight DisruptionFRCFunction CallingFundingGas turbinesGeminiGemini 4 CarbonGemini 4 HydrogenGemini 4 NeonGemini APIGemini appGemini for healthcareGemini RoboticsGenie 4GenomicsGitHubGoogleGoogle AntigravityGoogle ClassroomGoogle CloudGoogle DeepMindGoogle SearchGoogle Threat IntelligenceGoogle TPUGPT-6 AstraGPUGrokHallucinationHBMHealthcare AIHistoryHugging FaceHumanoid robotsHy4HyperscalersIBMInferenceIntelIntel FoundryInteractive ConnectorsIPOIsomorphic LabsJavaJEDECJensen HuangJet enginesKimiKPMGKV CacheL3HarrisLangChainLanguage ModelsLeanLLMLocateLuxmacOSMCPMCP AppsMegaspeedMemoryMetaMeta AIMicrosoftMicrosoft 365Microsoft CopilotMidterm electionsMLCommonsMLPerfMobile AIMoratoriumMultimodalNasdaqNational SecurityNet ZeroNetwork OutageNighthawkNVIDIAOffice in CopilotOpen DataOpen weight modelsOpen-weightOpenAIOpenJDKOutageOutlookPalo Alto NetworksPerplexityPetitionPower generationProject GeniePromptingQuantum ComputingQuantum HardwareQwenRAGReasoningRegulationRiemann hypothesisRobot SafetyRoboticsRubin HPCSafetySearchSEC InvestigationSecuritySingle-cell biologySMART SystemSoftBankSoutheast AsiaStationeryBenchSupercomputersSupercomputingTencentTogether AITokensTool RetrievalTOP500TransformerTSMCUS CongressUS MidtermsValuationVera RubinVision Language ActionWeather ForecastingWeatherNextWells FargoWorld ModelsWyomingxAIZen 6

You may have missed

A dim server room aisle with dark racks and a single rack glowing red status lights, with the Google logo in the lower left
  • Safety

Google says hackers automated vulnerability hunting with no human

EditorialNovember 23, 2026
Heavy closed steel bank vault door in a dim marble hall with a small brass key on a stone counter
  • Business

Wells Fargo and Citi Tell Customers AI Agent Risk Is Theirs

EditorialNovember 23, 2026
Rows of equipment racks with network routers and cables in a dim telecommunications room
  • Safety

FAA Ground Stop Traced to Router Work, Cause Still Disputed

EditorialNovember 23, 2026
Close-up of a copper heat sink with fine fins and a black fan
  • Hardware

JEDEC previews DDR6 memory with shorter, much faster modules

EditorialNovember 22, 2026
AI-News

AI-News for the web

Navigation

  • Home
  • Basics
  • Posts

Subscribe

  • RSS feed
  • Add AI-News as a preferred source on Google

    Add AI-News as a preferred source on Google

About

A blog about software, design, and the occasional stray thought.

© 2026 AI-News.