docs(profile): update clone-from references

This commit is contained in:
Teknium
2026-06-13 07:33:58 -07:00
parent 9b5f7b63c6
commit cc14b74718
5 changed files with 22 additions and 11 deletions
@@ -1175,7 +1175,7 @@ hermes profile <subcommand>
|------------|-------------|
| `list` | 列出所有 profile。 |
| `use <name>` | 设置粘性默认 profile。 |
| `create <name> [--clone] [--clone-all] [--clone-from <source>] [--no-alias]` | 创建新 profile。`--clone` 从活跃 profile 复制 config、`.env``SOUL.md``--clone-all` 复制所有状态。`--clone-from` 指定源 profile。 |
| `create <name> [--clone] [--clone-all] [--clone-from <source>] [--no-alias]` | 创建新 profile。`--clone` 从活跃 profile 复制 config、`.env``SOUL.md` 和 skills`--clone-all` 复制所有状态。`--clone-from` 指定源 profile,除非与 `--clone-all` 配合使用,否则会隐含 config 克隆。 |
| `delete <name> [-y]` | 删除 profile。 |
| `show <name>` | 显示 profile 详情(主目录、config 等)。 |
| `alias <name> [--remove] [--name NAME]` | 管理快速访问 profile 的包装脚本。 |
@@ -626,7 +626,7 @@ Profiles 是构建在 `HERMES_HOME` 之上的托管层。您*可以*在每次命
### Profiles 共享记忆或会话吗?
不共享。每个 profile 都有自己独立的记忆存储、会话数据库和技能目录,完全隔离。如果您想用现有的记忆和会话创建新 profile,请使用 `hermes profile create newname --clone-all` 从当前 profile 复制所有内容。
不共享。每个 profile 都有自己独立的记忆存储、会话数据库和技能目录,完全隔离。如果您想用现有的记忆和会话创建新 profile,请使用 `hermes profile create newname --clone-all` 从当前 profile 复制所有内容,或添加 `--clone-from <profile>` 从指定源 profile 复制
### 运行 `hermes update` 时会发生什么?
@@ -79,12 +79,12 @@ hermes profile create <name> [options]
| 参数 / 选项 | 描述 |
|-------------------|-------------|
| `<name>` | 新 profile 的名称。必须是合法的目录名(字母数字、连字符、下划线)。 |
| `--clone` | 从当前 profile 复制 `config.yaml``.env``SOUL.md`。 |
| `--clone-all` | 从当前 profile 复制所有内容(config、memories、skills、sessions、state。 |
| `--clone-from <profile>` | 从指定 profile 克隆,而非当前 profile。与 `--clone``--clone-all` 配合使用。 |
| `--clone` | 从当前 profile 复制 `config.yaml``.env``SOUL.md` 和 skills。 |
| `--clone-all` | 从当前 profile 复制所有内容(config、memories、skills、cron、plugins)。会排除每个 profile 自己的历史数据:sessions、`state.db`、backups、state-snapshots、checkpoints。 |
| `--clone-from <profile>` | 从指定 profile 克隆 config/skills/SOUL,而非当前 profile。除非`--clone-all` 配合使用,否则会隐含 `--clone`。 |
| `--no-alias` | 跳过 wrapper 脚本创建。 |
| `--description "<text>"` | 一到两句话描述该 profile 的用途。供 kanban 编排器根据角色而非仅凭 profile 名称来路由任务。可跳过,稍后通过 `hermes profile describe` 添加。持久化保存在 `<profile_dir>/profile.yaml` 中。 |
| `--no-skills` | 创建一个**空** profile,不启用任何内置 skill。会在 profile 目录中写入 `.no-skills` 标记,使后续 `hermes update` 不再重新植入内置 skill 集,且拒绝与 `--clone` / `--clone-all` 组合使用(因为后者会复制 skill)。适用于不应继承完整 skill 目录的窄化编排器 profile 或沙箱 profile。 |
| `--no-skills` | 创建一个**空** profile,不启用任何内置 skill。会在 profile 目录中写入 `.no-bundled-skills` 标记,使后续 `hermes update` 不再重新植入内置 skill 集,且拒绝与 `--clone``--clone-from` `--clone-all` 组合使用(因为这些选项会复制 skill)。适用于不应继承完整 skill 目录的窄化编排器 profile 或沙箱 profile。 |
创建 profile **不会**将该 profile 目录设为终端命令的默认项目/工作目录。如需让某个 profile 从特定项目目录启动,请在该 profile 的 `config.yaml` 中设置 `terminal.cwd`
@@ -101,7 +101,10 @@ hermes profile create work --clone
hermes profile create backup --clone-all
# 从指定 profile 克隆 config
hermes profile create work2 --clone --clone-from work
hermes profile create work2 --clone-from work
# 从指定 profile 克隆所有内容
hermes profile create work2-backup --clone-from work --clone-all
```
## `hermes profile describe`