Hermes Agent: The Open-Source AI Agent That Actually Remembers What It Learned Yesterday
Every AI agent you’ve used has the same problem. You teach it something on Monday. By Tuesday, it’s forgotten everything. You’re back to square one, re-explaining your project structure, your preferences, your entire workflow. It’s like training a new intern every single morning.
Nous Research built Hermes Agent to kill that cycle.
Hermes is an open-source, self-hosted AI agent that runs on your own server, learns from every task it completes, and gets measurably better the longer you use it. Since launching in February 2026, it has collected over 64,000 GitHub stars and triggered what developers are calling a migration wave away from OpenClaw, the previously dominant open-source agent framework.
The interesting part isn’t the adoption numbers. It’s the architecture underneath, and what it means for anyone who wants an AI that compounds in value over time instead of resetting to zero every session.
The Core Idea: An Agent That Writes Its Own Playbook
When Hermes completes a task successfully, it doesn’t just log the result and move on. It runs a post-execution evaluation, identifies the exact sequence of steps, tool calls, and reasoning that produced the outcome, then codifies that sequence into a reusable “Skill” document. A markdown file the agent references the next time it encounters a similar task.
This is what Nous Research calls the closed learning loop: execute, evaluate, extract, refine, retrieve. And it compounds. According to benchmarks published by Nous Research, an agent running self-created skills completed research tasks 40% faster than a fresh instance with zero prompt tuning.
Your Hermes instance running on a $5 VPS for three months knows your codebase, your deployment quirks, your preferred commit message format, and the exact API call sequence that works for your weird legacy integration. A fresh install knows none of that.
Skills vs. Tools: A Critical Distinction
Hermes makes a sharp architectural distinction between Skills and Tools that matters more than it sounds.
Tools are Python functions exposed to the AI model via a JSON schema. They execute deterministically. Think browser automation, file manipulation, streaming processes. Changing them means editing core Python files.
Skills are markdown documents. The agent reads them like instructions and follows the documented procedures autonomously. Here’s the critical part: the agent can author its own Skills. No code changes required. No human editing a config file. The agent watches itself succeed at something, writes down how it did it, and stores that knowledge for next time.
The agent gets smarter without ever touching its own source code. The deterministic tool layer stays stable and safe. The knowledge layer grows continuously.
The Four-Tier Memory System
Too little context and the agent makes bad decisions. Too much and you burn through tokens, spike latency, and the model starts forgetting instructions buried in a massive prompt. Hermes solves this with four tiers, stratified by how urgently the agent needs the information.
Tier 1: Agent’s Personal Notes (MEMORY.md) stores environmental facts, project conventions, and operational lessons. It’s capped at roughly 800 tokens and gets injected directly into the system prompt at session start. Think of this as the agent’s cheat sheet.
Tier 2: User Profile (USER.md) maintains a model of who you are, your technical proficiency, timezone, communication style. Around 500 tokens. Also injected at startup.
Tier 3: Session Search archives everything across all historical sessions in a SQLite database. The agent queries this on-demand using full-text search combined with LLM summarization. This is where the deep historical context lives.
Tier 4: External Memory Plugins connect to graph-based retrieval systems like LightRAG, Supermemory, or custom vector stores. This is where things get serious for enterprise use, enabling multi-hop queries across complex relationship maps.
The first two tiers use a “Frozen Snapshot” pattern: changes get written to disk immediately but don’t modify the active system prompt until the next session starts. This preserves the language model’s prefix cache, keeping latency low throughout long sessions. Mutating the prompt mid-conversation would invalidate that cache and tank inference speed.
There’s also a “periodic nudge” mechanism that’s worth understanding. Instead of passively waiting for you to tell it to save something important, the Hermes runtime actively prompts the agent during idle moments to evaluate recent interactions and extract critical facts before the context window fills up and older turns get compressed away. Facts the agent doesn’t flag during this explicit flush simply don’t survive. It’s a use-it-or-lose-it approach to memory management.
Deep Research: Not Just Fancy Web Search
When you hand Hermes a complex research task, it starts by invoking a think_tool, a forced strategic pause that compels the model to articulate an actual investigation plan before doing anything. Map the data vectors. Define scope. Formulate hypotheses. Only after this planning phase can the agent start executing.
Then it parallelizes.
The ConductResearch tool doesn’t fire off a single query. It delegates specific research topics to independent sub-agents, each running with their own clean context window, isolated terminal session, and restricted toolset. One sub-agent might scrape regulatory filings via a headless browser. Another queries a database. A third runs Python scripts to generate statistical analysis. They execute simultaneously and return structured JSON to the primary orchestrator.
After the parallel work completes, the agent invokes think_tool again. This second pass forces synthesis: evaluate what came back, check for gaps, determine if the objective is met. If not, the loop iterates with new research vectors. If so, it calls ResearchComplete and moves to report generation. Predefined depth boundaries prevent infinite recursion.
For the final report, modular mini-reports get merged by a large-context model (minimum 64K token window) into a cohesive, cited document.
The Security Story: Why This Matters More Than Features
Here’s where the comparison with OpenClaw gets uncomfortable for OpenClaw users.
Between March 18 and 21, 2026, nine CVEs dropped against OpenClaw in four days, including a CVSS 9.9 critical vulnerability that allowed authenticated users to escalate to admin privileges. By early April, security researchers were tracking 138 CVEs discovered over a 63-day window. That’s roughly 2.2 new vulnerabilities per day.
The supply chain numbers are worse. Security firm Antiy CERT confirmed 1,184 malicious skills in the ClawHub marketplace, approximately one in five packages at peak. SecurityScorecard found over 135,000 OpenClaw instances exposed to the public internet with insecure defaults. The ClawHavoc campaign didn’t need to find a vulnerability. Attackers just uploaded convincing-looking skills and waited for people to install them.
Hermes takes a fundamentally more conservative approach. Because the agent generates its own skills internally based on your specific workflows, it bypasses the external supply chain attack vector entirely. You’re not pulling executable code from a public registry authored by anonymous contributors. The agent is writing its own operational knowledge from observed successes in your environment.
On the infrastructure side, Hermes enforces mandatory container isolation for terminal execution, cryptographic namespace segregation for sub-agent processes, and dynamic credential rotation. It scans for prompt injection before injecting any external data into the system prompt. OpenClaw’s patch response time has been fast, often same-day, and the project isn’t fundamentally broken. But the architectural attack surface difference is real.
Putting Hermes Into Practice: Your Weekend Setup Guide
You need Git installed. That’s it. The installer handles Python 3.11+, Node.js v22, ripgrep, and ffmpeg. Runs on Linux, macOS, WSL2, and Android via Termux. No native Windows support.
Step 1: Install
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
The installer detects your OS and provisions dependencies automatically. Python runs through uv, a Rust-based package manager that creates an isolated virtual environment without sudo.
Step 2: Run Setup
hermes setup
hermes setup
The interactive wizard walks you through model selection and initial configuration. If you’re coming from OpenClaw, the wizard auto-detects ~/.openclaw and offers to migrate your settings, memories, skills, and API keys.
Step 3: Choose Your Model
hermes model
hermes model
Hermes is model-agnostic. You can connect to Anthropic, OpenAI, DeepSeek, or OpenRouter (which gives you access to 400+ models through a single endpoint). For deep research tasks, you need a model with at least 64K context tokens.
If you want zero API costs and full data privacy, pull a local model through Ollama:
ollama pull qwen2.5-coder:32b
ollama pull qwen2.5-coder:32b
Then point Hermes at your local endpoint: http://localhost:11434/v1. Full autonomy, no external API calls, no data leaving your machine.
Step 4: Set Up a Gateway (Optional but Powerful)
hermes gateway setup
hermes gateway setup
Bind Hermes to Telegram, Discord, Slack, WhatsApp, or Signal. The gateway runs as a persistent background service, so you can message your agent from your phone while it runs heavy tasks on your server. For Telegram, register a bot via BotFather, grab your User ID via @userinfobot, and plug both into the config.
One caveat: messaging interfaces work great for monitoring and async updates, but they’re inherently linear. For deep collaborative work like complex codebase changes, a messaging thread becomes a bottleneck fast. Use the CLI or a dedicated workspace for that kind of interaction.
Step 5: Containerize Your Execution (Do This)
hermes config set terminal.backend docker
hermes config set terminal.backend docker
This ensures all agent-generated code runs inside an isolated container. If something goes wrong, your host system stays untouched.
Step 6: Let It Learn
Start with simple, repeatable tasks: weekly reports, PR reviews, API data processing, research compilation. Watch the Skills directory. After successful completions, you’ll see new .md files appearing, the agent’s self-authored playbooks. After a few weeks, tasks that took minutes start taking seconds.
Where Hermes Falls Short (Honest Assessment)
The hardware reality of local inference. The article’s own suggestion of pulling qwen2.5-coder:32b via Ollama for free local inference deserves a reality check. Running the primary orchestrator on a 32B model is fine. But the Deep Research parallelization described earlier, where multiple sub-agents each need their own active inference thread and clean context window, demands serious GPU resources. A more realistic local setup uses a smaller quantized model for sub-agent routing and data extraction, reserving the 32B model for the primary orchestrator and final synthesis. If you’re on a single consumer GPU, expect the parallel research workflows to bottleneck hard.
Self-authored skills are brittle. The internal skill system bypasses OpenClaw’s supply chain risks, but markdown playbooks break when the world changes underneath them. If a legacy API updates its auth flow or a website redesigns its DOM, the agent’s memorized procedure fails. Unlike deterministic workflow tools with visual error-handling paths, Hermes has to fail, re-evaluate, and rewrite the skill from scratch. The learning loop handles this, but it’s not instant.
Skip Tier 4 memory unless you actually need it. The article mentions LightRAG and Supermemory integrations, but for most single-server setups, the SQLite full-text search (Tier 3) provides the best balance of speed and recall. Keeping flat MEMORY.md files synchronized with a heavy external vector database introduces latency and state-conflict issues that aren’t worth the overhead unless you’re running enterprise-scale multi-agent workflows.
Setup complexity is real. OpenClaw gets you from install to working agent faster. If you need 50+ platform integrations and consumer-grade simplicity, OpenClaw remains the more accessible choice.
The framework is two months old. Version 0.8.0 shipped on April 8, 2026, and development velocity is aggressive. But the project is still maturing. Expect rough edges.
The self-improvement is incremental, not magical. The 40% benchmark improvement came from sustained usage over weeks, not a quick demo. Don’t expect overnight transformation.
The Bigger Picture
The AI agent space is splitting into two camps. Connectivity (OpenClaw’s bet: connect to everything, everywhere) versus cognition (Hermes’s bet: get smarter over time). Both are valid for different use cases. Some teams are running both, using OpenClaw for intake and routing, Hermes for deep analytical work.
For anyone running the same complex workflows repeatedly, the compounding advantage of an agent that actually learns is hard to ignore. The install takes five minutes. The learning loop takes care of the rest.
If you found this useful, I write regularly about AI agents, developer tooling, and the infrastructure that makes autonomous systems actually work. Follow along for more hands-on breakdowns you can put into practice.


