Hermes Agent 适配

May 10, 2026 · View on GitHub

Hermes Agent 中启用 AI Inner OS。

安装

正式用户只通过 Hermes plugin 安装。手动复制 Skill 或 .hermes.md 仅用于本仓库开发调试,不作为正式安装或更新路径。

mkdir -p ~/.hermes/plugins
cp -r hermes/plugins/inner-os ~/.hermes/plugins/inner-os
hermes plugins enable inner-os

项目级插件也可放到 .hermes/plugins/inner-os/,但需要显式启用可信项目插件:

HERMES_ENABLE_PROJECT_PLUGINS=true hermes

工作原理

Hermes 插件注册 pre_llm_call hook、on_session_start hook、/inner-os slash command,以及 hermes/plugins/inner-os/skills/ 下的 bundled skills。

机制文件作用
Pluginhermes/plugins/inner-os/plugin.yaml + __init__.py注册 Hermes hooks、slash command、bundled skill
Standalone Skillhermes/skills/*/SKILL.md开发用 skill 副本
Context Filehermes/hermes.md开发用 context file 副本

Persona(人设切换)

正式安装场景下,人设与频率应由 Hermes 插件配置、环境变量或插件命令管理。仓库内 scripts/switch-persona.js 只用于维护静态适配副本。

可选用户人物画像

user-profile-distillation 作为 bundled skill 分发,默认不自动触发。只有用户明确请求画像分析时才使用;读取本地历史前必须确认日期范围和来源。持续进化模式也需显式开启,只在当前对话中维护版本化画像。

与其他平台的差异

Claude CodeCodex CLICursorOpenCodeHermes Agent
协议注入Hook 读取 SKILL.mdSessionStart Hook.mdc 规则 + hookPlugin packagePlugin hook
Hook 支持9 个3 个3 个Plugin APIPython plugin hooks
失败追踪PostToolUseFailure不支持不支持不支持不支持
安装方式MarketplacePlugin / marketplacePlugin / marketplacePlugin packagePlugin
斜杠命令/inner-osinner-os tool/inner-os