Barefoot AI HubTHE BAREFOOT FREELANCER
Start learning
⬢ AI Agents · Lesson 7 of 7

12Agent Harnesses: Hermes, Claude Code & More

Stop writing agent loops from scratch. Install Hermes Agent, connect it to a local Ollama model, give it real work and reach it from Telegram — plus how to choose among other harnesses.

⏱ 30 min📶 Advanced🧪 3-question check

What you'll learn

  • Explain what an agent harness provides
  • Install and configure Hermes Agent with a local or cloud model
  • Use skills, memory, scheduling and the messaging gateway
  • Compare Claude Code, OpenHands, Aider, CrewAI and LangGraph

What is a harness?

In Lesson 09 you wrote an agent loop by hand. A harness is production-ready software that provides everything around the model: the loop, a toolbox (files, terminal, web, browser), context management, memory, permissions, scheduling and interfaces (terminal, desktop, chat apps). You bring the model and the goals.

You write yourselfA harness gives you
The think → act → observe loopA tested loop with retries, context compaction and limits
Every toolBuilt-in file, shell, web search, browser and MCP support
MemoryPersistent memory and reusable skills
An interfaceCLI/TUI, desktop app, and messaging gateways
SchedulingBuilt-in scheduled tasks and delivery

Hermes Agent (Nous Research)

Hermes Agent is an open-source (MIT-licensed) personal agent. Its standout feature is a learning loop: it creates skills from experience, improves them as it uses them, keeps persistent memory across sessions, and can run scheduled tasks and reach you on Telegram, Discord, Slack, WhatsApp, Signal or email. It works with cloud providers or any OpenAI-compatible endpoint — including your own Ollama.

Step 1 — Install

terminalbash
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
source ~/.bashrc        # or: source ~/.zshrc
powershellpowershell
iex (irm https://hermes-agent.nousresearch.com/install.ps1)

Prefer an app? Download Hermes Desktop from the Hermes website; it bundles the agent and its runtime.

The installer sets up its own Python, Node.js and other dependencies. Run hermes doctor any time to diagnose problems.

Step 2 — Choose a model

Hermes needs a model with a large context window — its docs call for at least 64,000 tokens. Ollama's default context is much smaller, so raise it before connecting:

terminalbash
# pick a strong tool-calling model that fits your hardware
ollama pull qwen3:14b

# start Ollama with a 64K context window
OLLAMA_CONTEXT_LENGTH=65536 ollama serve

Then, in another terminal:

terminalbash
hermes model
#  → choose "Custom Endpoint"
#  → Base URL:  http://localhost:11434/v1
#  → Model:     qwen3:14b
terminalbash
hermes model          # pick a provider (OpenRouter, OpenAI, and others) and paste your API key
# or the one-step option from Nous Research:
hermes setup --portal # OAuth login + model + web search, image, TTS & browser tools

Step 3 — Start working

terminalbash
hermes          # classic CLI
hermes --tui    # modern terminal UI
hermes -c       # continue your last session

Try real tasks:

inside hermesprompt
› Read ~/clients/kape/discovery-notes.md and draft a one-page website proposal
  in proposal.md using my usual structure: goals, scope, timeline, price.

› Search the web for 5 cafés in Iloilo with no online ordering, and save
  name, link and notes to ~/leads/cafes.csv

› /tools          (see what tools are enabled)
› /model          (switch models mid-session)

Step 4 — Skills & memory

When Hermes completes a multi-step task, it can save the procedure as a skill — a reusable instruction file it reloads next time a similar task appears, and refines as it goes. Its memory stores facts about you and your projects across sessions. Skills follow the open Agent Skills format, so you can also write or share them.

Step 5 — Reach it from your phone

terminalbash
hermes gateway setup    # connect Telegram, Discord, Slack, WhatsApp, Signal, email…

With the gateway running (on your computer or a small always-on server), you can message your agent: “Every Monday 8am, summarize last week's leads and send them here.” Hermes supports scheduled tasks with delivery to your chat platform. See the messaging guide for platform-specific steps.

Step 6 — Add tools with MCP

Hermes can connect to MCP servers — like the invoice server you built in Lesson 11. Follow the Hermes MCP guide to register servers, then control which tools each platform may use with hermes tools.

Other harnesses worth knowing

⌘

Claude Code

Anthropic's agentic coding tool for the terminal and IDE: reads your codebase, edits files, runs commands, uses MCP and skills. The same harness is available as the Claude Agent SDK for building your own agents.

codingSDK
🙌

OpenHands

Open-source software-engineering agent platform that works in a sandbox: writes code, runs tests, browses documentation. Docs.

open sourcecoding
🧑‍💻

Aider

Terminal pair-programmer that edits files in your Git repo and commits each change. Works well with local models: aider --model ollama_chat/qwen3:14b. Docs.

open sourcelocal-friendly
👥

CrewAI

Python framework for role-based agent teams (researcher, writer, analyst) that collaborate. Docs.

multi-agent
🕸️

LangGraph

Low-level framework for stateful agents as graphs, with checkpoints and human-in-the-loop. Choose it for precise control. Docs.

framework
🧩

OpenAI Agents SDK / Pydantic AI

Lightweight code-first SDKs for building agents with tools, handoffs and guardrails. OpenAI Agents SDK · Pydantic AI.

SDK

Which should you use?

If you want…Start with
A personal, always-on assistant that learns and messages youHermes Agent
To build and fix websites or code fasterClaude Code, Aider, OpenHands
To ship an agent inside your own productClaude Agent SDK, OpenAI Agents SDK, Pydantic AI
Precise control over a complex business processLangGraph
A team of role-based agentsCrewAI
No code at alln8n AI Agent node, Dify, Flowise (Track 3)

Key takeaways

  • A harness provides the loop, tools, memory, scheduling and interfaces so you only bring the model and goals.
  • Hermes Agent: open source, self-improving skills, persistent memory, scheduled tasks and chat gateways.
  • Local models for Hermes need a big context window (64K+) and serious hardware; cloud models are the easier start.
  • Pick harnesses by job: Hermes for personal ops, Claude Code/Aider/OpenHands for code, SDKs/LangGraph for products.

Knowledge check

0 / 3

Q1What does an agent harness provide?

Q2Minimum context window Hermes Agent's docs call for?

Q3Which command connects Hermes to Telegram and other chat apps?

Finished this lesson?Your progress is saved in this browser.