Agent Skills
返回列表
Hermes Profile 模型管理器

Hermes Profile 模型管理器

AI Agent 更新于 2026.08.29

将以下提示词粘贴到你的 AI 对话框中:

请根据 https://skillhub.cn/install/skillhub.md,安装 @user_1b3ec1a9/hermes-profile-model-manager。

技能介绍

要解决什么问题

Hermes 按 profile 隔离运行环境,每个 profile 的 config.yaml 里同时挂着主模型、多种辅助模型(vision / compression / webextract / sessionsearch)以及可选的 delegation 模型。日常调试或成本优化时,你往往需要在多个 profile 之间对照配置、改主模型或只动辅助链路,还要记得改完是否已重启 Gateway——这些操作分散在 YAML 与 CLI 里,容易漏项或搞错 -p 参数(default profile 不加 -p,其余必须加)。

技能如何工作

本 skill 把「看配置 → 改模型 → 批量处理 → 确认生效」串成一条工作流:

  • 查看:解析各 profile 的 config.yaml,对照主模型、auxiliary 与 delegation 三块结构。
  • 切换:用 hermes config set 做逐字段 YAML merge,只改指定字段,不会整文件覆盖;delegation 设为空字符串可回到继承主模型。
  • 批量:支持对所有 profile 统一切换,以及批量重启 Gateway;文档还提供一键脚本,表格汇总各 profile 的主模型、Provider 与辅助模型全景。
  • Provider 速查:内置常见 provider 的 env 变量与 base URL 对照(含 custom_providers 需配 base_url 的说明)。

切换后必须重启 Gateway,模型配置只对新 session 生效;切换 provider 前需确认该 profile 独立 .env 里已有对应 API Key。

适用边界

  • 适合:查看或切换 Hermes 各 profile 的大模型与辅助模型、批量对齐多 profile、delegation 用更便宜模型控成本。
  • 不适合:安装新 provider、配置 API Key(见 hermes-agent skill);管理 MCP 模型(见 native-mcp skill)。
  • 注意:compression 模型上下文至少 16K,否则易出现 context too small;批量切换前建议备份 config.yaml;profile 名称大小写敏感,用 hermes profile list 核对。

使用场景

  • 本地跑了多个 Hermes profile,上线前要对表各 profile 主模型与 vision/compression 是否一致
  • 某 profile 临时换成 glm-5-turbo 或 mimo 做对话质量对比,测完还要改回并重启 Gateway
  • 只想改某个 profile 的 vision 或 compression,不动主模型,避免影响主链路推理
  • 希望所有 profile 统一切到同一 Provider,并批量 restart Gateway 让新 session 立刻吃到配置

适合人员

  • 维护多套 Hermes profile(开发/预发/个人)的工程师,需要在 YAML 与 CLI 间快速查看和切换模型
  • 负责 Hermes Gateway 的同学,改完 config 后要确认 `-p` 用法正确并统一重启避免 session 仍用旧模型
  • 在智谱 GLM 与小米 MiMo 等 provider 间做成本或效果评估,需要按 profile 改主模型或仅改辅助链路
  • 用 Hermes 做长上下文或多模态的同学,需单独配置 compression(≥16K)与 vision,并核对各 profile 独立 `.env` 里的 API Key