Skip to content
← Guides

Guide · Agents

AI agent harnesses: OpenClaw, Hermes Agent, Claude Code, Codex and goose compared

What an agent harness is and which one to choose: OpenClaw and Hermes Agent for 24/7 assistants, Claude Code and Codex for coding, goose as the open alternative. Security included.

Updated
Oct 17, 2026
Reading time
11 min
Tools
5

Short answer: if you want an assistant that works 24/7 and talks to you via Telegram or WhatsApp, choose between OpenClaw and Hermes Agent. If what you want is to code with an agent, Claude Code or Codex. If you’re looking for something open, desktop-based and model-agnostic, goose. And many teams combine two: one for code and another for recurring tasks.

Deciding for a company rather than a technical team? Start with AI agents for business: real use cases by department. To install them: OpenClaw and Hermes Agent, at home or in the cloud, with a local or paid model.

We see it in the lab every week: two teams using the same model get opposite results because of the harness. The model supplies the intelligence; the harness decides what it can touch, what it remembers and when it stops.

What a harness is (and why it matters more than it seems)

A harness is the layer that turns a language model into an agent that does things. It has five parts:

  1. Model. The brain you plug in: Claude, GPT, Gemini, open or local models.
  2. Work loop. How it decides the next step, when it asks for help and when it finishes.
  3. Tools. Terminal, browser, files, APIs, MCP.
  4. Memory and skills. What it remembers between sessions and which procedures it knows how to repeat.
  5. Permissions. What it can do without asking, where it runs and who can give it orders.

The failures we see in production are almost never the model’s: they’re memory failures (the agent forgets), context failures (it fills up with junk and degrades) or permission failures (it does something it shouldn’t). We analyse this in context engineering and in durable execution.

How to choose

  • For what job? Personal assistant and automations, or software development.
  • Where does it live? Your laptop, a server, a container or the cloud.
  • How do you talk to it? Terminal, editor, desktop app or messaging.
  • Which model? Free choice or tied to one provider.
  • What security does it bring? Command approval, sandbox, control over who messages it.
  • Licence? Open source (MIT, Apache 2.0) or commercial product.

The harnesses, one by one

OpenClaw

OpenClaw is an open-source assistant (MIT licence) that runs on your computer or server and talks to you through the channels you already use: Telegram, WhatsApp, Slack, Discord, iMessage, Teams and more. Its core is a local gateway that manages sessions, tools and channels; the model plugs in as an add-on. It’s run by an independent foundation with no paid plan.

  • Who it’s for: anyone who wants an always-available personal or team assistant.
  • Best part: its security approach: a trusted gateway, untrusted execution and policies enforced in code. By default, strangers who message it have to be approved.
  • The catch: without a configured sandbox, tools run on your machine. We explain it in how to install OpenClaw at home or in the cloud, securely.

Hermes Agent

Hermes Agent, from Nous Research (MIT licence), describes itself as the agent that “grows with you”. What sets it apart is a learning loop: it creates skills from complex tasks, improves them with use, keeps persistent memory about the user and searches its past conversations. It comes with a task scheduler (cron) that delivers results to any channel, can launch subagents in parallel and can run locally, in Docker, over SSH and in serverless environments.

  • Who it’s for: anyone who wants an agent that works on its own on recurring tasks: reports, posts, monitoring.
  • Best part: skills compatible with the open agentskills.io standard, any model provider and automatic migration from OpenClaw (memories, skills and configuration).
  • The catch: the more autonomous it is, the more it matters to limit it. Its security documentation covers command approval, direct-message pairing and container isolation: turn them on.

We put it to the test running our own lab: it’s described in the experiment Mortadelo: a Hermes agent running Yeswelab. To set it up yourself, at home or in the cloud, with a local or paid model and Telegram, follow how to install Hermes Agent.

Claude Code

Claude Code is Anthropic’s coding agent. It lives in the terminal, in the editor, in a desktop app and on the web; it understands the whole repository, edits multiple files, runs tests and commands, and can be extended with skills, subagents, hooks and MCP servers.

  • Who it’s for: developers and technical teams.
  • Best part: end-to-end work on real code, with permissions configurable per tool and command.
  • The catch: designed for Anthropic’s models; the software isn’t open source.

