Open Source
Open Source

hermes-agent: The Self-Improving AI Agent (228k stars)

NousResearch/hermes-agent is an AI agent with a built-in learning loop - 227,993 stars, Python, MIT license, created 2025-07-22, pushed today. Core features: skill distillation from experience, self-improvement, knowledge persistence, past-conversation search, Honcho user modeling, 7 backends (incl. serverless sleep), model-agnostic, multi-platform messaging gateway.

Published August 10, 20268 min read
<!-- hermes-agent-resource | open-source | hermes-agent: The Self-Improving AI Agent (228k stars) -->

NousResearch/hermes-agent bets on a direction few others do: an AI agent that "grows with you." Not a disposable tool, but one that understands you better the more you use it — after complex tasks it automatically distills skills, periodically persists knowledge, searches its own past conversations, and uses Honcho to build a deepening user model across sessions. 227,993 GitHub stars (~228k), 44,784 forks, primary language Python, MIT license, created 2025-07-22, last push today (2026-08-10), trending this week. Built by Nous Research, a well-known open-source AI research org. Its differentiator in one line: other agents are tools you call; hermes is an agent that grows alongside you.

Boundaries first: this piece is assembled from hermes-agent's GitHub README and official docs site (hermes-agent.nousresearch.com), with facts as of 2026-08-10. Star counts move in real time — treat GitHub as the source of truth. This is a standalone deep dive, complementary to but independent of this site's agent tool-calling SOP and agent long-term memory SOP — hermes's learning loop and tool-calling mechanism are living examples of those two pieces, but this article doesn't depend on their prior conclusions.

1. Why a "self-improving" agent is needed

Anyone using agents has a shared experience: every new session, the agent treats you like a stranger. The workflow preferences, project structure, and commands you discussed last week are all forgotten — unless you manually feed the context back in. Most agents today are "use and discard": session ends, experience resets to zero. The time you invest doesn't accumulate into the agent's capability; every session starts from scratch.

hermes-agent bets the opposite direction. Its core isn't "a smarter model" but a built-in learning loop — the agent accumulates as you use it: after complex tasks it distills the process into reusable skills, periodically persists what it learned, searches its own conversation history for cross-session recall, and uses Honcho to build a user model that keeps deepening. The goal is to turn the agent from a "one-shot tool" into a "long-term partner" — the more you use it, the more it fits your way of working.

The engineering implication: the agent no longer depends solely on the current session's context window but has a persistent memory layer and skill layer. This site broke down agent memory design patterns in the agent long-term memory SOP; hermes's learning loop is a complete engineering implementation of those patterns, broken down mechanism by mechanism below.

2. How the learning loop works

hermes's learning loop is held up by five mechanisms — miss any one and it's not a loop.

1. Creates skills from experience. After completing a complex task, the agent automatically distills the process into a "skill" — next time it encounters a similar task, it can invoke the skill directly instead of reasoning from scratch. This solves the "reinventing the wheel every time" problem.

2. Skills self-improve during use. Skills aren't locked once written. The agent adjusts them based on results during actual use, refining them over time. This is the key difference between a "skill" and a "static prompt template": skills iterate.

3. Nudges itself to persist knowledge. The agent periodically "reminds itself" to save valuable information from the current session, rather than waiting for you to manually save it. This nudge mechanism ensures knowledge doesn't vanish when the session ends.

4. Searches its own past conversations. The agent can search its own conversation history for cross-session recall, powered by SQLite FTS5 full-text search plus LLM summarization. A solution you discussed two weeks ago — it can search and cite it, no need for you to re-describe it.

5. Builds a deepening model of who you are. Using Honcho's dialectic user modeling, the agent continuously deepens its understanding of you across sessions — your preferences, habits, and project context accumulate into a user model that gets more accurate over time.

The five mechanisms form a complete loop: do task → distill skill → improve during use → persist knowledge → search history for recall → deepen user model → next task fits better. Additionally, hermes is compatible with the agentskills.io open standard, meaning skills can theoretically be shared across agents, not locked into hermes.

