Hermes agent

From znlgis/opengis-skills · View interactive version

Hermes agent is an AI agent skill from the GitHub repository znlgis/opengis-skills. Use when you want a terminal agent that learns from experience — hermes setup/model/tools/doctor, skills + persistent memory + session search, hermes gateway for Telegram/Discord/Slack/WhatsApp/Signal, hermes cron create for scheduled jobs, MCP and subagents; also for `hermes: command not found` aft

How to use this skill

Skill file

项目地址: <https://github.com/NousResearch/hermes-agent>

官网 / 文档: <https://nousresearch.com/> | <https://hermes-agent.nousresearch.com/docs>

许可证: MIT | 语言: Python(3.11 – 3.14,requires-python = ">=3.11,<3.15")

最新版本: v0.23.1(截至 2026-11,2026-11-09 发布,实测 releases/latest 重定向;见 GitHub Releases)| 注意 PyPI 上的 hermes-agent 停在 0.19.0,不是本项目发布渠道,勿据其判断版本

概述

Hermes 是「The agent that grows with you」——唯一内置完整学习闭环的开源 Agent。它不是 IDE 插件或单一模型封装,而是一套完整的 Agent Harness:


安装

支持 Linux、macOS、WSL2、Termux(Android)、Nix。一键脚本:

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
# 脚本会准备 Python 环境,并在 ~/.hermes/hermes-agent/ 下执行 uv pip install -e ".[all]"

source ~/.bashrc      # 或 source ~/.zshrc
hermes                # 进入 TUI

Windows 自 v0.22 起原生支持(CLI、gateway、TUI、工具均可直接跑,无需 WSL2),v0.23 继续支持;仍可用 WSL2 走 Linux 一键脚本。Termux 默认安装 .[termux] 子集(跳过尚未测试的浏览器与 WhatsApp 部分)。

手动 / 开发安装(uv):

git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv venv --python 3.11
uv pip install -e ".[all,dev]"
./hermes               # 直接运行(无需手动 source venv)

初始化与核心命令

hermes setup     # 首次初始化(账户、目录、基础配置)
hermes model     # 选择 Provider 与模型
hermes tools     # 配置每个平台启用哪些 toolset
hermes config    # 编辑配置
hermes doctor    # 体检 / 排错

自学习闭环(核心特性)

Hermes 区别于普通 Agent 的关键在于「学习」:

这意味着 Hermes 越用越「懂你」,适合作为长期个人/团队助手,而非一次性任务工具。


典型工作流

工作流一:快速上手

hermes setup      # 初始化配置(向导)
hermes model      # 选择/配置 Provider 与模型
hermes            # 不带子命令直接启动终端 TUI

创建第一个技能:让 Hermes 监听你的工作 → 自动总结模式 → 写入技能文件。之后可用 hermes skills list 查看、hermes memory 管理记忆。

工作流二:长期运行部署

# 启动消息网关(Telegram / Discord / Slack / WhatsApp / Signal 共用同一 gateway 进程)
hermes gateway

# 定时任务:schedule 支持 "30m" / "every 2h" / cron 表达式
hermes cron create "0 9 * * *" "汇总昨天的提交并生成晨报" --name daily-brief --deliver telegram
hermes cron list --all

hermes serve 是无界面的 Web/API 服务(--host / --port / --stop / --status),不是消息网关;旧文档里的 hermes serve --gateway telegram 已不存在。定期审查 ~/.hermes/memories/ 和 ~/.hermes/skills/ 确保记忆质量。

工作流三:团队协作

  1. 配置 MCP 集成 → 连接外部工具与数据源
  2. 设置子代理 → 分配专门任务给子代理
  3. 审查子代理产出 → 合并到主上下文

进阶能力

| 能力 | 说明 |

|------|------|

| 模型供应商与配置 | 多 Provider,统一配置体系(hermes model / hermes config) |

| 工具系统与终端后端 | 命令执行、文件读写等;按平台启用 toolset |

| MCP 集成 | 接入 MCP server 扩展外部工具;配合上下文文件注入项目知识 |

| 消息网关 | 多平台接入,远程对话与云端执行解耦 |

| 定时任务 | cron 式自动化 |

| 语音 / 视觉 / 浏览器 | 多模态与网页操作 |

| 子代理协作 | 拆解复杂任务并行处理 |

| 插件开发 | 扩展自定义能力与研究功能 |

v0.23 新增(可选读):Webapp 把整个 Desktop 工作区搬到浏览器标签;单 gateway 拥有全部会话(CLI/TUI/Desktop/编辑器/机器人/cron 都作为客户端接入);终端内直接显示图片;/rewind 回退到历史消息重发或另开分支(v0.23.1 起 TUI/CLI 用 Esc 回退替代列表选择器);hermes plugins update 批量更新插件。

v0.23.1 修复(重要):插件目录 plugin-catalog.json 超过客户端 2 MiB 上限导致 hermes plugins install <name> 静默回退到旧内置目录、装不到新插件/装了旧 pin。v0.23.1 把上限提到 16 MiB 恢复实时目录;停留在 v0.23.0 及更早的安装会持续回退,需 hermes update 或重跑安装脚本升级。


常见问题(FAQ)

| 问题 | 解决 |

|------|------|

| 安装失败 | 确认 Python ≥ 3.11;脚本依赖 uv,可先手动装 uv 再 uv pip install -e ".[all]" |

| Windows 能跑吗 | 能,v0.22+ 原生支持(CLI/gateway/TUI/tools),v0.23 继续支持;老教程要求 WSL2 已过时,WSL2 仍可选 |

| pip install 报 Requires-Python >=3.11,<3.15 | 用 Python 3.11–3.14 建 venv;3.15 尚未支持 |

| hermes serve --gateway 报无法识别参数 | serve 只起 Web/API 服务;消息网关用 hermes gateway |

| hermes 安装后不在 PATH | install.sh 会把 ~/.local/bin 写入 shell rc;重开终端或 source ~/.bashrc,Termux 用 ~/bin |

| Android 部分功能缺失 | Termux 默认装 .[termux] 子集(跳过浏览器/WhatsApp),按官方 Termux Guide 手动补齐 |

| 选不到模型 | 先 hermes model 配置 Provider 与 API Key;hermes doctor 排错 |

| 它“记住”的东西在哪 | 持久化记忆/技能存于 Hermes 主目录(~/.hermes/ 或 $HERMES_HOME) |

| 想接私有工具 | 通过 MCP 集成接入,并在 hermes tools 中启用 |

| hermes plugins install <name> 装不到新插件 | v0.23.0 及更早受 2 MiB 目录上限影响会静默回退内置目录;升级到 v0.23.1(hermes update / 重跑安装脚本)后上限为 16 MiB |

| 更新方式怎么选 | CLI 用 hermes update 或重跑安装脚本;Microsoft Store 版走商店更新;Docker / Hermes Cloud 拉 nousresearch/hermes-agent:stable(或 :latest) |


AI 使用建议


相关技能


参考资源

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.