Codex

Codex is OpenAI’s coding agent: an open-source CLI (Apache 2.0) that runs in your terminal, plus editor and cloud versions.

  • Who it’s for: teams working with OpenAI’s models.
  • Best part: an open, lightweight CLI, with approval modes and a sandbox.
  • The catch: like Claude Code, it’s designed for a specific provider.

goose

goose is a general-purpose open-source agent (Apache 2.0), written in Rust, with a desktop app for macOS, Linux and Windows, a CLI and an API. It works with more than 15 model providers, including local ones via Ollama, and is part of the Linux Foundation’s Agentic AI Foundation.

  • Who it’s for: anyone who wants an open agent with a graphical interface and no provider lock-in.
  • The catch: less geared towards being a 24/7 messaging assistant than OpenClaw or Hermes.

Comparison table

Harness Designed for Licence Model Channels
OpenClaw 24/7 assistant MIT Any Messaging, apps, dashboard
Hermes Agent Learning assistant and scheduled tasks MIT Any Messaging, terminal
Claude Code Coding Commercial Anthropic Terminal, editor, desktop, web
Codex Coding Apache 2.0 (CLI) OpenAI Terminal, editor, cloud
goose Open general-purpose agent Apache 2.0 Any Desktop, terminal, API

GitHub popularity as of 17 October 2026, for reference: OpenClaw has around 392,000 stars, Hermes Agent 254,000, Claude Code 151,000, Codex 130,000 and goose 55,000. Stars measure interest, not quality.

Combining them: what people actually do

The most common pattern in the community is one for code and another for everything else: Claude Code or Codex for development, and OpenClaw or Hermes for the assistant that works on its own, posts, monitors and alerts. It makes sense: coding harnesses are optimised for intense sessions on a repository; assistant harnesses, for being always on and listening to channels.

Security: the minimum before letting it loose

An agent with a terminal and access to your messages is a door. Whatever the harness:

  • Who can talk to it: only you. Pairing or an allow-list on every channel.
  • Where it runs: a container or sandbox for anything that touches the terminal.
  • What credentials it has: the minimum, read-only where possible, and never inside the model’s context. See credential confinement.
  • What it does without asking: nothing irreversible (publishing, paying, deleting, sending) without an explicit rule.
  • What it reads: any web page, email or mention the agent reads can carry hidden instructions. Treat it as untrusted input.

What we would do in the lab

If your company is torn between building its own agent with one of these harnesses or hiring a closed platform, we would measure it with your real tasks: how many it completes without intervention, how much it costs in tokens per month, how long it takes and what happens when we try to slip it malicious instructions.

Need to choose a harness for your team? Commission the duel.

Frequently asked questions

What is an AI agent harness?

It's everything around the language model that lets it work on its own: the loop that decides the next step, the tools it can use, memory across sessions, permissions and the channels you talk to it through. The model thinks; the harness gives it hands, memory and limits.

What's the difference between OpenClaw and Hermes Agent?

Both are open-source assistants that live on your machine or server and talk to you via Telegram, WhatsApp, Slack and other channels. OpenClaw focuses on a trusted gateway with policies enforced in code. Hermes Agent, from Nous Research, focuses on a learning loop: it creates and improves its own skills and has a built-in task scheduler. Hermes can even import OpenClaw's configuration, memories and skills.

Are Claude Code and Codex useful for anything besides coding?

They were built for coding and that's where they shine most, but since they read files, run commands and use tools, they're also used for data, documentation or automation tasks. For a personal assistant that runs 24/7 and replies via messaging, OpenClaw or Hermes are a better fit.

Which AI agent harness is the most secure?

None is secure by default if you give it access to everything. What makes the difference is configuration: command approval, pairing to control who can message it, running in a container or sandbox, and least-privilege credentials. All the ones in this guide have mechanisms for this; you have to turn them on.

Can I use these agents with local models?

OpenClaw, Hermes Agent and goose let you connect local models or any provider's. Claude Code is designed for Anthropic's models and Codex for OpenAI's.

#OpenClaw#Hermes Agent#Claude Code#Codex#goose