To be clear: the above is the README's description of the mechanisms. Whether "self-improvement" actually works well in practice is something this site hasn't stress-tested over the long term. A learning loop that runs and one that runs well are two different things — use it yourself for a while before judging its real impact on your workflow.

3. Runs anywhere: an agent not tied to your laptop

Most agents run on your laptop — close the terminal and they stop; switch computers and the context is gone. hermes-agent's other key selling point is "Runs anywhere, not just your laptop": seven terminal backends to choose from.

BackendCharacteristics
localRun directly on local machine
DockerContainerized isolation
SSHConnect to a remote machine
SingularityFor HPC environments
ModalServerless, sleeps when idle, wakes on demand
DaytonaServerless, sleeps when idle, wakes on demand
Vercel SandboxSandbox environment

The key is Modal and Daytona, the two serverless backends: the agent environment sleeps when idle and wakes on demand, costing nearly nothing during idle time. That means you can run the agent on a $5 VPS or a GPU cluster, untethered from your laptop — you can talk to it from Telegram while it works on a cloud VM. This is a hard requirement for the "agent as long-term partner" positioning: if the agent goes up and down with your laptop, its "continuous learning" can't truly be continuous.

4. Model-agnostic + lives where you do

Model-agnostic. hermes supports Nous Portal / OpenRouter / OpenAI / self-hosted endpoints and other providers. hermes model switches models in one command, with no code changes and no vendor lock-in. This is practical in an era of rapid model iteration — switch from Claude to GPT to Nous's own Hermes model without touching the agent config.

Lives where you do. hermes plugs into Telegram / Discord / Slack / WhatsApp / Signal / CLI, with a single gateway process unifying all messaging platforms. It supports voice memo transcription and cross-platform conversation continuity — a topic you started on Telegram carries over when you switch to CLI. This solves the "scattered agent entry points" problem: you don't need five windows to manage five agents; one gateway handles all platform integrations.

5. Comparison with peers

hermes-agent's positioning differs from coding agents like Claude Code and Codex, and from autonomous agents like AutoGPT. Lay the key dimensions side by side.

Dimensionhermes-agentClaude Code / CodexAutoGPT-type
PositioningCross-platform self-improving personal agentCoding-specialized agentAutonomous goal-driven agent
Learning loopBuilt-in (skills + user modeling)None (session-level)None
Run location7 backends incl. serverless sleepLocal terminal primarilyUsually local/Docker
Messaging platformsTelegram/Discord/Slack etc.None (CLI primarily)Usually none
ModelsModel-agnostic, multi-providerTied to single vendorMulti-model
Coding abilityPresent but not specializedSpecializedWeak
LicenseMITVariesMostly MIT

Core difference: Claude Code and Codex bet on "doing coding scenarios to the extreme," while hermes bets on "a cross-platform, self-improving personal agent" — it's not meant to replace your coding agent but to be your long-term cross-scenario assistant. AutoGPT-type agents have autonomy but lack the learning loop and messaging platform integration, remaining use-and-discard. This site compared agent tool ecosystems in the MCP clients comparison; hermes's hermes tools config and RPC tool-calling mechanism is another tool integration route, covered in the getting-started section below.

6. Getting started: install and launch

hermes natively supports Windows — no WSL needed. The installer bundles uv / Python 3.11 / Node.js / ripgrep / ffmpeg / portable Git Bash (MinGit), installing all dependencies in one shot.

Linux / macOS / WSL2 / Termux:

bash
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

Windows (PowerShell):

powershell
iex (irm https://hermes-agent.nousresearch.com/install.ps1)

Common commands after install:

  • hermes — start chatting
  • hermes setup — setup wizard (run this first)
  • hermes model — choose a model
  • hermes tools — configure tools
  • hermes gateway — start the messaging gateway (Telegram/Discord etc.)
  • hermes doctor — diagnose environment issues

The terminal TUI supports multi-line editing, slash command autocomplete, conversation history, interrupt-and-redirect, and streaming tool output. A built-in cron scheduler lets you define daily reports / nightly backups / weekly audits in natural language, unattended. You can also spawn isolated sub-agents for parallel workflows, or write Python scripts that call tools via RPC, compressing multi-step pipelines into zero-context-cost turns — this maps directly to the RPC tool-calling pattern covered in this site's agent tool-calling SOP. The research-ready feature also supports batch trajectory generation and trajectory compression for training next-generation tool-calling models.

7. Use cases and limitations

Suited for: you want a cross-scenario long-term companion agent (not just for coding) and are willing to invest time letting it learn your workflow; your tasks span Telegram/Discord/Slack and need a unified entry point; you want the agent running in the cloud, always on, untethered from your laptop; you do AI research or training and need batch trajectory generation and compression.

Four limitations to state clearly. First, 228k stars but created 2025-07 and still young — interface and doc stability unverified, don't treat it as a production SLA. Second, uv.exe may be flagged as malware by antivirus (Windows Defender / Bitdefender) — this is Astral's uv (a Rust package manager) being false-positived by ML-based AV, not an actual problem. The README provides verification and whitelisting instructions; be aware before installing. Third, the flexibility of any model plus any backend means many config options — there's a learning curve for newcomers. Start with hermes setup via the wizard, then tune gradually. Fourth, "self-improvement / learning loop" is the README's wording; this site hasn't stress-tested it long-term. Real-world effectiveness needs your own extended evaluation — don't treat it as a promise.

8. FAQ

Q: How is hermes-agent different from coding agents like Claude Code / Codex? A: Different positioning. Claude Code / Codex are coding-specialized agents betting on "doing coding to the extreme"; hermes bets on "a cross-platform, self-improving personal agent" — with a built-in learning loop, messaging platform integration, and cloud-based always-on operation. It's not replacing your coding agent but serving as your long-term cross-scenario assistant, with coding as one of its capabilities.

Q: What does "self-improvement / learning loop" actually mean, and is it reliable? A: Five mechanisms: creates skills from experience, skills self-improve during use, nudges itself to persist knowledge, searches its own past conversations, builds a deepening user model. This is the README's description of the mechanisms. Running and running well are two different things — this site hasn't stress-tested it long-term, so use it yourself for a while before judging.

Q: Does it support Windows? A: Yes, natively — no WSL needed. One PowerShell command: iex (irm https://hermes-agent.nousresearch.com/install.ps1). The installer bundles uv / Python 3.11 / Node.js / ripgrep / ffmpeg / portable Git Bash. Note that uv.exe may be false-positived by antivirus; whitelist it per the README.

Q: How do I install it, and is it paid? A: MIT license, open source and free. Linux/macOS/WSL2/Termux: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash. Windows: PowerShell iex (irm ...).

Q: That many stars — is the project mature? A: 227,993 stars, 44,784 forks, trending this week, but created 2025-07-22 and still young. Fast star growth doesn't mean stable interfaces — interfaces and docs are still early-stage. Run it through your own tasks before production integration.


References

This article is AI-assisted and human-edited. Last updated: 2026-08-10

FAQ

How is hermes-agent different from coding agents like Claude Code / Codex?
Different positioning. Claude Code / Codex are coding-specific agents; hermes bets on a cross-platform, self-improving personal agent with a built-in learning loop, messaging-platform integration, and cloud-based always-on operation. Coding is just one of its capabilities.
What exactly does "self-improving/learning loop" mean, and is it reliable?
Five mechanisms: creating skills from experience, self-improving during use, proactively persisting knowledge, searching past conversations, and building a user model. This is per the README; we haven't long-term stress-tested it. Recommend using it for a while before evaluating.
Does it support Windows?
Natively, no WSL needed. One PowerShell command installs it; the installer bundles uv/Python 3.11/Node.js/ripgrep/ffmpeg/portable Git Bash. Note uv.exe may be false-flagged by antivirus-follow the README to whitelist.
How to install, and is it paid?
MIT license, open-source and free. Linux/macOS/WSL2/Termux use the curl install script; Windows uses the PowerShell iex (irm ...) command.
So many stars-is the project mature?
227,993 stars, 44,784 forks, trending this week, but created 2025-07-22 and still young. Interfaces and docs are in early stage; validate by running it yourself before production integration.

Related