Hermes Agent 集成
Hermes 通过 HTTP 连接独立运行的 ReMe 服务。模型调用前执行 search,每轮对话完成后异步调用 auto_memory。
启动 ReMe 服务
为当前 Hermes profile 启动独立 workspace:
reme start config=default \
workspace_dir="/absolute/path/to/reme-hermes-default" \
service.backend=http \
service.host=127.0.0.1 \
service.port=2333安装与配置
hermes plugins install agentscope-ai/ReMe/integrations/hermes_agent
hermes memory setup在 Hermes Dashboard 中设置服务地址、召回条数和超时。配置保存在 $HERMES_HOME/reme/config.json。
配置示例:
{
"endpoint": "http://127.0.0.1:2333"
}设置向导会先调用 health_check,成功后才保存配置。ReMe 服务启用实例令牌时,请将 endpoint 指向可信代理,由代理向 ReMe 添加 X-ReMe-API-Token。
迁移进程内模式时,用原来的 reme_config 作为 config、原来的 workspace_dir 作为工作区启动服务,再运行 hermes memory setup 填入服务地址。手动配置时,在 $HERMES_HOME/reme/config.json 中将 mode、workspace_dir 和 reme_config 替换为 endpoint。若使用过 $HERMES_HOME/reme.json,请将要保留的设置移至新文件,并归档旧文件。
Workspace 隔离
ReMe 搜索覆盖整个 workspace。多个 Hermes profile 指向同一个 workspace 时会共享召回结果;除非明确需要共享,否则为 每个 profile 配置不同 workspace。HTTP 模式通常也使用不同端口。
自动记忆需要可用的 LLM 配置;默认 BM25 搜索不需要 Embedding,除非选用的 ReMe 配置启用了依赖 Embedding 的向量检索。
生命周期和失败行为
prefetch只返回 ReMe answer,受保护的 memory context 包装由 Hermes 统一添加;- 有召回内容时,Hermes UI 会显示 ReMe recall indicator 和可获得的结果数量;
sync_turn只提交最新完整回合,并用 profile 与 session 共同生成安全 ID;- cron、flush 和 subagent context 不写入对话记忆;
- backend 健康、召回和写入使用独立 cooldown;错误只记录警告,不中断 Hermes 对话;
- 写队列目前位于内存,进程异常退出时尚未完成的写入可能丢失。
运行 hermes memory status 检查插件状态,然后启动新的 Hermes 会话。完整字段、真实截图和故障排查见 integrations/hermes_agent/README_ZH.md。