mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-15 09:21:36 +00:00
docs(profile): update clone-from references
This commit is contained in:
parent
9b5f7b63c6
commit
cc14b74718
5 changed files with 22 additions and 11 deletions
|
|
@ -85,6 +85,8 @@ Extend `ProfileCreate` and the create endpoint — no new endpoints, no rewrite:
|
|||
```python
|
||||
class ProfileCreate(BaseModel):
|
||||
name: str
|
||||
clone_from: Optional[str] = None
|
||||
# Backward compatibility for older dashboard/desktop clients.
|
||||
clone_from_default: bool = False
|
||||
clone_all: bool = False
|
||||
no_skills: bool = False
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ hermes profile create researcher --description "Reads source code and external d
|
|||
hermes profile create work --clone
|
||||
```
|
||||
|
||||
将当前 profile 的 `config.yaml`、`.env` 和 `SOUL.md` 复制到新 profile。API 密钥和模型相同,但会话和记忆是全新的。编辑 `~/.hermes/profiles/work/.env` 可使用不同的 API 密钥,编辑 `~/.hermes/profiles/work/SOUL.md` 可设置不同的人格。
|
||||
将当前 profile 的 `config.yaml`、`.env`、`SOUL.md` 和 skills 复制到新 profile。API 密钥、模型和能力相同,但会话和记忆是全新的。编辑 `~/.hermes/profiles/work/.env` 可使用不同的 API 密钥,编辑 `~/.hermes/profiles/work/SOUL.md` 可设置不同的人格。
|
||||
|
||||
### 克隆全部内容(`--clone-all`)
|
||||
|
||||
|
|
@ -54,16 +54,22 @@ hermes profile create work --clone
|
|||
hermes profile create backup --clone-all
|
||||
```
|
||||
|
||||
复制**所有内容**——配置、API 密钥、人格、所有记忆、完整会话历史、技能、cron 任务、插件。完整快照。适用于备份或 fork 已有上下文的 agent。
|
||||
复制**所有内容**——配置、API 密钥、人格、记忆、技能、cron 任务、插件。会排除每个 profile 自己的历史数据(会话历史、`state.db`、`backups/`、`state-snapshots/`、`checkpoints/`),这些数据属于源 profile 且可能达到数十 GB。若要包含历史的完整备份,请使用 `hermes profile export` 或 `hermes backup`。
|
||||
|
||||
### 从指定 profile 克隆
|
||||
|
||||
```bash
|
||||
hermes profile create work --clone --clone-from coder
|
||||
hermes profile create work --clone-from coder
|
||||
```
|
||||
|
||||
`--clone-from <source>` 会直接选择源 profile,并隐含执行 config/skills/SOUL 克隆。若要完整复制该源 profile,请与 `--clone-all` 组合使用:
|
||||
|
||||
```bash
|
||||
hermes profile create work-backup --clone-from coder --clone-all
|
||||
```
|
||||
|
||||
:::tip Honcho 记忆 + profiles
|
||||
启用 Honcho 后,`--clone` 会自动为新 profile 创建专属 AI 对等体,同时共享同一用户工作区。每个 profile 构建各自的观察记录和身份标识。详见 [Honcho——多 agent / Profiles](./features/memory-providers.md#honcho)。
|
||||
启用 Honcho 后,克隆操作会自动为新 profile 创建专属 AI 对等体,同时共享同一用户工作区。每个 profile 构建各自的观察记录和身份标识。详见 [Honcho——多 agent / Profiles](./features/memory-providers.md#honcho)。
|
||||
:::
|
||||
|
||||
## 使用 profile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue