#6 团队协作
hermes profile 命令
一个框架,N 个分身
developer / tester / operator 各司其职,天然隔离。
`hermes profile create` 创建多个独立 profile,权限和记忆沙箱天然隔离,可级联协作。
< 1sProfile 启动
100%内存隔离
-100%协作冲突
背景
为什么要做这个场景?
一个项目里开发者、测试、运营各需要不同的 Skills 和权限。OpenClaw 只能单用户单上下文,Hermes 用 Profile 机制让多角色在同一框架下协作,互不干扰。
工作流
从触发到完成的 5 步
- STEP 01
创建 profile
`hermes profile create developer` 创建独立 profile,加载专属 Skills。
- STEP 02
独立记忆
每个 profile 有独立的记忆(只看到该 profile 的工作轨迹)。
- STEP 03
权限沙箱
Skills 在 profile 内只能访问授权的数据源(database / git / api key)。
- STEP 04
级联协作
Profile 间通过 `/handoff` 命令级联(tester 失败 → 自动通知 developer)。
- STEP 05
个人用户
也能用 profile 隔离「工作 / 学习 / 生活」三个不同身份的上下文。
实际示例
它跑起来是什么样?
$ hermes profile create developer ✓ 创建 profile: developer(加载 git / build / deploy skills) $ hermes profile use developer ✓ 已切换到 developer $ hermes run /github-pr-workflow ✓ [developer] 创建 PR #1285 $ hermes profile create tester $ hermes profile use tester $ hermes "对 PR #1285 跑全套测试" ✓ [tester] 触发 CI / 单元测试 / 集成测试 ✓ [tester] 2 项失败,已自动通知 developer @张三
关键收益
为什么值得用?
- Profile 启动 < 1s——切换角色零延迟
- 100% 内存隔离——互不干扰,避免上下文污染
- 协作冲突 -100%——权限沙箱天然防止越权
- 个人用户也能用——工作 / 学习 / 生活三不误
🧩
进阶玩法:把 profile 当作「角色扮演」——让 Hermes 同时扮演「严厉的产品经理」+ 「耐心的技术支持」,用 `/handoff` 切换。
涉及 Skills / 命令
核心配置项
- profile-manager
- context-handoff
- permission-scope
- memory-isolation