Hermes 多Agent 实操指南

Hermes 是谁?跟 Claude Code 差在哪

用过 Claude Code 或 Cursor 的话,Hermes 上手几乎没成本。它就是一个跑在终端里的 AI 代理,但多了一层派发能力。

最直观的对比:

  • Claude Code / Cursor:你打开一个 tab,AI 在里面干活,干完你接着提需求。
  • Hermes:你打开一个 tab,AI 叫出另外几个 tab 一起干。Hermes 负责拆任务、传上下文、收结果。

Hermes 比单 Agent 工具多出来的核心能力就三:

  • Skills 系统。把写公众号、做调研、出配图 prompt 这些套路写成 SKILL.md,Agent 加载就会用。
  • 剩下的 toolsets(白名单授权)、profiles(多场景隔离)、depends_on(DAG 调度)都是配套的工程能力。

安装环境

# PyPI 一行装(推荐新手)
pip install hermes-agent

# 启动 REPL
hermes chat

# 切到你想用的模型
hermes config set provider anthropic
hermes config set model claude-sonnet

配置示例

agents:
  topic_scout:                     # 第 1 步:选题侦察兵
    model: anthropic/claude-sonnet-4
    toolsets: [web, search]        # 只给联网 + 搜索,文件操作不要开
    role: leaf                     # 关键:声明 leaf,禁止递归 spawn
  researcher:                      # 第 2 步:资料研究员
    model: anthropic/claude-sonnet-4
    toolsets: [file, web]          # file 用来读 01-topics.md、写出 02-research.md
    role: leaf
  writer:                          # 第 3 步:执笔写手
    model: anthropic/claude-sonnet-4
    toolsets: [file, skills]       # skills 让它能加载「公众号写作」技能
    role: leaf
  editor:                          # 第 4 步:审校编辑
    model: anthropic/claude-sonnet-4
    toolsets: [file]               # 最小集:只让它改文件
    role: leaf
  illustrator:                     # 第 5 步:配图提示词
    model: anthropic/claude-sonnet-4
    toolsets: [skills]             # 用 image_gen 技能生成配图 prompt
    role: leaf

pipeline:
  - call: topic_scout               # 入口节点,无需 depends_on
    goal: "为「{TOPIC}」出 3 个公众号选题候选,输出到 01-topics.md"
  - call: researcher
    goal: "基于 01-topics.md 整理 6 section 研究资料包到 02-research.md"
    depends_on: topic_scout
  - call: writer
    goal: "据 02-research.md 起草 2500-3000 字实操教程到 03-draft.md"
    depends_on: researcher
© 版权声明
THE END
喜欢就支持以下吧
点赞9赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容